aboutsummaryrefslogtreecommitdiff
path: root/utils.gbasm
diff options
context:
space:
mode:
authorAstatin <[email protected]>2025-02-25 16:54:34 +0900
committerAstatin <[email protected]>2025-02-25 16:54:34 +0900
commitb21954eb05d9285ed7542a1f42ed755a147782a8 (patch)
tree935794c0eb59ff484d4e9c3a9849d588fbd5919b /utils.gbasm
parent18d7d064daf704193f8dff6b2ef3ae68b7fc3aac (diff)
Fix initialization and flickering issues
Diffstat (limited to 'utils.gbasm')
-rw-r--r--utils.gbasm12
1 files changed, 12 insertions, 0 deletions
diff --git a/utils.gbasm b/utils.gbasm
index 47fec5a..a8696ed 100644
--- a/utils.gbasm
+++ b/utils.gbasm
@@ -44,6 +44,18 @@ bzero: ; dest = HL, n = BC
JR NZ =.loop
RET
+bff: ; dest = HL, n = BC
+ LD A, $ff
+ .loop:
+ LD (HL+), A
+ INC DE
+ DEC BC
+ CP B
+ JR NZ =.loop
+ CP C
+ JR NZ =.loop
+ RET
+
.MACRODEF ABS
BIT 7, A
JR Z, =$end