constants for rSTAT register

This commit is contained in:
xCrystal
2023-08-27 16:27:11 +02:00
parent 4dec74b770
commit 4ee4655e72
5 changed files with 17 additions and 6 deletions

View File

@@ -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