ld l,a
push de
-1$:
+1$:
ld a,(hl+)
ld (de),a
inc de
or a,a
- jr nz,1$
+ jr NZ,1$
pop de
ret
inc de
2$:
dec c
- jr nz,1$
+ jr NZ,1$
dec b
- jr nz,1$
+ jr NZ,1$
pop de
pop bc
ret
-; int strcmp(const char *s1, const char *s2)
+; int strcmp(const char *s1, const char *s2)
_strcmp::
lda hl,2(sp)
ld e,(hl)
ld l,a
jr 1$
-2$:
+2$:
ld a,(de)
sub (hl)
- jr nz,4$
+ jr NZ,4$
;; A == 0
cp (hl)
- jr z,3$
-1$:
+ jr Z,3$
+1$:
inc de
inc hl
jr 2$
ld de,#-1
5$:
ret
-
\ No newline at end of file