diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2018-04-22 15:27:59 -0400 |
---|---|---|
committer | Marcus Huderle <huderlem@gmail.com> | 2018-04-22 12:32:06 -0700 |
commit | e9715547f64480ba2c7852c9c3c04e126c102678 (patch) | |
tree | a5fba199f2f704c5218f1aa88c757cb8b781422b | |
parent | 3aed8c8818cafcca34aadc069630458da31ee37e (diff) |
This is actually a CGB palette copy
-rw-r--r-- | engine/select_gameboy_target_menu.asm | 57 |
1 files changed, 22 insertions, 35 deletions
diff --git a/engine/select_gameboy_target_menu.asm b/engine/select_gameboy_target_menu.asm index 17fecaa..123f365 100644 --- a/engine/select_gameboy_target_menu.asm +++ b/engine/select_gameboy_target_menu.asm @@ -62,11 +62,11 @@ LoadGameboyTargetMenuGfx: ; 0x8049 ld a, $80
ld de, rBGPI
ld hl, Data_80e4
- call Fill33Bytes
+ call FillPalette
ld a, $80
ld de, rOBPI
ld hl, Data_80f4
- call Fill33Bytes
+ call FillPalette
ld hl, SelectGameboyTargetGfxPointers
xor a
call LoadVideoData
@@ -121,7 +121,7 @@ FillTilesVRAM: ; 0x80c3 jr nz, .fillLoop
ret
-Fill33Bytes: ; 0x80d1
+FillPalette: ; 0x80d1
; First places a in [de].
; Then, reads 32 bytes from hl and places them in order at de + 1
ld [de], a
@@ -143,39 +143,26 @@ Fill33Bytes: ; 0x80d1 ret
Data_80e4: ; 0x80e4
- db $FF
- db $7F
- db $B5
- db $56
- db $6B
- db $2D
- db $00
- db $00
- db $FF
- db $7F
- db $B5
- db $56
- db $6B
- db $2D
- db $00
- db $00
+ RGB 31, 31, 31
+ RGB 21, 21, 21
+ RGB 11, 11, 11
+ RGB 00, 00, 00
+
+ RGB 31, 31, 31
+ RGB 21, 21, 21
+ RGB 11, 11, 11
+ RGB 00, 00, 00
+
Data_80f4: ; 0x80f4
- db $B5
- db $56
- db $FF
- db $7F
- db $6B
- db $2D
- db $00
- db $00
- db $FF
- db $7F
- db $B5
- db $56
- db $6B
- db $2D
- db $00
- db $00
+ RGB 21, 21, 21
+ RGB 31, 31, 31
+ RGB 11, 11, 11
+ RGB 00, 00, 00
+
+ RGB 31, 31, 31
+ RGB 21, 21, 21
+ RGB 11, 11, 11
+ RGB 00, 00, 00
SelectCGBOrDMG: ; 0x8104
ld a, [hNewlyPressedButtons]
|