Menu

Can't figure out syntax to point to memory space in RAM

Help
2013-11-23
2013-11-24
  • Adam Courchesne

    Adam Courchesne - 2013-11-23

    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
  • Maarten Brock

    Maarten Brock - 2013-11-24

    Try without the __data keyword. It is not valid for z80.

     

Log in to post a comment.