From: Lukas Krickl Date: Fri, 20 Jun 2025 11:39:54 +0000 (+0200) Subject: strings: removed objputs X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=1698a8466a0fbc2b3907f78d28e0ec504f943f09;p=gbrg%2F.git strings: removed objputs --- diff --git a/src/strings.s b/src/strings.s index 124bd3b..815ee8b 100644 --- a/src/strings.s +++ b/src/strings.s @@ -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