We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, How to represent a register in C51? for example, "inc R0 of register bank 1"?
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++;
you can consult to know more ... http://www.keil.com/dd/docs/c51/atmel/at89x52.h From : Huy Ninh (HCMc_VN)
Hi Ninh, There isn't the define for registers of banks in at89x51.h Kong-HN.VN