1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-01 23:29:41 +00:00
cc65/libsrc/common/isdigit.s

16 lines
203 B
ArmAsm
Raw Normal View History

;
; Ullrich von Bassewitz, 02.06.1998
;
; int isdigit (int c);
;
.export _isdigit
.import __ctype
_isdigit:
tay
lda __ctype,y ; Get character classification
and #$04 ; Mask digit bit
rts