Use named constants from ctype.inc instead of hard coded numeric values.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3929 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
.import __ctype
|
||||
.importzp sreg, ptr1, ptr2, tmp1
|
||||
|
||||
.include "ctype.inc"
|
||||
|
||||
;
|
||||
; Conversion routine (32 bit)
|
||||
;
|
||||
@@ -27,7 +29,7 @@ _atol: sta ptr1 ; Store s
|
||||
L1: lda (ptr1),y
|
||||
tax
|
||||
lda __ctype,x ; get character classification
|
||||
and #$80 ; tab or space?
|
||||
and #CT_SPACE_TAB ; tab or space?
|
||||
beq L2 ; jump if no
|
||||
iny
|
||||
bne L1
|
||||
|
||||
Reference in New Issue
Block a user