diff --git a/Binary/Makefile b/Binary/Makefile index 8e01338f..4b2e6294 100644 --- a/Binary/Makefile +++ b/Binary/Makefile @@ -5,4 +5,4 @@ SUBDIRS = Apps CPM3 ZPM3 include $(TOOLS)/Makefile.inc clobber:: - @rm -f *.bin *.com *.img *.rom *.pdf *.log *.eeprom + @rm -f *.bin *.com *.img *.rom *.pdf *.log *.eeprom *.dat diff --git a/Source/BuildZRC.cmd b/Source/BuildZRC.cmd new file mode 100644 index 00000000..4c037580 --- /dev/null +++ b/Source/BuildZRC.cmd @@ -0,0 +1,4 @@ +@echo off +setlocal + +setlocal & cd ZRC && call Build || exit /b 1 & endlocal diff --git a/Source/Images/Build.cmd b/Source/Images/Build.cmd index 8a443fe7..78efeccd 100644 --- a/Source/Images/Build.cmd +++ b/Source/Images/Build.cmd @@ -40,7 +40,6 @@ call BuildDisk.cmd ws4 wbw_hd1024 if exist ..\BPBIOS\bpbio-ww.rel call BuildDisk.cmd bp wbw_hd1024 copy hd1024_prefix.dat ..\..\Binary\ -copy hd1024_zrc_prefix.dat ..\..\Binary\ echo. echo Building Combo Disk (1024 directory entry format) Image... diff --git a/Source/Images/Makefile b/Source/Images/Makefile index 23962b06..7df9706f 100644 --- a/Source/Images/Makefile +++ b/Source/Images/Makefile @@ -14,12 +14,10 @@ HD1024IMGS = hd1024_cpm22.img hd1024_zsdos.img hd1024_nzcom.img \ HD512PREFIX = HD1024PREFIX = hd1024_prefix.dat -HD1024ZRCPREFIX = hd1024_zrc_prefix.dat OBJECTS = $(FDIMGS) OBJECTS += $(HD512IMGS) hd512_combo.img $(HD512PREFIX) OBJECTS += $(HD1024IMGS) hd1024_combo.img $(HD1024PREFIX) -OBJECTS += $(HD1024ZRCPREFIX) OTHERS = blank144 blankhd512 blankhd1024 diff --git a/Source/Images/hd1024_zrc_prefix.dat b/Source/Images/hd1024_zrc_prefix.dat deleted file mode 100644 index 36044f58..00000000 Binary files a/Source/Images/hd1024_zrc_prefix.dat and /dev/null differ diff --git a/Source/Makefile b/Source/Makefile index 3df2bab5..1184c624 100644 --- a/Source/Makefile +++ b/Source/Makefile @@ -11,5 +11,6 @@ SUBDIRS += HBIOS CPM3 SUBDIRS += ZPM3 #SUBDIRS += BPBIOS SUBDIRS += Images +SUBDIRS += ZRC TOOLS = ../Tools include $(TOOLS)/Makefile.inc diff --git a/Source/ZRC/Build.cmd b/Source/ZRC/Build.cmd new file mode 100644 index 00000000..e4be1f07 --- /dev/null +++ b/Source/ZRC/Build.cmd @@ -0,0 +1,13 @@ +@echo off +setlocal + +if not exist ..\..\Binary\RCZ80_zrc.rom goto :err + +copy /b zrc_cfldr.bin + zrc_ptbl.bin + zrc_fill_1.bin + zrc_mon.bin + zrc_fill_2.bin + ..\..\Binary\RCZ80_zrc.rom + zrc_fill_3.bin ..\..\Binary\hd1024_zrc_prefix.dat + +goto :eof + +:err + +echo *** Can't build ZRC prefix file -- missing "..\..\Binary\RCZ80_zrc.rom" +exit /b 1 \ No newline at end of file diff --git a/Source/ZRC/Clean.cmd b/Source/ZRC/Clean.cmd new file mode 100644 index 00000000..fa12c5c7 --- /dev/null +++ b/Source/ZRC/Clean.cmd @@ -0,0 +1,3 @@ +@echo off +setlocal + diff --git a/Source/ZRC/Makefile b/Source/ZRC/Makefile new file mode 100644 index 00000000..aed2c80b --- /dev/null +++ b/Source/ZRC/Makefile @@ -0,0 +1,19 @@ +HD1024ZRCPREFIX = hd1024_zrc_prefix.dat +ZRCROM = ../../Binary/RCZ80_zrc.rom + +OBJECTS := + +ifneq ($(wildcard $(ZRCROM)),) + OBJECTS += $(HD1024ZRCPREFIX) +endif + +DEST=../../Binary + +TOOLS = ../../Tools + +include $(TOOLS)/Makefile.inc + +DIFFPATH = $(DIFFTO)/Binary + +$(HD1024ZRCPREFIX): + cat zrc_cfldr.bin zrc_ptbl.bin zrc_fill_1.bin zrc_mon.bin zrc_fill_2.bin $(ZRCROM) zrc_fill_3.bin >$@ \ No newline at end of file diff --git a/Source/ZRC/ZRC Disk Layout.txt b/Source/ZRC/ZRC Disk Layout.txt new file mode 100644 index 00000000..7f8e3975 --- /dev/null +++ b/Source/ZRC/ZRC Disk Layout.txt @@ -0,0 +1,16 @@ +CF Boot Loader: Sector 0 (bytes 0-255) +RomWBW Partition Table: Sector 0 (bytes 256-511) +ZRC Monitor: Sectors 0xF8-0xFF (bytes 0x1F000-0x1FFFF) +RomWBW: Sectors 0x120-0x51F (bytes 0x24000-0xA3FFF) +Start of Slices (0x1E partition): Sector 0x800 (byte 0x100000) + +Start Length Description +------- ------- --------------------------- +0x00000 0x00100 CF Boot Loader +0x00100 0x00100 RomWBW Partition Table +0x00200 0x1EE00 Filler +0x1F000 0x01000 ZRC Monitor +0x20000 0x04000 Filler +0x24000 0x80000 RomWBW +0xA4000 0x5C000 Filler +0x100000: Start of slices (partition 0x1E) \ No newline at end of file