]> git.sur5r.net Git - cc65/blobdiff - libsrc/common/islower.s
The spans do now contain the size of a span, no longer the end offset.
[cc65] / libsrc / common / islower.s
index 565f0f85333386aa6393259e5b48943abb1f27cf..0078366b8213395b02dc33d3ec32623193499e8d 100644 (file)
@@ -5,11 +5,17 @@
 ;
 
        .export         _islower
-       .import         __ctype
+               .include        "ctype.inc"
 
 _islower:
+       cpx     #$00            ; Char range ok?
+       bne     @L1             ; Jump if no
        tay
        lda     __ctype,y       ; Get character classification
-       and     #$01            ; Mask lower char bit
+               and     #CT_LOWER       ; Mask lower char bit
+       rts
+
+@L1:   lda     #$00            ; Return false
+       tax
        rts