From eb88cee5a719f83c0c40c4b403cd1da33b51b48c Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 25 Nov 2014 17:58:07 +0000 Subject: [PATCH] trs80: update to new _discard --- Kernel/platform-trs80/crt0.s | 7 ++++++- Kernel/platform-trs80/uzi.lnk | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Kernel/platform-trs80/crt0.s b/Kernel/platform-trs80/crt0.s index f0d24c84..f58837e1 100644 --- a/Kernel/platform-trs80/crt0.s +++ b/Kernel/platform-trs80/crt0.s @@ -5,7 +5,6 @@ .area _CODE .area _CODE2 .area _VIDEO - .area _DISCARD .area _CONST .area _DATA .area _INITIALIZED @@ -18,6 +17,7 @@ .area _GSINIT .area _GSFINAL .area _COMMONMEM + .area _DISCARD ; imported symbols .globl _fuzix_main @@ -25,6 +25,8 @@ .globl init_hardware .globl s__DATA .globl l__DATA + .globl s__DISCARD + .globl l__DISCARD .globl s__COMMONMEM .globl l__COMMONMEM .globl s__INITIALIZER @@ -43,6 +45,9 @@ start: ld de, #s__COMMONMEM ld bc, #l__COMMONMEM ldir + ld de, #s__DISCARD + ld bc, #l__DISCARD + ldir ; then zero the data area ld hl, #s__DATA ld de, #s__DATA + 1 diff --git a/Kernel/platform-trs80/uzi.lnk b/Kernel/platform-trs80/uzi.lnk index 6176ff65..78e488ac 100644 --- a/Kernel/platform-trs80/uzi.lnk +++ b/Kernel/platform-trs80/uzi.lnk @@ -2,6 +2,7 @@ -i uzi.ihx -b _CODE=0x0088 -b _COMMONMEM=0xF000 +-b _DISCARD=0xE000 -l z80 platform-trs80/crt0.rel platform-trs80/commonmem.rel -- 2.34.1