summaryrefslogtreecommitdiff
path: root/home.asm
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2016-03-26 15:12:38 -0700
committerYamaArashi <shadow962@live.com>2016-03-26 15:12:38 -0700
commit268c5e5bdaf2dc11f66ef4cf87d88eb1dbad44e9 (patch)
treed060f3f19878ebe592af6103d5ec5241a206bffd /home.asm
parent48426f71c39c4b89ff5fc4d1cab9f271bdfe8230 (diff)
parentd8975211f543432565270379a0b4ebf277318b38 (diff)
Merge pull request #7 from YamaArashi/master
GBC palette code
Diffstat (limited to 'home.asm')
-rw-r--r--home.asm56
1 files changed, 28 insertions, 28 deletions
diff --git a/home.asm b/home.asm
index 0ffff496..9bdb673e 100644
--- a/home.asm
+++ b/home.asm
@@ -2326,73 +2326,73 @@ DisplayTextBoxID:: ; 3010 (0:3010)
UpdateGBCPal_BGP:: ; 3021 (0:3021)
push af
- ld a,[hGBC]
+ ld a, [hGBC]
and a
- jr z,.notgbc
+ jr z, .notGBC
push bc
push de
push hl
- ld a,[rBGP]
- ld b,a
- ld a,[wLastBGP]
+ ld a, [rBGP]
+ ld b, a
+ ld a, [wLastBGP]
cp b
- jr z,.noChangeInBGP
- callba _UpdateGBCPal_BGP ; 1c:6524
+ jr z, .noChangeInBGP
+ callba _UpdateGBCPal_BGP
.noChangeInBGP
pop hl
pop de
pop bc
-.notgbc
+.notGBC
pop af
ret
UpdateGBCPal_OBP0:: ; 3040 (0:3040)
push af
- ld a,[hGBC]
+ ld a, [hGBC]
and a
- jr z,.notgbc
+ jr z, .notGBC
push bc
push de
push hl
- ld a,[rOBP0]
- ld b,a
- ld a,[wLastOBP0]
+ ld a, [rOBP0]
+ ld b, a
+ ld a, [wLastOBP0]
cp b
- jr z,.noChangeInOBP0
- ld b,BANK(_UpdateGBCPal_OBP) ; 1c:656c
- ld hl,_UpdateGBCPal_OBP
- ld c,$1
+ jr z, .noChangeInOBP0
+ ld b, BANK(_UpdateGBCPal_OBP)
+ ld hl, _UpdateGBCPal_OBP
+ ld c, CONVERT_OBP0
call Bankswitch
.noChangeInOBP0
pop hl
pop de
pop bc
-.notgbc
+.notGBC
pop af
ret
UpdateGBCPal_OBP1:: ; 3061 (0:3061)
push af
- ld a,[hGBC]
+ ld a, [hGBC]
and a
- jr z,.notgbc
+ jr z, .notGBC
push bc
push de
push hl
- ld a,[rOBP1]
- ld b,a
- ld a,[wLastOBP1]
+ ld a, [rOBP1]
+ ld b, a
+ ld a, [wLastOBP1]
cp b
- jr z,.noChangeInOBP1
- ld b,BANK(_UpdateGBCPal_OBP)
- ld hl,_UpdateGBCPal_OBP
- ld c,$2
+ jr z, .noChangeInOBP1
+ ld b, BANK(_UpdateGBCPal_OBP)
+ ld hl, _UpdateGBCPal_OBP
+ ld c, CONVERT_OBP1
call Bankswitch
.noChangeInOBP1
pop hl
pop de
pop bc
-.notgbc
+.notGBC
pop af
ret