We should have 0 bytes in _CODE
.globl _discard_size
; startup code
- .area _CODE
+ .area _BOOT
;
; Once the loader completes it jumps here
-r
-i fuzix.ihx
-b _INITIALIZER=0x0001
--b _CODE=0x4200
+-b _BOOT=0x4300
-b _CODE1=0x8000
-b _CODE2=0x8000
--b _COMMONMEM=0x4300
+-b _COMMONMEM=0x4400
-l z80
platform-trs80m1/crt0.rel
platform-trs80m1/commonmem.rel
#endif
+/*
+ * So that we don't suck in a library routine we can't use from
+ * the runtime
+ */
+
+int strlen(const char *p)
+{
+ int len = 0;
+ while(*p++)
+ len++;
+ return len;
+}
; -----------------------------------------------------------------------------
; KERNEL MEMORY BANK (above 08000, only accessible when the kernel is mapped)
; -----------------------------------------------------------------------------
- .area _CODE
+ .area _BOOT
init_hardware:
; set system RAM size
; exported symbols
.globl init_early
- .globl init_hardware
.globl interrupt_handler
.globl _program_vectors
.globl platform_interrupt_all
rst 0
; -----------------------------------------------------------------------------
-; KERNEL MEMORY BANK (above 0x8000)
+; BOOT MEMORY BANK (below 0x8000)
; -----------------------------------------------------------------------------
- .area _CODE
+ .area _BOOT
init_early: