]> git.sur5r.net Git - cc65/blobdiff - libsrc/common/isalpha.s
The spans do now contain the size of a span, no longer the end offset.
[cc65] / libsrc / common / isalpha.s
index d0fcf97b2a58b9326088299ed51792a37976510d..624dec682ae5e61faa29e12610c70b4d5c18965b 100644 (file)
@@ -5,14 +5,14 @@
 ;
 
        .export         _isalpha
-       .import         __ctype
+       .include        "ctype.inc"
 
 _isalpha:
        cpx     #$00            ; Char range ok?
        bne     @L1             ; Jump if no
        tay
        lda     __ctype,y       ; Get character classification
-       and     #$03            ; Mask character bits
+               and     #CT_ALPHA       ; Mask character bits
        rts
 
 @L1:   lda     #$00            ; Return false