From b1c38729d0b236daeb1a1e9c559455ab1419cb49 Mon Sep 17 00:00:00 2001 From: Oliver Schmidt Date: Wed, 1 May 2013 22:02:47 +0200 Subject: [PATCH] Exclude apple2enh-only functionality from apple2 biuld on source code level. --- libsrc/apple2/textframe.s | 3 +++ libsrc/apple2/videomode.s | 3 +++ 2 files changed, 6 insertions(+) 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__ -- 2.39.5