1
0
mirror of https://github.com/cc65/cc65.git synced 2025-08-13 08:25:28 +00:00

Exclude apple2enh-only functionality from apple2 biuld on source code level.

This commit is contained in:
Oliver Schmidt
2013-05-01 22:02:47 +02:00
parent 6891862bbe
commit b1c38729d0
2 changed files with 6 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
; void __fastcall__ textframe (unsigned char width, unsigned char height, ; void __fastcall__ textframe (unsigned char width, unsigned char height,
; unsigned char style); ; unsigned char style);
; ;
.ifdef __APPLE2ENH__
.export _textframexy, _textframe .export _textframexy, _textframe
.import popa, pusha, _gotoxy .import popa, pusha, _gotoxy
@@ -103,3 +104,5 @@ LENGTH: .byte 0, <-2, 0, <-2, <-2, 0, <-2, 0
; - hibit set means normal printable character ; - hibit set means normal printable character
; - hibit clear means MouseText character ; - hibit clear means MouseText character
CHAR: .byte '_'|$80, '_', 'L', 'Z', 'L', 'Z', '_'|$80, '_' CHAR: .byte '_'|$80, '_', 'L', 'Z', 'L', 'Z', '_'|$80, '_'
.endif ; __APPLE2ENH__

View File

@@ -3,6 +3,7 @@
; ;
; unsigned __fastcall__ videomode (unsigned mode); ; unsigned __fastcall__ videomode (unsigned mode);
; ;
.ifdef __APPLE2ENH__
.export _videomode .export _videomode
.import COUT .import COUT
@@ -63,3 +64,5 @@ done: lda #$11 ; Ctrl-char code for 40 cols
bpl :+ bpl :+
lda #$12 ; Ctrl-char code for 80 cols lda #$12 ; Ctrl-char code for 80 cols
: rts ; X was preserved all the way : rts ; X was preserved all the way
.endif ; __APPLE2ENH__