SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 670540116af7b9fea63cc69ad57e5034599c613a parent 1354b77373d7a2dac2bf5aff11d38267f2c254b9 Author: Rangi42 <sylvie.oukaour+rangi42@gmail.com> Date: Thu, 26 Dec 2024 23:15:22 -0500 Use `ldh [c]`, not `ld [c]` Diffstat:
| M | BootROMs/cgb_boot.asm | 4 | ++-- |
| M | BootROMs/sgb_boot.asm | 16 | ++++++++-------- |
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/BootROMs/cgb_boot.asm b/BootROMs/cgb_boot.asm @@ -1085,11 +1085,11 @@ LoadBGPalettes: LoadPalettes: ld a, $80 or e - ld [c], a + ldh [c], a inc c .loop ld a, [hli] - ld [c], a + ldh [c], a dec d jr nz, .loop ret diff --git a/BootROMs/sgb_boot.asm b/BootROMs/sgb_boot.asm @@ -86,9 +86,9 @@ Start: .sendCommand xor a - ld [c], a + ldh [c], a ld a, $30 - ld [c], a + ldh [c], a ldh a, [hCommand] call SendByte @@ -116,9 +116,9 @@ Start: ; Done bit ld a, $20 - ld [c], a + ldh [c], a ld a, $30 - ld [c], a + ldh [c], a ; Wait 4 frames ld e, 4 @@ -145,10 +145,10 @@ Start: ; Write to sound registers for DMG compatibility ld c, LOW(rNR13) ld a, $C1 - ld [c], a + ldh [c], a inc c ld a, $7 - ld [c], a + ldh [c], a ; Init BG palette ld a, %11_11_11_00 @@ -185,9 +185,9 @@ SendByte: jr c, .zeroBit add a ; 10 -> 20 .zeroBit - ld [c], a + ldh [c], a ld a, $30 - ld [c], a + ldh [c], a dec d ret z jr .loop
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.