]> git.sur5r.net Git - cc65/blobdiff - libsrc/common/atoi.s
Use named constants from ctype.inc instead of hard coded numeric values.
[cc65] / libsrc / common / atoi.s
index cb2a72b48d5967f5ac21de758d78874599b568f0..6732755733e75757241d0e21ae4f2c83e461aebb 100644 (file)
@@ -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