From: Alan Cox Date: Sun, 9 Dec 2018 15:43:48 +0000 (+0000) Subject: cromemco: This gets our boot disk to the bootdev: prompt X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=89985b6ead310a4aff5fe0dc79bc17579f442096;p=FUZIX.git cromemco: This gets our boot disk to the bootdev: prompt Unfortunately we don't seem to have any interrupts or tty activity on reading so this needs some further research. --- diff --git a/Kernel/platform-cromemco/Makefile b/Kernel/platform-cromemco/Makefile index 6a6a87bd..c511cf83 100644 --- a/Kernel/platform-cromemco/Makefile +++ b/Kernel/platform-cromemco/Makefile @@ -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 diff --git a/Kernel/platform-cromemco/README b/Kernel/platform-cromemco/README index efad738d..2e72ca05 100644 --- a/Kernel/platform-cromemco/README +++ b/Kernel/platform-cromemco/README @@ -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) diff --git a/Kernel/platform-cromemco/cloader-16fdc.s b/Kernel/platform-cromemco/cloader-16fdc.s index 06cf742f..0b4d00c2 100644 --- a/Kernel/platform-cromemco/cloader-16fdc.s +++ b/Kernel/platform-cromemco/cloader-16fdc.s @@ -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 diff --git a/Kernel/platform-cromemco/main.c b/Kernel/platform-cromemco/main.c index 5952c42f..38ed2563 100644 --- a/Kernel/platform-cromemco/main.c +++ b/Kernel/platform-cromemco/main.c @@ -1,5 +1,6 @@ #include #include +#include uaddr_t ramtop = PROGTOP;