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

index f0d24c8..f58837e 100644 (file)
@@ -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
index 6176ff6..78e488a 100644 (file)
@@ -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