diff options
author | Astatin <[email protected]> | 2025-09-05 15:29:27 +0200 |
---|---|---|
committer | Astatin <[email protected]> | 2025-09-05 15:29:27 +0200 |
commit | 03c359596bdacbf39cdc244d2f164d0ec94d5505 (patch) | |
tree | 7e4d8d8056b2560f550d68635caa2ae851c7b911 /utils.gbasm | |
parent | 16c308b2567d1dddb44ca928fe376b4a6219744f (diff) |
Diffstat (limited to 'utils.gbasm')
-rw-r--r-- | utils.gbasm | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/utils.gbasm b/utils.gbasm index 596c314..328dbe2 100644 --- a/utils.gbasm +++ b/utils.gbasm @@ -41,7 +41,6 @@ tilemap_memcpy: ; src = DE, dest = HL, n = C $HBlank_Wait.loop: LD A, $reg_lcd_status AND $03 - CP $00 JR NZ, =$HBlank_Wait.loop $HBlank_Wait.End: .END @@ -187,15 +186,13 @@ bff: ; dest = HL, n = BC .END .MACRODEF JUMP_TABLE ; Jump table pointer in BC, index in A, also overwrites DE - LD E, A LD D, $00 - SLA E + ADD A RL D - SLA E + ADD A RL D - LD A, E ADD C LD E, A LD A, D @@ -371,7 +368,7 @@ RRx: ; B is the number to rotate, A & 7 is how many bits to rotate it CP $04 CALL NC, =.swap - CP $00 + AND A RET Z RRC B |