cromemco: This gets our boot disk to the bootdev: prompt
authorAlan Cox <alan@linux.intel.com>
Sun, 9 Dec 2018 15:43:48 +0000 (15:43 +0000)
committerAlan Cox <alan@linux.intel.com>
Sun, 9 Dec 2018 15:43:48 +0000 (15:43 +0000)
Unfortunately we don't seem to have any interrupts or tty activity on reading
so this needs some further research.

Kernel/platform-cromemco/Makefile
Kernel/platform-cromemco/README
Kernel/platform-cromemco/cloader-16fdc.s
Kernel/platform-cromemco/main.c

index 6a6a87b..c511cf8 100644 (file)
@@ -31,4 +31,6 @@ image:
        sdldz80 -m -i cloader-16fdc.rel
        makebin -s 256 cloader-16fdc.ihx > cloader-16fdc.tmp
        dd if=cloader-16fdc.tmp of=cloader-16fdc.bin bs=1 skip=128
-
+       # Assemble a standard IBM format SSSD 8" disk image
+       cat cloader-16fdc.bin ../fuzix.bin | \
+               dd of=fuzix.dsk bs=256256 count=1 conv=sync
index efad738..2e72ca0 100644 (file)
@@ -18,9 +18,8 @@ The kstack and istack exist in each bank. We'll normally only use the kernel
 one but there are cases we switch and borrow a bit of the other bank copy.
 It's easier to arrange this way anyhow.
 
-
 TODO
--              Debug a loader
+-              Debug a loader (seems to work)
 -              An awful lot of early kernel boot debugging
 -              Interrupts properly (and IM2)
 
index 06cf742..0b4d00c 100644 (file)
@@ -78,7 +78,7 @@ trackend:
        jr z, run
 
        ld a,#'.'               ; We know that one byte per track will not
-       out (0),a               ; overrun!
+       out (1),a               ; overrun!
 
        ld b,#0x01              ; run from sector 1
 
@@ -91,13 +91,13 @@ trackend:
        jr movecmd
 
 strout:
-       in a,(0x0)
+       in a,(0)
        rla
        jr nc,strout
        ld a,(hl)
        or a
        ret z
-       out (0),a
+       out (1),a
        inc hl
        jr strout
 
index 5952c42..38ed256 100644 (file)
@@ -1,5 +1,6 @@
 #include <kernel.h>
 #include <devtty.h>
+#include <printf.h>
 
 uaddr_t ramtop = PROGTOP;