I'm having trouble referencing LCD memory in some block assembly I have. Code snippit enclosed.
Basically, if I declare GLOBLCDMEM as a constant char, and point it to LCDMEM, it uses the RAM location of GLOBLCDMEM, instead of the memory location for the first LCD location (it uses 0x200 instead of 0x91). I know this is a dereference issue, but I can't figure out how to force the compiler to use the value that GLOBLCDMEM points to (in RAM) instead of the location of GLOBLCDMEM. Of course ultimately, the more logical solution would be to use a #define for this. Or just use the predefined LCDMEM (in lcd.h). And I would do this, but apparently, ASM statements can't see #define'd variables. Is this a bug? Thanks -Mark
asmtest.c
Description: Binary data