mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
BitTableFunc -> FlagAction
This commit is contained in:
parent
bc7b63b44a
commit
3a24cff5eb
@ -843,7 +843,7 @@ Script_trainerstatus: ; 0x97132
|
|||||||
ld d, [hl]
|
ld d, [hl]
|
||||||
call GetScriptByte
|
call GetScriptByte
|
||||||
ld b, a
|
ld b, a
|
||||||
call BitTable1Func
|
call EventFlagAction
|
||||||
ld a, c
|
ld a, c
|
||||||
and a
|
and a
|
||||||
ret z
|
ret z
|
||||||
@ -1256,7 +1256,7 @@ Unknown_0x9730b: ; 0x9730b
|
|||||||
xor a
|
xor a
|
||||||
ret
|
ret
|
||||||
.asm_97321
|
.asm_97321
|
||||||
call BitTable1Func
|
call EventFlagAction
|
||||||
ret
|
ret
|
||||||
; 0x97325
|
; 0x97325
|
||||||
|
|
||||||
@ -2677,7 +2677,7 @@ Script_setbit1: ; 0x97988
|
|||||||
call GetScriptByte
|
call GetScriptByte
|
||||||
ld d, a
|
ld d, a
|
||||||
ld b, $1
|
ld b, $1
|
||||||
call BitTable1Func
|
call EventFlagAction
|
||||||
ret
|
ret
|
||||||
; 0x97996
|
; 0x97996
|
||||||
|
|
||||||
@ -2691,7 +2691,7 @@ Script_clearbit1: ; 0x97996
|
|||||||
call GetScriptByte
|
call GetScriptByte
|
||||||
ld d, a
|
ld d, a
|
||||||
ld b, $0
|
ld b, $0
|
||||||
call BitTable1Func
|
call EventFlagAction
|
||||||
ret
|
ret
|
||||||
; 0x979a4
|
; 0x979a4
|
||||||
|
|
||||||
@ -2705,7 +2705,7 @@ Script_checkbit1: ; 0x979a4
|
|||||||
call GetScriptByte
|
call GetScriptByte
|
||||||
ld d, a
|
ld d, a
|
||||||
ld b, $2
|
ld b, $2
|
||||||
call BitTable1Func
|
call EventFlagAction
|
||||||
ld a, c
|
ld a, c
|
||||||
and a
|
and a
|
||||||
jr z, .asm_979b7 ; 0x979b3 $2
|
jr z, .asm_979b7 ; 0x979b3 $2
|
||||||
|
26
main.asm
26
main.asm
@ -7266,12 +7266,12 @@ Function2e5d: ; 2e5d
|
|||||||
; 2e6f
|
; 2e6f
|
||||||
|
|
||||||
|
|
||||||
BitTable1Func: ; 0x2e6f
|
EventFlagAction: ; 0x2e6f
|
||||||
ld hl, EventFlags
|
ld hl, EventFlags
|
||||||
call BitTableFunc
|
call FlagAction
|
||||||
ret
|
ret
|
||||||
|
|
||||||
BitTableFunc: ; 0x2e76
|
FlagAction: ; 0x2e76
|
||||||
; Perform a function on a bit in memory.
|
; Perform a function on a bit in memory.
|
||||||
|
|
||||||
; inputs:
|
; inputs:
|
||||||
@ -9224,7 +9224,7 @@ CheckTrainerBattle: ; 360d
|
|||||||
inc hl
|
inc hl
|
||||||
ld d, [hl]
|
ld d, [hl]
|
||||||
ld b, CHECK_FLAG
|
ld b, CHECK_FLAG
|
||||||
call BitTable1Func
|
call EventFlagAction
|
||||||
ld a, c
|
ld a, c
|
||||||
pop de
|
pop de
|
||||||
pop bc
|
pop bc
|
||||||
@ -9379,7 +9379,7 @@ Function36f5: ; 36f5
|
|||||||
ld e, l
|
ld e, l
|
||||||
push de
|
push de
|
||||||
ld b, $2
|
ld b, $2
|
||||||
call BitTable1Func
|
call EventFlagAction
|
||||||
pop de
|
pop de
|
||||||
ld a, c
|
ld a, c
|
||||||
and a
|
and a
|
||||||
@ -30776,7 +30776,7 @@ Function15cef: ; 15cef
|
|||||||
ld d, $0
|
ld d, $0
|
||||||
ld b, $1
|
ld b, $1
|
||||||
ld hl, WalkingDirection
|
ld hl, WalkingDirection
|
||||||
call BitTableFunc
|
call FlagAction
|
||||||
call Function15fc3
|
call Function15fc3
|
||||||
ld de, Money
|
ld de, Money
|
||||||
ld bc, $ffc3
|
ld bc, $ffc3
|
||||||
@ -30838,7 +30838,7 @@ Function15da5: ; 15da5
|
|||||||
ld d, $0
|
ld d, $0
|
||||||
ld b, $2
|
ld b, $2
|
||||||
ld hl, WalkingDirection
|
ld hl, WalkingDirection
|
||||||
call BitTableFunc
|
call FlagAction
|
||||||
ld a, c
|
ld a, c
|
||||||
and a
|
and a
|
||||||
jr nz, .asm_15dd8
|
jr nz, .asm_15dd8
|
||||||
@ -34862,7 +34862,7 @@ Function26a3b: ; 26a3b
|
|||||||
push bc
|
push bc
|
||||||
call Function26a30
|
call Function26a30
|
||||||
pop bc
|
pop bc
|
||||||
call BitTable1Func
|
call EventFlagAction
|
||||||
ret
|
ret
|
||||||
; 26a44
|
; 26a44
|
||||||
|
|
||||||
@ -48336,7 +48336,7 @@ GetFruitTreeFlag: ; 44078
|
|||||||
ld e, a
|
ld e, a
|
||||||
ld d, 0
|
ld d, 0
|
||||||
ld hl, FruitTreeFlags
|
ld hl, FruitTreeFlags
|
||||||
call BitTableFunc
|
call FlagAction
|
||||||
pop de
|
pop de
|
||||||
pop hl
|
pop hl
|
||||||
ret
|
ret
|
||||||
@ -56916,7 +56916,7 @@ SpecialHoOhChamber: ; 0x8addb
|
|||||||
call GetSecondaryMapHeaderPointer
|
call GetSecondaryMapHeaderPointer
|
||||||
ld de, $0326
|
ld de, $0326
|
||||||
ld b, $1
|
ld b, $1
|
||||||
call BitTable1Func
|
call EventFlagAction
|
||||||
.done
|
.done
|
||||||
ret
|
ret
|
||||||
; 0x8adef
|
; 0x8adef
|
||||||
@ -56935,7 +56935,7 @@ Function8ae30: ; 8ae30
|
|||||||
jr nz, .asm_8ae4a
|
jr nz, .asm_8ae4a
|
||||||
ld de, $0329
|
ld de, $0329
|
||||||
ld b, $1
|
ld b, $1
|
||||||
call BitTable1Func
|
call EventFlagAction
|
||||||
scf
|
scf
|
||||||
jr .asm_8ae4b
|
jr .asm_8ae4b
|
||||||
|
|
||||||
@ -60459,7 +60459,7 @@ CheckSignFlag: ; 96ad8
|
|||||||
ld e, l
|
ld e, l
|
||||||
ld d, h
|
ld d, h
|
||||||
ld b, $2
|
ld b, $2
|
||||||
call BitTable1Func
|
call EventFlagAction
|
||||||
ld a, c
|
ld a, c
|
||||||
and a
|
and a
|
||||||
pop hl
|
pop hl
|
||||||
@ -63124,7 +63124,7 @@ Functionb8172: ; b8172
|
|||||||
ld d, h
|
ld d, h
|
||||||
ld e, l
|
ld e, l
|
||||||
ld b, $2
|
ld b, $2
|
||||||
call BitTable1Func
|
call EventFlagAction
|
||||||
ld a, c
|
ld a, c
|
||||||
and a
|
and a
|
||||||
jr z, .asm_b81df
|
jr z, .asm_b81df
|
||||||
|
Loading…
Reference in New Issue
Block a user