mirror of
https://github.com/cc65/cc65.git
synced 2025-01-10 03:30:05 +00:00
feb5026823
* Added option to disable the force-to-uppercase behavior of the apple2 target. * Fixed dangling spaces.
24 lines
514 B
ArmAsm
24 lines
514 B
ArmAsm
;
|
|
; Oliver Schmidt, 2024-08-06
|
|
;
|
|
; unsigned char __fastcall__ allow_lowercase (unsigned char onoff);
|
|
;
|
|
|
|
.export _allow_lowercase
|
|
.import uppercasemask, return0, return1
|
|
|
|
_allow_lowercase:
|
|
tax
|
|
lda values,x
|
|
ldx uppercasemask
|
|
sta uppercasemask
|
|
cpx #$FF
|
|
beq :+
|
|
jmp return0
|
|
: jmp return1
|
|
|
|
.rodata
|
|
|
|
values: .byte $DF ; Force uppercase
|
|
.byte $FF ; Keep lowercase
|