mirror of
https://github.com/pret/pokered.git
synced 2024-10-22 22:55:31 +00:00
bbf2f51a02
This results in 64 home/*.asm files, comparable to pokecrystal's 57.
11 lines
206 B
NASM
11 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
|