From cc7eb0ee7280db0b6446725497a4c6f20224ce14 Mon Sep 17 00:00:00 2001 From: Alan Date: Sat, 2 Jun 2018 12:52:34 +0100 Subject: [PATCH] fcc: TRS80 model 1 support --- Library/tools/fcc.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Library/tools/fcc.c b/Library/tools/fcc.c index 8fb42759..8bf85d8b 100644 --- a/Library/tools/fcc.c +++ b/Library/tools/fcc.c @@ -217,8 +217,15 @@ static void set_platform(const char *p) oom(); sprintf(n, "-%s", p); platform = n; - if (strcmp(platform, "-zx128") == 0) + /* TRS80m1 don't need special libraries just a new base address */ + if (strcmp(platform, "-trs80m1") == 0) { + platform=""; progbase = 0x8000; + } + if (strcmp(platform, "-zx128") == 0) { + /* ZX128 does because it can't use RST for syscalls */ + progbase = 0x8000; + } } static int debug; -- 2.34.1