gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 08982f995a59b236c1f6e0c028da3a670cb0bdfc parent 371fc95ea650e5b9ec724933c60e8daf7689d618 Author: toxa <untoxa@mail.ru> Date: Fri, 20 Nov 2020 19:06:28 +0300 inaccessible VRAM exception in bgb_debug example in cgb_compatibility() function Diffstat:
| M | gbdk-lib/libc/gb/cgb.s | 10 | ++++++++++ |
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/gbdk-lib/libc/gb/cgb.s b/gbdk-lib/libc/gb/cgb.s @@ -115,36 +115,46 @@ _cpu_fast:: ; Banked _cgb_compatibility:: ; Banked + WAIT_STAT LD A,#0x80 LDH (.BCPS),A ; Set default bkg palette OR #0x7f ; 0xff: White LDH (.BCPD),A RRA ; 0x7f LDH (.BCPD),A + + WAIT_STAT LD A,#0xb5 ; Light gray LDH (.BCPD),A LD A,#0x56 LDH (.BCPD),A LD A,#0x4a ; Dark gray LDH (.BCPD),A + + WAIT_STAT LD A,#0x29 LDH (.BCPD),A XOR A ; Black LDH (.BCPD),A LDH (.BCPD),A + WAIT_STAT LD A,#0x80 LDH (.OCPS),A ; Set default sprite palette OR #0x7f ; 0xff: White LDH (.OCPD),A RRA LDH (.OCPD),A + + WAIT_STAT LD A,#0xb5 ; Light gray LDH (.OCPD),A LD A,#0x56 LDH (.OCPD),A LD A,#0x4a ; Dark gray LDH (.OCPD),A + + WAIT_STAT LD A,#0x29 LDH (.OCPD),A XOR A ; Black
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.