2000-05-28 13:40:48 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 02.06.1998
|
|
|
|
;
|
|
|
|
; int isupper (int c);
|
|
|
|
;
|
|
|
|
|
2013-05-09 13:56:54 +02:00
|
|
|
.export _isupper
|
|
|
|
.include "ctype.inc"
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
_isupper:
|
2013-05-09 13:56:54 +02:00
|
|
|
cpx #$00 ; Char range ok?
|
|
|
|
bne @L1 ; Jump if no
|
|
|
|
tay
|
|
|
|
lda __ctype,y ; Get character classification
|
|
|
|
and #CT_UPPER ; Mask upper char bit
|
|
|
|
rts
|
2000-05-28 13:40:48 +00:00
|
|
|
|
2013-05-09 13:56:54 +02:00
|
|
|
@L1: lda #$00 ; Return false
|
|
|
|
tax
|
|
|
|
rts
|
2000-06-08 18:35:04 +00:00
|
|
|
|