pokered/home/copy_string.asm
2021-08-28 17:02:20 -04:00

13 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