Give wd957 a more descriptive name.

This commit is contained in:
IIMarckus 2015-05-14 22:42:29 -06:00
parent 21a7300f68
commit 32864d2db6
3 changed files with 20 additions and 20 deletions

View File

@ -3,11 +3,11 @@
; location, bit ; location, bit
; pokegear ; pokegear
dwb wd957, %00000010 ; radio card ; $0 dwb PokegearFlags, %00000010 ; radio card ; $0
dwb wd957, %00000001 ; map card dwb PokegearFlags, %00000001 ; map card
dwb wd957, %00000100 ; phone card dwb PokegearFlags, %00000100 ; phone card
dwb wd957, %00001000 ; expn card dwb PokegearFlags, %00001000 ; expn card
dwb wd957, %10000000 ; on/off dwb PokegearFlags, %10000000 ; on/off
; wDaycareMan, %10000000 ; daycare 1 on ; wDaycareMan, %10000000 ; daycare 1 on
dwb wDaycareMan, %01000000 ; monster 1 and 2 are compatible dwb wDaycareMan, %01000000 ; monster 1 and 2 are compatible

View File

@ -13218,7 +13218,7 @@ StartMenu:: ; 125cd
call .AppendMenuList call .AppendMenuList
.no_pack .no_pack
ld hl, wd957 ld hl, PokegearFlags
bit 7, [hl] bit 7, [hl]
jr z, .no_pokegear jr z, .no_pokegear
ld a, 7 ; pokegear ld a, 7 ; pokegear
@ -70956,7 +70956,7 @@ Function90eb0: ; 90eb0 (24:4eb0)
ld bc, $8 ld bc, $8
ld a, $4f ld a, $4f
call ByteFill call ByteFill
ld de, wd957 ld de, PokegearFlags
ld a, [de] ld a, [de]
bit 0, a bit 0, a
call nz, Function90ee4 call nz, Function90ee4
@ -71046,7 +71046,7 @@ Function90f3e: ; 90f3e (24:4f3e)
and D_RIGHT and D_RIGHT
ret z ret z
ld a, [wd957] ld a, [PokegearFlags]
bit 0, a bit 0, a
jr z, .asm_90f5a jr z, .asm_90f5a
ld c, $2 ld c, $2
@ -71054,7 +71054,7 @@ Function90f3e: ; 90f3e (24:4f3e)
jr .asm_90f71 jr .asm_90f71
.asm_90f5a .asm_90f5a
ld a, [wd957] ld a, [PokegearFlags]
bit 2, a bit 2, a
jr z, .asm_90f67 jr z, .asm_90f67
ld c, $7 ld c, $7
@ -71062,7 +71062,7 @@ Function90f3e: ; 90f3e (24:4f3e)
jr .asm_90f71 jr .asm_90f71
.asm_90f67 .asm_90f67
ld a, [wd957] ld a, [PokegearFlags]
bit 1, a bit 1, a
ret z ret z
@ -71165,7 +71165,7 @@ Function90ff2: ; 90ff2 (24:4ff2)
ret ret
.right .right
ld a, [wd957] ld a, [PokegearFlags]
bit 2, a bit 2, a
jr z, .asm_91015 jr z, .asm_91015
ld c, $7 ld c, $7
@ -71173,7 +71173,7 @@ Function90ff2: ; 90ff2 (24:4ff2)
jr .done jr .done
.asm_91015 .asm_91015
ld a, [wd957] ld a, [PokegearFlags]
bit 1, a bit 1, a
ret z ret z
ld c, $b ld c, $b
@ -71358,7 +71358,7 @@ Function91112: ; 91112 (24:5112)
ret ret
.left .left
ld a, [wd957] ld a, [PokegearFlags]
bit 2, a bit 2, a
jr z, .asm_9113b jr z, .asm_9113b
ld c, $7 ld c, $7
@ -71366,7 +71366,7 @@ Function91112: ; 91112 (24:5112)
jr .asm_9114c jr .asm_9114c
.asm_9113b .asm_9113b
ld a, [wd957] ld a, [PokegearFlags]
bit 0, a bit 0, a
jr z, .asm_91148 jr z, .asm_91148
ld c, $2 ld c, $2
@ -71417,7 +71417,7 @@ Function91171: ; 91171 (24:5171)
ret ret
.left .left
ld a, [wd957] ld a, [PokegearFlags]
bit 0, a bit 0, a
jr z, .asm_9119c jr z, .asm_9119c
ld c, $2 ld c, $2
@ -71429,7 +71429,7 @@ Function91171: ; 91171 (24:5171)
jr .asm_911ac jr .asm_911ac
.right .right
ld a, [wd957] ld a, [PokegearFlags]
bit 1, a bit 1, a
ret z ret z
ld c, $b ld c, $b
@ -72125,7 +72125,7 @@ RadioChannels:
.PlacesAndPeople .PlacesAndPeople
call .InJohto call .InJohto
jr c, .NoSignal jr c, .NoSignal
ld a, [wd957] ld a, [PokegearFlags]
bit 3, a bit 3, a
jr z, .NoSignal jr z, .NoSignal
jp Function917ea jp Function917ea
@ -72133,7 +72133,7 @@ RadioChannels:
.LetsAllSing .LetsAllSing
call .InJohto call .InJohto
jr c, .NoSignal jr c, .NoSignal
ld a, [wd957] ld a, [PokegearFlags]
bit 3, a bit 3, a
jr z, .NoSignal jr z, .NoSignal
jp Function917ff jp Function917ff
@ -72141,7 +72141,7 @@ RadioChannels:
.PokeFluteRadio .PokeFluteRadio
call .InJohto call .InJohto
jr c, .NoSignal jr c, .NoSignal
ld a, [wd957] ld a, [PokegearFlags]
bit 3, a bit 3, a
jr z, .NoSignal jr z, .NoSignal
jp Function91829 jp Function91829

View File

@ -2106,7 +2106,7 @@ PCItemsEnd::
ds 1 ds 1
wd957:: ds 1 PokegearFlags:: ds 1
wd958:: ds 1 wd958:: ds 1
wd959:: ds 2 wd959:: ds 2
WhichRegisteredItem:: ; d95b WhichRegisteredItem:: ; d95b