64 bit division in ARM Assembly SOS
问题 I am calculating the average of sixteen 64 bit numbers added together and I think that I have done all the addition correctly, but now I need to figure out how to divide a 64 bit number by 16 and I am stuck! Any help would be great thank you so much. Here is my code so far. tableSize EQU 16 sum EQU 0x40000000 average EQU 0x40000008 MOV r8, #14 ADR r0, table LDR r9, =sum LDR r10,=average LDR r1, [r0], #1 ;hi #1 LDR r2, [r0], #1 ;lo #1 SUM SUB r8, r8, #1 LDR r3, [r0], #1 ;hi #2 LDR r4, [r0], #1