mirror of
https://github.com/wwarthen/RomWBW.git
synced 2026-02-06 22:43:15 -06:00
Improved build processing for ZRC
ZRC CF image prefix is now created dynamically and imbeds ROM image from current build.
This commit is contained in:
4
Source/BuildZRC.cmd
Normal file
4
Source/BuildZRC.cmd
Normal file
@@ -0,0 +1,4 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
setlocal & cd ZRC && call Build || exit /b 1 & endlocal
|
||||
@@ -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...
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Binary file not shown.
@@ -11,5 +11,6 @@ SUBDIRS += HBIOS CPM3
|
||||
SUBDIRS += ZPM3
|
||||
#SUBDIRS += BPBIOS
|
||||
SUBDIRS += Images
|
||||
SUBDIRS += ZRC
|
||||
TOOLS = ../Tools
|
||||
include $(TOOLS)/Makefile.inc
|
||||
|
||||
13
Source/ZRC/Build.cmd
Normal file
13
Source/ZRC/Build.cmd
Normal file
@@ -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
|
||||
3
Source/ZRC/Clean.cmd
Normal file
3
Source/ZRC/Clean.cmd
Normal file
@@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
19
Source/ZRC/Makefile
Normal file
19
Source/ZRC/Makefile
Normal file
@@ -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 >$@
|
||||
16
Source/ZRC/ZRC Disk Layout.txt
Normal file
16
Source/ZRC/ZRC Disk Layout.txt
Normal file
@@ -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)
|
||||
Reference in New Issue
Block a user