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, I have a loop for (address = 1; address <= 5; address ++) ram_ptr[address] = 0xFA: where unsigned char xdata *ram_ptr = 0x0000; and unsigned int address; Somehow when i watch the simulation the address never increments and it always write FA in the same address 0x0000. I have also tried using XBYTE[address] to no use. Any solution to my problem would be greatly appreciated
Maybe address is located by the linker at 0x0000? If it is, you set address to 0xAA with your first pointer assignment and the loop stops. The same could have happened with your ram_ptr.