im using a phillips 89c668 uC with 64k on chip ROM and 8k on chip XRAM. keil has been setup to use the on chip XRAM. AUXR is set to 0. startup.a51 has been modified to include the foll XDATASTART EQU 0H ; the absolute start-address of XDATA memory XDATALEN EQU 1EFFH ; the length of XDATA memory in bytes. this should clear the XRAM, however when i display the contents of a variable that i assign 0 during declaration, it shows garbage. hence neither is the XRAM being cleared, nor is the assignment during declaration taking place.
And you'll need the code in INIT.A51 to perform file-scope static initialization for non-zero values I do not think so, if startup set XRAM to be internal, INIT should just work. Erik