.area _CODE2
.area _VIDEO
.area _CONST
- .area _DISCARD
.area _DATA
; Must be over 0x8000 for HIGHCODE
.area _HIGHCODE
.area _GSINIT
.area _GSFINAL
.area _COMMONMEM
+ .area _DISCARD
; imported symbols
.globl _fuzix_main
.globl init_hardware
.globl s__DATA
.globl l__DATA
+ .globl s__DISCARD
+ .globl l__DISCARD
.globl s__COMMONMEM
.globl l__COMMONMEM
.globl s__INITIALIZER
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