Hello, I am using the medium memory model. In order to deal with a shortage of memory, I am using 'sdata' to store some static variables, and I have declared SDATA to reside in the address range (0x10000 - 0x12000). However, if I call a function that returns a 'long' type and assigned it to the 'sdata' mapped static, it gets the value 0. What am I doing wrong? Thanks, Tamir
I can only second Mike's comment to READ the manual. http://www.keil.com/support/man/docs/c166/c166_ap_dppreg.htm SDATA will use DPP3 which is assigned to "3" (0xC000--0xFFFF).