]> git.sur5r.net Git - cc65/blobdiff - libsrc/common/isgraph.s
Added dump of the file list
[cc65] / libsrc / common / isgraph.s
index 91f482c5664d4fe91cc4c594d513cd729fab4e4a..e2073aea2274b641babb487589503c812872ff75 100644 (file)
@@ -8,9 +8,15 @@
        .import         __ctype
 
 _isgraph:
+       cpx     #$00            ; Char range ok?
+       bne     @L1             ; Jump if no
        tay
        lda     __ctype,y       ; Get character classification
        eor     #$30            ; NOT control and NOT space
        and     #$30            ; Mask character bits
        rts
 
+@L1:   lda     #$00            ; Return false
+       tax
+       rts
+