This is our starting point for a minimal build and for Z80 gets us an 0x6000
(strictly 0x5F00) sized user space which we could push up to 0x6200.
Our target is 0x7D00, however 0x6000 is enough to run many of the apps/tools.
#define TICKSPERSEC 100 /* Ticks per second */
#define PROGBASE 0x0000 /* also data base */
#define PROGLOAD 0x0100
-#define PROGTOP 0x7D00 /* Top of program, base of U_DATA */
+#define PROGTOP 0x6000 /* Top of program, base of U_DATA */
#define PROC_SIZE 32 /* Memory needed per process */
#define SWAP_SIZE 0x40 /* 32K in blocks (we actually don't need the low 256) */
-mwxuy
-i fuzix.ihx
-b _DISCARD=0x5000
--b _UDATA=0x5D00
--b _CODE=0x6000
+-b _UDATA=0x6000
+-b _CODE=0x6300
-l z80
platform-micropack/crt0.rel
platform-micropack/commonmem.rel
; UZI mnemonics for memory addresses etc
-U_DATA .equ 0x7D00 ; (this is struct u_data from kernel.h)
+U_DATA .equ 0x6000 ; (this is struct u_data from kernel.h)
U_DATA__TOTALSIZE .equ 0x300 ; 256+256+256 bytes.
Z80_TYPE .equ 0