]> git.sur5r.net Git - cc65/blob - libsrc/common/isgraph.s
91f482c5664d4fe91cc4c594d513cd729fab4e4a
[cc65] / libsrc / common / isgraph.s
1 ;
2 ; Ullrich von Bassewitz, 02.06.1998
3 ;
4 ; int isgraph (int c);
5 ;
6
7         .export         _isgraph
8         .import         __ctype
9
10 _isgraph:
11         tay
12         lda     __ctype,y       ; Get character classification
13         eor     #$30            ; NOT control and NOT space
14         and     #$30            ; Mask character bits
15         rts
16