You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
constants for rSTAT register
This commit is contained in:
@@ -194,7 +194,7 @@ HDMATransfer_NoDI:
|
||||
; while not [rSTAT] & 3: pass
|
||||
.loop2
|
||||
ldh a, [rSTAT]
|
||||
and $3
|
||||
and rSTAT_STATUS_FLAGS
|
||||
jr z, .loop2
|
||||
; load the 5th byte of HDMA
|
||||
ld a, b
|
||||
@@ -253,12 +253,12 @@ _continue_HDMATransfer:
|
||||
; while [rSTAT] & 3: pass
|
||||
.rstat_loop_1
|
||||
ldh a, [rSTAT]
|
||||
and $3
|
||||
and rSTAT_STATUS_FLAGS
|
||||
jr nz, .rstat_loop_1
|
||||
; while not [rSTAT] & 3: pass
|
||||
.rstat_loop_2
|
||||
ldh a, [rSTAT]
|
||||
and $3
|
||||
and rSTAT_STATUS_FLAGS
|
||||
jr z, .rstat_loop_2
|
||||
; load the 5th byte of HDMA
|
||||
ld a, e
|
||||
|
||||
@@ -47,7 +47,7 @@ SaveMenu_CopyTilemapAtOnce:
|
||||
ld l, 0
|
||||
ld a, SCREEN_HEIGHT
|
||||
ldh [hTilesPerCycle], a
|
||||
ld b, 1 << 1 ; not in v/hblank
|
||||
ld b, 1 << rSTAT_BUSY ; not in v/hblank
|
||||
ld c, LOW(rSTAT)
|
||||
|
||||
.loop
|
||||
|
||||
@@ -51,7 +51,7 @@ PhoneRing_CopyTilemapAtOnce:
|
||||
ld l, 0
|
||||
ld a, SCREEN_HEIGHT
|
||||
ldh [hTilesPerCycle], a
|
||||
ld b, 1 << 1 ; not in v/hblank
|
||||
ld b, 1 << rSTAT_BUSY ; not in v/hblank
|
||||
ld c, LOW(rSTAT)
|
||||
|
||||
.loop
|
||||
|
||||
Reference in New Issue
Block a user