Browse Source

Improved build processing for ZRC

ZRC CF image prefix is now created dynamically and imbeds ROM image from current build.
pull/173/head
Wayne Warthen 5 years ago
parent
commit
2d1aab4a62
  1. 2
      Binary/Makefile
  2. 4
      Source/BuildZRC.cmd
  3. 1
      Source/Images/Build.cmd
  4. 2
      Source/Images/Makefile
  5. BIN
      Source/Images/hd1024_zrc_prefix.dat
  6. 1
      Source/Makefile
  7. 13
      Source/ZRC/Build.cmd
  8. 3
      Source/ZRC/Clean.cmd
  9. 19
      Source/ZRC/Makefile
  10. 16
      Source/ZRC/ZRC Disk Layout.txt

2
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

4
Source/BuildZRC.cmd

@ -0,0 +1,4 @@
@echo off
setlocal
setlocal & cd ZRC && call Build || exit /b 1 & endlocal

1
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...

2
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

BIN
Source/Images/hd1024_zrc_prefix.dat

Binary file not shown.

1
Source/Makefile

@ -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

@ -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

@ -0,0 +1,3 @@
@echo off
setlocal

19
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 >$@

16
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)
Loading…
Cancel
Save