Apple2: automatically enable lowercase starting from //e
This commit is contained in:
committed by
Oliver Schmidt
parent
f8c51ffd3d
commit
89daccaa43
@@ -4,6 +4,25 @@
|
||||
|
||||
.export uppercasemask
|
||||
|
||||
.ifndef __APPLE2ENH__
|
||||
.import machinetype
|
||||
.constructor detectlowercase
|
||||
.endif
|
||||
|
||||
.ifndef __APPLE2ENH__
|
||||
|
||||
.segment "ONCE"
|
||||
|
||||
detectlowercase:
|
||||
bit machinetype
|
||||
bpl :+
|
||||
|
||||
lda #$FF
|
||||
sta uppercasemask
|
||||
: rts
|
||||
|
||||
.endif
|
||||
|
||||
.data
|
||||
|
||||
uppercasemask: .byte $DF ; Convert to uppercase
|
||||
|
||||
Reference in New Issue
Block a user