trs80m1: build Model III boot image
authorAlan Cox <alan@linux.intel.com>
Sat, 9 Jun 2018 15:56:32 +0000 (16:56 +0100)
committerAlan Cox <alan@linux.intel.com>
Sat, 9 Jun 2018 15:56:32 +0000 (16:56 +0100)
Kernel/platform-trs80m1/Makefile

index 7577aa8..eac430f 100644 (file)
@@ -29,7 +29,7 @@ $(DISCARD_COBJS): %.rel: %.c
 clean:
        rm -f $(OBJS) $(JUNK)  core *~ 
 
-image: trs80load.bin
+image: trs80load.bin trs80load-m3.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
@@ -40,10 +40,28 @@ image: trs80load.bin
        # And then bank2 (32K)
        dd if=../bank2.bin of=boot.raw bs=256 count=128 seek=199 conv=notrunc skip=128
        # And turn it into a single sided 40 track fm image
-       ../tools/makejv3 -t sd40s -d boot.raw boot.jv3
+       ../tools/makejv3 -s -t sd40s -d boot.raw boot.jv3
+
+       dd if=/dev/zero of=boot.raw bs=256 count=720
+       # Boot block at 0,0
+       dd if=trs80load-m3.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=18 conv=notrunc skip=67
+       # Followed directly by bank1 (32K)
+       dd if=../bank1.bin of=boot.raw bs=256 count=128 seek=79 conv=notrunc skip=128
+       # And then bank2 (32K)
+       dd if=../bank2.bin of=boot.raw bs=256 count=128 seek=207 conv=notrunc skip=128
+       # And turn it into a single sided 40 track fm image
+       ../tools/makejv3 -s -t dd40s -d boot.raw boot3.jv3
 
 trs80load.bin: trs80load.s
        sdasz80 -o trs80load.s
        sdldz80 -i trs80load.rel
        makebin -s 17152 trs80load.ihx trs80load.tmp
        dd if=trs80load.tmp of=trs80load.bin bs=256 skip=66 count=1
+
+trs80load-m3.bin: trs80load-m3.s
+       sdasz80 -o trs80load-m3.s
+       sdldz80 -i trs80load-m3.rel
+       makebin -s 17408 trs80load-m3.ihx trs80load-m3.tmp
+       dd if=trs80load-m3.tmp of=trs80load-m3.bin bs=256 skip=66 count=1