shithub: pokered

ref: e4845d3d317cd00b97a96038cb7dc069ec0fae0e
dir: /home/compare.asm/

View raw version
; Compare strings, c bytes in length, at de and hl.
; Often used to compare big endian numbers in battle calculations.
StringCmp::
	ld a, [de]
	cp [hl]
	ret nz
	inc de
	inc hl
	dec c
	jr nz, StringCmp
	ret