From 8fb73c95f470e66eb3b37a2f51bdb861f08ed113 Mon Sep 17 00:00:00 2001 From: curt mayer Date: Thu, 20 Feb 2020 11:31:49 -0800 Subject: [PATCH] coding changes for clean diff --- Source/HBIOS/Build.sh | 70 ++++++++++++++++++++++--------------------- Source/HBIOS/Makefile | 8 ++++- 2 files changed, 43 insertions(+), 35 deletions(-) diff --git a/Source/HBIOS/Build.sh b/Source/HBIOS/Build.sh index 4faf1991..48f21bc4 100755 --- a/Source/HBIOS/Build.sh +++ b/Source/HBIOS/Build.sh @@ -36,13 +36,14 @@ fi echo Building for $romname for $platform $config $romsize if [ $platform == UNA ] ; then - CBIOS=../CBIOS/cbios_una.bin + BIOS=una else - CBIOS=../CBIOS/cbios_wbw.bin + BIOS=wbw fi Apps=(assign fdu format mode osldr rtc survey syscopy sysgen talk timer xm inttest) timestamp=$(date +%Y-%m-%d) +timestamp="2020-02-20" blankfile=Blank${romsize}.dat romdiskfile=RomDisk.tmp @@ -52,15 +53,6 @@ outdir=../../Binary echo "creating empty rom disk of size $romsize in $blankfile" LANG=en_US.US-ASCII tr '\000' '\345' build.inc ; RomWBW Configured for $platform $config $timestamp ; @@ -72,44 +64,54 @@ ROMSIZE .EQU $romsize ; EOF -cp ../CPM22/OS2CCP.bin ccp.bin -cp ../CPM22/OS3BDOS.bin bdos.bin -cp ../ZCPR-DJ/zcpr.bin zcpr.bin -cp ../ZSDOS/zsdos.bin zsdos.bin cp ../Forth/camel80.bin camel80.bin +cp ../Fonts/font*.asm . -make -f Makefile dbgmon.bin prefix.bin romldr.bin eastaegg.bin nascom.bin \ - tastybasic.bin imgpad.bin imgpad0.bin +make dbgmon.bin prefix.bin romldr.bin eastaegg.bin nascom.bin \ + tastybasic.bin game.bin usrrom.bin imgpad.bin imgpad0.bin if [ $platform != UNA ] ; then - make -f Makefile hbios_rom.bin hbios_app.bin hbios_img.bin + make hbios_rom.bin hbios_app.bin hbios_img.bin fi -cat ccp.bin bdos.bin $CBIOS >cpm.bin -cat zcpr.bin zsdos.bin $CBIOS >zsys.bin - -cat prefix.bin cpm.bin >cpm.sys -cat prefix.bin zsys.bin >zsys.sys +echo "Building $romname output files..." -cat romldr.bin eastaegg.bin dbgmon.bin cpm.bin zsys.bin >osimg.bin -cat camel80.bin nascom.bin tastybasic.bin imgpad0.bin >osimg1.bin +cat romldr.bin eastaegg.bin dbgmon.bin ../CPM22/cpm_$BIOS.bin ../ZSDOS/zsys_$BIOS.bin >osimg.bin +cat camel80.bin nascom.bin tastybasic.bin game.bin imgpad0.bin usrrom.bin >osimg1.bin echo "Building ${romsize}KB $romname ROM disk data file..." + cp $blankfile $romdiskfile -$CPMCP -f $romfmt $romdiskfile ../RomDsk/ROM_${romsize}KB/*.* 0: -if [ $(find ../RomDsk/$platform -type f -print 2>/dev/null | wc -l) -gt 0 ] ; then - $CPMCP -f $romfmt $romdiskfile ../RomDsk/$platform/*.* 0: -fi +echo placing files into $romdiskfile -for i in ${apps[@]} ; do - $CPMCP -f $romfmt $romdiskfile ../../Binary/Apps/$i.com 0: +for file in $(ls -1 ../RomDsk/ROM_${romsize}KB/* | sort -V) ; do + echo " " $file + $CPMCP -f $romfmt $romdiskfile $file 0: done -for i in *.sys ; do - $CPMCP -f $romfmt $romdiskfile $i 0: +if [ -d ../RomDsk/$platform ] ; then + for file in ../RomDsk/$platform/* ; do + echo " " $file + $CPMCP -f $romfmt $romdiskfile $file 0: + done +fi + +echo "adding apps to $romdiskfile" +for i in assign fdu format mode osldr rtc survey syscopy sysgen talk timer xm inttest ; do + f=$(../../Tools/unix/casefn.sh ../../Binary/Apps/$i.com) + if [ "$f" = "nofile" ] ; then + echo " " $i "not found" + else + echo " " $f + $CPMCP -f $romfmt $romdiskfile $f 0: + fi done -if [ $platform != UNA ] ; then +echo "copying systems to $romdiskfile" +$CPMCP -f $romfmt $romdiskfile ../CPM22/cpm_$BIOS.sys 0:cpm.sys +$CPMCP -f $romfmt $romdiskfile ../ZSDOS/zsys_$BIOS.sys 0:zsys.sys + +if [ $platform = UNA ] ; then cp osimg.bin $outdir/UNA_WBW_SYS.bin cp $romdiskfile $outdir/UNA_WBW_ROM$romsize.bin cat ../UBIOS/UNA-BIOS.BIN osimg.bin ../UBIOS/FSFAT.BIN $romdiskfile >$romname.rom diff --git a/Source/HBIOS/Makefile b/Source/HBIOS/Makefile index 1e7879d0..e8be95bc 100644 --- a/Source/HBIOS/Makefile +++ b/Source/HBIOS/Makefile @@ -1,6 +1,12 @@ +VERBOSEDIFF=2 OBJECTS = ZETA2_std.rom +MOREDIFF = camel80.bin game.bin hbios_rom.bin nascom.bin prefix.bin usrrom.bin \ + dbgmon.bin hbios_app.bin imgpad0.bin osimg1.bin romldr.bin \ + eastaegg.bin hbios_img.bin imgpad.bin osimg.bin tastybasic.bin \ + game.bin usrrom.bin + SUBDIRS = -DEST = ../../Binary/Apps +DEST = ../../Binary TOOLS =../../Tools OTHERS = *.bin *.z80 cpm.sys zsys.sys Build.inc include $(TOOLS)/Makefile.inc