diff --git a/BootROMs/cgb_boot.asm b/BootROMs/cgb_boot.asm index 8fc2ca459..ae3200bbc 100644 --- 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 index ba42b826a..df24a5fc2 100644 --- 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