trs80m1: start building a bootable floppy
authorAlan Cox <alan@linux.intel.com>
Thu, 24 May 2018 14:29:52 +0000 (15:29 +0100)
committerAlan Cox <alan@linux.intel.com>
Thu, 24 May 2018 14:29:52 +0000 (15:29 +0100)
Kernel/platform-trs80m1/Makefile
Kernel/platform-trs80m1/README

index f3c811e..f24387e 100644 (file)
@@ -30,8 +30,20 @@ clean:
        rm -f $(OBJS) $(JUNK)  core *~ 
 
 image: trs80load.bin
+       dd if=/dev/zero of=boot.raw bs=256 count=400
+       # Boot block at 0,0
+       dd if=trs80load.bin of=boot.raw bs=256 count=1 conv=notrunc
+       # 16K of common at 1,0
+       dd if=../common.bin of=boot.raw bs=256 count=61 seek=10 conv=notrunc
+       # Followed directly by bank1 (32K)
+       dd if=../bank1.bin of=boot.raw bs=256 count=128 seek=71 conv=notrunc
+       # And then bank2 (32K)
+       dd if=../bank2.bin of=boot.raw bs=256 count=128 seek=199 conv=notrunc
+       # And turn it into a single sided 40 track fm image
+       ../tools/makejv3 sd40s boot.raw boot.jv3
 
 trs80load.bin: trs80load.s
        sdasz80 -o trs80load.s
        sdldz80 -i trs80load.rel
-       makebin -s 256 trs80load.ihx trs80load.bin
+       makebin -s 17152 trs80load.ihx trs80load.tmp
+       dd if=trs80load.tmp of=trs80load.bin bs=256 skip=66 count=1
index e54bcba..a26d6d2 100644 (file)
@@ -102,3 +102,11 @@ Useful rom addresses
 
 0060 -> 14.5*BC uS delay
 
+
+Floppy boot seems to be
+
+       read sector 0 track 0  (is FDC 0 based - check!)
+       place at 4200-42FF
+       JP 4200 (stack is around 407D)
+
+must be single sided single density boot disk