There is still some memory cleaning in setup.s but this
is where it belongs.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
main: orcc #0x10 ; interrupts definitely off
lds #kstack_top
+ ldx #__sectionbase_.bss__
+ ldy #__sectionlen_.bss__
+ clra
+bss_wipe: sta ,x+
+ leay -1,y
+ bne bss_wipe
+
jsr init_early
jsr init_hardware
jsr _fuzix_main
+define basesympat __sectionbase_%s__
+define lensympat __sectionlen_%s__
section .vectors load 0x0100
section .udata load 0x7D00
section .bss high 0x7D00