Can anyone help explain to me why "a" doesn't seem to be incrementing here? And constantly couting "r1 = 00 00 00 00" then a new line.
Code:
void dump() { char value[8]; for(int a = 1; a < 11; a++) { cout << "r" << a << ": \t"; sprintf(value,"%08X", r[a]); for(int b=0; b<8;b++) { cout << value[b]; if((b+1)%2==0) cout << " "; } if(a%2==0) cout << "\n"; else cout << "\t"; } return; }
Comment