strings: removed objputs
authorLukas Krickl <lukas@krickl.dev>
Fri, 20 Jun 2025 11:39:54 +0000 (13:39 +0200)
committerLukas Krickl <lukas@krickl.dev>
Fri, 20 Jun 2025 11:39:54 +0000 (13:39 +0200)
src/strings.s

index 124bd3b286351e710d67ca6f9942131b0206a6fa..815ee8b3e566c9f008a42a0e5a24158c89e1d215 100644 (file)
@@ -51,41 +51,3 @@ puts:
 @done:
   ret
 
-  ; puts strings as objects
-  ; inputs:
-  ;   hl: the string
-  ;   b/c: y/x origin
-  ;   de: starting object
-objputs:
-  ; write y
-  ld a, b
-  add a, OBJ_OFF_Y
-  ld [de], a
-  inc de
-
-  ; write x
-  ld a, c
-  add a, OBJ_OFF_X
-  ld [de], a
-  inc de
-
-  ; move to next tile 
-  ld c, a
-
-  ; write letter
-  ld a, [hl+]; also advance to next letter
-  add a, FONT_OFFSET ; need to move to different bank
-  ld [de], a
-  inc de
-
-  xor a, a
-  ld [de], a
-  inc de
-
-  ; exit check
-  ld a, [hl] 
-  cp a, 0
-  jr nz, objputs REL
-
-@done:
-  ret