I was able to pass the address using variable to
the XBYTE instruction for storing value at that
Here is my Code :-)))
#define XBYTE *(xdata unsigned char *)
unsigned char _sdcc_external_startup()
THus i was able to store 0x0004 in the locations
starting from 0xA000 to 0xA00f.
The Point to be Noted - I declared the variable 'km'
as xdata type. If u declare that 'km ' variable
'as unsigned char km' or 'xdata unsigned char km', u
will not get the value stored at that particular
address even though the program gets compiled
A small declaration problem .
karthik bala guru
Missed your favourite TV serial last night? Try the new, Yahoo! TV.
Get latest updates about Open Source Projects, Conferences and News.