I'm using sdcc for a Z80 based arcade system and the 2048-byte screen buffer starts at location 0x4000 in RAM. According to the sdcc documentation (page 42), I 'think' the syntax should be:
__data __at (0x4000) char screen_buffer[2048];
But all I get is:
"syntax error: token -> '__at'
Any idea what I'm missing?
Thanks!
Last edit: Adam Courchesne 2013-11-23
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm using sdcc for a Z80 based arcade system and the 2048-byte screen buffer starts at location 0x4000 in RAM. According to the sdcc documentation (page 42), I 'think' the syntax should be:
But all I get is:
"syntax error: token -> '__at'
Any idea what I'm missing?
Thanks!
Last edit: Adam Courchesne 2013-11-23
Try without the __data keyword. It is not valid for z80.