Apple2: automatically enable lowercase starting from //e

This commit is contained in:
Colin Leroy-Mira
2025-05-21 20:47:21 +02:00
committed by Oliver Schmidt
parent f8c51ffd3d
commit 89daccaa43

View File

@@ -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