Hi, How to represent a register in C51? for example, "inc R0 of register bank 1"?
Hi Ninh, There isn't the define for registers of banks in at89x51.h Kong-HN.VN
you can consult to know more ... http://www.keil.com/dd/docs/c51/atmel/at89x52.h From : Huy Ninh (HCMc_VN)
In C, you wouldn't normally bother about specific registers. That's one of the things the compiler does for you. If you do need to reference a register, I'd just use the fact that the registers also appear in the data space and use their absolute address.
U8 data RegBank1R0 _at_ 0x08; RegBank1R0++;
View all questions in Keil forum