diff options
author | YamaArashi <shadow962@live.com> | 2016-03-26 15:12:38 -0700 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-03-26 15:12:38 -0700 |
commit | 268c5e5bdaf2dc11f66ef4cf87d88eb1dbad44e9 (patch) | |
tree | d060f3f19878ebe592af6103d5ec5241a206bffd /home.asm | |
parent | 48426f71c39c4b89ff5fc4d1cab9f271bdfe8230 (diff) | |
parent | d8975211f543432565270379a0b4ebf277318b38 (diff) |
Merge pull request #7 from YamaArashi/master
GBC palette code
Diffstat (limited to 'home.asm')
-rw-r--r-- | home.asm | 56 |
1 files changed, 28 insertions, 28 deletions
@@ -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 |