From adad4b0af94aadefebe697c06b93f727bdbcaa73 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 25 Nov 2014 17:56:53 +0000 Subject: [PATCH] msx1: update to new discard --- Kernel/platform-msx1/crt0.s | 10 ++++++++-- Kernel/platform-msx1/uzi.lnk | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Kernel/platform-msx1/crt0.s b/Kernel/platform-msx1/crt0.s index ec77a1d9..ad68dce2 100644 --- a/Kernel/platform-msx1/crt0.s +++ b/Kernel/platform-msx1/crt0.s @@ -7,7 +7,6 @@ .area _CODE2 .area _VIDEO .area _CONST - .area _DISCARD .area _DATA ; Must be over 0x8000 for HIGHCODE .area _HIGHCODE @@ -21,6 +20,7 @@ .area _GSINIT .area _GSFINAL .area _COMMONMEM + .area _DISCARD ; imported symbols .globl _fuzix_main @@ -28,6 +28,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 @@ -56,11 +58,15 @@ start: di ld a, #'@' out (0x2f), a ld sp, #kstack_top - ; move the common memory where it belongs + ; move the common memory where it belongs ld hl, #s__INITIALIZER ld de, #s__COMMONMEM ld bc, #l__COMMONMEM ldir + ; move the discard area where it belongs + 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-msx1/uzi.lnk b/Kernel/platform-msx1/uzi.lnk index 020641cb..5fbc00bb 100644 --- a/Kernel/platform-msx1/uzi.lnk +++ b/Kernel/platform-msx1/uzi.lnk @@ -2,6 +2,7 @@ -i uzi.ihx -b _CODE=0x0000 -b _COMMONMEM=0xF000 +-b _DISCARD=0xE000 -l z80 platform-msx1/bootrom.rel platform-msx1/crt0.rel -- 2.34.1