From: Alan Cox Date: Tue, 25 Nov 2014 15:54:39 +0000 (+0000) Subject: z80pack: Keep discard separate X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=b201a7c604e3ac1823406d6e158cde74ef9c20b1;p=FUZIX.git z80pack: Keep discard separate We can now discard the _DISCARD segment - yay, another 1K --- diff --git a/Kernel/platform-z80pack/crt0.s b/Kernel/platform-z80pack/crt0.s index 95969bc4..5594f375 100644 --- a/Kernel/platform-z80pack/crt0.s +++ b/Kernel/platform-z80pack/crt0.s @@ -8,7 +8,6 @@ ; when they are first seen. .area _CODE .area _CODE2 - .area _DISCARD ; not discarded yet .area _CONST .area _DATA .area _INITIALIZED @@ -20,6 +19,7 @@ .area _INITIALIZER .area _GSINIT .area _GSFINAL + .area _DISCARD .area _COMMONMEM ; imported symbols @@ -29,6 +29,8 @@ .globl s__INITIALIZER .globl s__COMMONMEM .globl l__COMMONMEM + .globl s__DISCARD + .globl l__DISCARD .globl s__DATA .globl l__DATA .globl kstack_top @@ -47,6 +49,10 @@ init: ld de, #s__COMMONMEM ld bc, #l__COMMONMEM ldir + ; and the discard + ld de, #s__DISCARD + ld bc, #l__DISCARD + ldir ; then zero the data area ld hl, #s__DATA ld de, #s__DATA + 1