mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-16 10:23:34 +12:00
12 lines
206 B
NASM
12 lines
206 B
NASM
; 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
|