#include<stdio.h> #include<reg52.h> #define XBYTE ((unsigned char volatile xdata*) 0 unsigned char dummy = 0x55; bit bitValue; void main (void) { bitValue = dummy & 0x40; XBYTE[0x1234]= 0x55; return; }
This program doesnt execute. plz query this program immediately.In the memory location the acc value is 0x55.
Doesn't execute? I'd bet it doesn't even compile, and if not, take a look at the error message.
Hint: XBYTE has an error.
The Error Message is :
Suscript on non array or too many dimensions. syntex error near.
so plz sending the correct coding sir. Because this is my learning stage.
Try (I can't compile it here):
#define XBYTE (unsigned char volatile xdata*)
View all questions in Keil forum