andreasjhkarlsson / gbdk-n

gbdk libraries updated for newer versions of sdcc
174 stars 25 forks source link

.set_xy_tt:: causes `accessing inaccessible VRAM` #21

Open basxto opened 4 years ago

basxto commented 4 years ago
3$:
    LDH    A,(.STAT)
    AND    #0x02
    JR    NZ,3$

    LD    A,(BC)        ; Copy W tiles
    LD    (HL+),A;<<<<<
    INC    BC
    DEC    D
    JR    NZ,3$

in libc/set_xy_t.s