Trying to program an Atmel 89C2051 device but I get 3 errors exactly the same invalid register. The line of code is MOV R0, R5 Any ideas anyone.
mov r0,(register number + selected bank /8)) works. e.g. in bank zero
RB0R5 = 5 RB1R5 = 5+8 RB2R5 = 5+16 RB3R5 = 5+24 mov r0,RB0R5 ;will work
So will MOV R0,AR0. AR0 is calculated using the current register bank. Jon
Keil feature I did not know of. Erik
Erik, Don't mention that you found out over here or who you it heard from in any 8052.com posts lest you upset the natives ;-) --Dan Henry
Keil feature? Isn't this just plain old 8051 assembler? - Mark