msx2: update to new _discard logic
authorAlan Cox <alan@etchedpixels.co.uk>
Tue, 25 Nov 2014 17:57:26 +0000 (17:57 +0000)
committerAlan Cox <alan@etchedpixels.co.uk>
Tue, 25 Nov 2014 17:57:26 +0000 (17:57 +0000)
Kernel/platform-msx2/crt0.s
Kernel/platform-msx2/uzi.lnk

index 1765f36..da3f181 100644 (file)
@@ -7,7 +7,6 @@
                .area _CODE2
                .area _VIDEO
                .area _CONST
-               .area _DISCARD
                .area _DATA
                .area _INITIALIZED
                .area _BSEG
@@ -19,6 +18,7 @@
                .area _GSINIT
                .area _GSFINAL
                .area _COMMONMEM
+               .area _DISCARD
 
                ; imported symbols
                .globl _fuzix_main
@@ -26,6 +26,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
@@ -54,11 +56,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 discardable memory 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
index c5c74c8..df51002 100644 (file)
@@ -2,6 +2,7 @@
 -i uzi.ihx
 -b _CODE=0x0000
 -b _COMMONMEM=0xF000
+-b _DISCARD=0xE000
 -l z80
 platform-msx2/bootrom.rel
 platform-msx2/crt0.rel