andreasjhkarlsson / gbdk-n

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

crt0.s causes `accessing inaccessible OAM` #22

Open basxto opened 4 years ago

basxto commented 4 years ago
2$:
    LD    (HL-),A
    DEC    B
    JR    NZ,2$
    ;; Clear from 0xFF80 to 0xFFFF
    LD    HL,#0xFFFF
    LD    B,#0x80

in libc/crt0.s In ROMs this is placed at 0x0169