shithub: pokered

ref: 8701ef4d61a6a55ee71aa1a964d4f7d10eded87e
dir: /home/copy_string.asm/

View raw version
; copies a string from [de] to [wcf4b]
CopyStringToCF4B::
	ld hl, wcf4b
	; fall through

; copies a string from [de] to [hl]
CopyString::
	ld a, [de]
	inc de
	ld [hli], a
	cp "@"
	jr nz, CopyString
	ret