From: Alan Date: Sat, 2 Jun 2018 11:52:34 +0000 (+0100) Subject: fcc: TRS80 model 1 support X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=cc7eb0ee7280db0b6446725497a4c6f20224ce14;p=FUZIX.git fcc: TRS80 model 1 support --- 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;