Added "popptr1" which is of common use to save some bytes.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
;
|
||||
|
||||
.export _strnicmp, _strncasecmp
|
||||
.import popax, __ctype
|
||||
.import popax, popptr1, __ctype
|
||||
.importzp ptr1, ptr2, ptr3, tmp1
|
||||
|
||||
.include "ctype.inc"
|
||||
@@ -32,13 +32,11 @@ _strncasecmp:
|
||||
jsr popax ; get s2
|
||||
sta ptr2
|
||||
stx ptr2+1
|
||||
jsr popax ; get s1
|
||||
sta ptr1
|
||||
stx ptr1+1
|
||||
jsr popptr1 ; get s1
|
||||
|
||||
; Loop setup
|
||||
|
||||
ldy #0
|
||||
; ldy #0 Y=0 guaranteed by popptr1
|
||||
|
||||
; Start of compare loop. Check the counter.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user