Hello,
I have some code
// Read in data
for(len=0;len<length;len++) {
buffer[len] = max3421_read(0, RCVFIFO) & 0xFF;
}
that compiles into asm
C$DW$L$_max3421_bulk_in_transfer$10$B, C$L37:
0025e2: 3c04 MOV #0,T0
0025e4: 08fbab_3d15 CALL max3421_read || MOV #1,T1
0025e9: 2264_19ff04 MOV T2,T0 || AND #255,T0,AC0
0025ee: c0ab MOV AC0,*AR5(AR0)
299 for(len=0;len<length;len++) {
0025f0: 4016 ADD #1,T2
0025f2: 126470 CMP T2 < T3, TC1
0025f5: 0464ea BCC C$L37,TC1
which is incorrect. The instruction MOV AC0,*AR5(AR0) is to put values into an indexed array, but the index, AR0, never increments. Do you know why?