mirror of
https://github.com/cc65/cc65.git
synced 2024-11-19 06:31:31 +00:00
17 lines
254 B
ArmAsm
17 lines
254 B
ArmAsm
|
;
|
||
|
; Ullrich von Bassewitz, 02.06.1998
|
||
|
;
|
||
|
; int isgraph (int c);
|
||
|
;
|
||
|
|
||
|
.export _isgraph
|
||
|
.import __ctype
|
||
|
|
||
|
_isgraph:
|
||
|
tay
|
||
|
lda __ctype,y ; Get character classification
|
||
|
eor #$30 ; NOT control and NOT space
|
||
|
and #$30 ; Mask character bits
|
||
|
rts
|
||
|
|