recipes/pcat: move recipe blocks into local overlay

This commit is contained in:
Virgil Dupras 2020-09-20 20:48:52 -04:00
parent 475171d07b
commit fea9beac1e
12 changed files with 27 additions and 20 deletions

View File

@ -11,4 +11,4 @@ MASTER INDEX
550-649 unused
650 AVR assembler 690 AVR SPI programmer
700-729 unused 730 8086 assembler
800 8086 boot code 830 PC/AT recipe
800 8086 boot code

View File

@ -1,5 +0,0 @@
PC/AT recipe
832 MBR bootloader 834 KEY/EMIT drivers
836-838 BLK drivers 840 AT-XY drivers
842 xcomp unit

View File

@ -1,23 +1,30 @@
TARGET = disk.bin
BASEDIR = ../..
CDIR = $(BASEDIR)/cvm
BASE = ../..
CDIR = $(BASE)/cvm
BLKPACK = $(BASE)/tools/blkpack
STAGE = $(CDIR)/stage
.PHONY: all
all: $(TARGET)
mbr.bin: mbr.fs $(STAGE)
cat mbr.fs | $(STAGE) > $@
os.bin: xcomp.fs $(STAGE) blkfs
$(STAGE) blkfs < xcomp.fs > $@
os.bin: xcomp.fs $(STAGE)
cat xcomp.fs | $(STAGE) > $@
$(BLKPACK):
$(MAKE) -C ../tools
disk.bin: mbr.bin os.bin
cat mbr.bin os.bin > $@
dd if=$(CDIR)/blkfs of=$@ bs=512 seek=16
blkfs: $(BLKPACK)
$(BLKPACK) $(BASE)/blk blk > $@
$(STAGE):
$(MAKE) -C $(CDIR) stage
mbr.bin: mbr.fs $(STAGE)
cat mbr.fs | $(STAGE) > $@
$(TARGET): mbr.bin os.bin
cat mbr.bin os.bin > $@
dd if=blkfs of=$@ bs=512 seek=16
.PHONY: emul
emul: $(TARGET)
qemu-system-i386 -drive file=$(TARGET),if=floppy,format=raw

5
recipes/pcat/blk/600 Normal file
View File

@ -0,0 +1,5 @@
PC/AT recipe
602 MBR bootloader 604 KEY/EMIT drivers
606-608 BLK drivers 610 AT-XY drivers
612 xcomp unit

View File

@ -3,11 +3,11 @@
RS_ADDR 0x80 - CONSTANT SYSVARS
750 LOAD ( 8086 asm )
262 LOAD ( xcomp ) 270 LOAD ( xcomp overrides )
805 820 LOADR
805 820 LOADR ( 8086 boot code )
353 LOAD ( xcomp core low )
834 LOAD ( KEY/EMIT drivers )
836 838 LOADR ( BLK drivers )
840 LOAD ( AT-XY drivers )
604 LOAD ( KEY/EMIT drivers )
606 608 LOADR ( BLK drivers )
610 LOAD ( AT-XY drivers )
380 LOAD ( xcomp core high )
(entry) _ ( Update LATEST ) PC ORG @ 8 + !
," BLK$ FD$ ' FD@ BLK@* ! ' FD! BLK!* ! " EOT,

View File

@ -1,3 +1,3 @@
842 LOAD ( PC/AT xcomp )
612 LOAD ( PC/AT xcomp )
ORG @ 256 /MOD 2 PC! 2 PC!
H@ 256 /MOD 2 PC! 2 PC!