From: Oliver Schmidt Date: Wed, 1 May 2013 20:02:47 +0000 (+0200) Subject: Exclude apple2enh-only functionality from apple2 biuld on source code level. X-Git-Tag: V2.14~43 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b1c38729d0b236daeb1a1e9c559455ab1419cb49;p=cc65 Exclude apple2enh-only functionality from apple2 biuld on source code level. --- diff --git a/libsrc/apple2/textframe.s b/libsrc/apple2/textframe.s index b88063431..e57337e92 100644 --- a/libsrc/apple2/textframe.s +++ b/libsrc/apple2/textframe.s @@ -7,6 +7,7 @@ ; void __fastcall__ textframe (unsigned char width, unsigned char height, ; unsigned char style); ; + .ifdef __APPLE2ENH__ .export _textframexy, _textframe .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 clear means MouseText character CHAR: .byte '_'|$80, '_', 'L', 'Z', 'L', 'Z', '_'|$80, '_' + + .endif ; __APPLE2ENH__ diff --git a/libsrc/apple2/videomode.s b/libsrc/apple2/videomode.s index 8e157e9df..7a0493384 100644 --- a/libsrc/apple2/videomode.s +++ b/libsrc/apple2/videomode.s @@ -3,6 +3,7 @@ ; ; unsigned __fastcall__ videomode (unsigned mode); ; + .ifdef __APPLE2ENH__ .export _videomode .import COUT @@ -63,3 +64,5 @@ done: lda #$11 ; Ctrl-char code for 40 cols bpl :+ lda #$12 ; Ctrl-char code for 80 cols : rts ; X was preserved all the way + + .endif ; __APPLE2ENH__