I'm wrtting a 'C' program and need to embed an 'F' at location 0x1000 and 0x8000 in program memory. Could someone show me how to do it? I've looked thru the C51 and the A51 manual - no joy.
You can do it if you really understand the Keil Software — C51 Compiler User's Guide (p. 161) Linker Location Controls section. Specifically the BL51 line option 'CODE'. Very difficult syntax but you should be able to put two char's in code space in separate files and then tell BL51 to place them at 0x1000 and 0x8000 respectively. - Mark
The following assembler program will do the trick:
CSEG AT 1000h DB 'F' CSEG AT 8000h DB 'F' END
CSEG AT 1000h DB 'F'
const code char effAt1000h _at_ 0x1000 = 'F';