pokered/home/copy_string.asm
Rangi 5943b96cf6
Some checks are pending
CI / build (push) Waiting to run
Use features of RGBDS 1.0.0 (#537)
2025-11-12 15:44:07 -05:00

14 lines
213 B
NASM

; copies a string from de to wStringBuffer
CopyToStringBuffer::
ld hl, wStringBuffer
; fall through
; copies a string from de to hl
CopyString::
ld a, [de]
inc de
ld [hli], a
cp '@'
jr nz, CopyString
ret