mirror of
https://github.com/wwarthen/RomWBW.git
synced 2026-02-06 14:11:48 -06:00
towards a clean make and 'git status'
This commit is contained in:
4
Source/Apps/.gitignore
vendored
Normal file
4
Source/Apps/.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
*.COM
|
||||
*.lst
|
||||
*.hex
|
||||
*.com
|
||||
2
Source/BL/.gitignore
vendored
Normal file
2
Source/BL/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
*.bin
|
||||
*.lst
|
||||
5
Source/BPBIOS/.gitignore
vendored
Normal file
5
Source/BPBIOS/.gitignore
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
*.prn
|
||||
*.rel
|
||||
*.img
|
||||
bpsys.dat
|
||||
def-ww.lib
|
||||
2
Source/CBIOS/.gitignore
vendored
Normal file
2
Source/CBIOS/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
*.bin
|
||||
*.lst
|
||||
3
Source/CPM22/.gitignore
vendored
Normal file
3
Source/CPM22/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
*.bin
|
||||
*.hex
|
||||
*.lst
|
||||
10
Source/CPM3/.gitignore
vendored
Normal file
10
Source/CPM3/.gitignore
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
*.sym
|
||||
*.lst
|
||||
*.sys
|
||||
*.rel
|
||||
cpmldr.com
|
||||
gencpm.dat
|
||||
bios3.spr
|
||||
bnkbios3.spr
|
||||
options.lib
|
||||
zpmbios3.spr
|
||||
2
Source/Forth/.gitignore
vendored
Normal file
2
Source/Forth/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
*.bin
|
||||
*.sym
|
||||
8
Source/HBIOS/.gitignore
vendored
Normal file
8
Source/HBIOS/.gitignore
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
*.bin
|
||||
*.lst
|
||||
*.rom
|
||||
*.dat
|
||||
*.tmp
|
||||
build.inc
|
||||
cpm.sys
|
||||
zsys.sys
|
||||
122
Source/HBIOS/Build.sh
Executable file
122
Source/HBIOS/Build.sh
Executable file
@@ -0,0 +1,122 @@
|
||||
#!/bin/bash
|
||||
|
||||
CPMCP=../../Tools/`uname`/cpmcp
|
||||
|
||||
# positional arguments
|
||||
platform=$1
|
||||
config=$2
|
||||
romsize=$3
|
||||
romname=$4
|
||||
|
||||
# prompt if no match
|
||||
platforms=($(find Config -name \*.asm -print | \
|
||||
sed -e 's,Config/,,' -e 's/_.*$//' | sort -u))
|
||||
|
||||
while ! echo ${platforms[@]} | grep -q -w -s "$platform" ; do
|
||||
echo -n "Enter platform [" ${platforms[@]} "] :"
|
||||
read platform
|
||||
done
|
||||
|
||||
configs=$(find Config -name ${platform}_\* -print | \
|
||||
sed -e 's,Config/,,' -e "s/${platform}_//" -e "s/.asm//")
|
||||
while ! echo ${configs[@]} | grep -s -w -q "$config" ; do
|
||||
echo -n "Enter config for $platform [" ${configs[@]} "] :"
|
||||
read config
|
||||
done
|
||||
configfile=Config/${platform}_${config}.asm
|
||||
|
||||
while [ ! '(' "$romsize" = 1024 -o "$romsize" = 512 ')' ] ; do
|
||||
echo -n "Romsize :"
|
||||
read romsize
|
||||
done
|
||||
|
||||
if [ -z "$romname" ] ; then
|
||||
romname=${platform}_${config}
|
||||
fi
|
||||
echo Building for $romname for $platform $config $romsize
|
||||
|
||||
if [ $platform == UNA ] ; then
|
||||
CBIOS=../CBIOS/cbios_una.bin
|
||||
else
|
||||
CBIOS=../CBIOS/cbios_wbw.bin
|
||||
fi
|
||||
|
||||
Apps=(assign fdu format mode osldr rtc survey syscopy sysgen talk timer xm inttest)
|
||||
timestamp=$(date +%Y-%m-%d)
|
||||
|
||||
blankfile=Blank${romsize}.dat
|
||||
romdiskfile=RomDisk.tmp
|
||||
romfmt=wbw_rom${romsize}
|
||||
outdir=../../Binary
|
||||
|
||||
echo "creating empty rom disk of size $romsize in $blankfile"
|
||||
LANG=en_US.US-ASCII tr '\000' '\345' </dev/zero | dd of=$blankfile bs=1024 count=`expr $romsize - 128`
|
||||
|
||||
# # Initialize working variables
|
||||
# $OutDir = "../../Binary" # Output directory for final image file
|
||||
# $RomFmt = "wbw_rom${RomSize}" # Location of files to imbed in ROM disk
|
||||
# $BlankROM = "Blank${RomSize}KB.dat" # An initial "empty" image for the ROM disk of propoer size
|
||||
# $RomDiskFile = "RomDisk.tmp" # Temporary filename used to create ROM disk image
|
||||
# $RomFile = "${OutDir}/${RomName}.rom" # Final name of ROM image
|
||||
# $ComFile = "${OutDir}/${RomName}.com" # Final name of COM image (command line loadable HBIOS/CBIOS)
|
||||
# $ImgFile = "${OutDir}/${RomName}.img" # Final name of IMG image (memory loadable HBIOS/CBIOS image)
|
||||
|
||||
cat <<- EOF > build.inc
|
||||
; RomWBW Configured for $platform $config $timestamp
|
||||
;
|
||||
#DEFINE TIMESTAMP "$timestamp"
|
||||
;
|
||||
ROMSIZE .EQU $romsize
|
||||
;
|
||||
#INCLUDE "$configfile"
|
||||
;
|
||||
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
|
||||
|
||||
make -f Makefile dbgmon.bin prefix.bin romldr.bin eastaegg.bin nascom.bin \
|
||||
tastybasic.bin imgpad.bin imgpad0.bin
|
||||
if [ $platform != UNA ] ; then
|
||||
make -f Makefile 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
|
||||
|
||||
cat romldr.bin eastaegg.bin dbgmon.bin cpm.bin zsys.bin >osimg.bin
|
||||
cat camel80.bin nascom.bin tastybasic.bin imgpad0.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
|
||||
|
||||
for i in ${apps[@]} ; do
|
||||
$CPMCP -f $romfmt $romdiskfile ../../Binary/Apps/$i.com 0:
|
||||
done
|
||||
|
||||
for i in *.sys ; do
|
||||
$CPMCP -f $romfmt $romdiskfile $i 0:
|
||||
done
|
||||
|
||||
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
|
||||
else
|
||||
cat hbios_rom.bin osimg.bin osimg1.bin osimg.bin $romdiskfile >$romname.rom
|
||||
cat hbios_app.bin osimg.bin > $romname.com
|
||||
cat hbios_img.bin osimg.bin > $romname.img
|
||||
fi
|
||||
|
||||
#rm $romdiskfile
|
||||
@@ -63,14 +63,15 @@ HDSIZE=$(shell expr 128 '*' 65)
|
||||
for u in $$(seq 0 15) ; do \
|
||||
dir=d_$$d/u$$u ; \
|
||||
if [ -d $$dir ] ; then \
|
||||
echo $(CPMCP) -f $$fmt $@ $$dir/*.* $$u: ; \
|
||||
$(CPMCP) -f $$fmt $@ $$dir/*.* $$u: ; \
|
||||
echo $(CPMCP) -f $$fmt $@ $$($(CASEFN) $$dir/*.*) $$u: ; \
|
||||
$(CPMCP) -f $$fmt $@ $$($(CASEFN) $$dir/*.*) $$u: ; \
|
||||
fi ; \
|
||||
done ; \
|
||||
if [ -f d_$$d.txt ] ; then \
|
||||
grep -v ^# d_$$d.txt | while read file user ; do \
|
||||
echo $(CPMCP) -f $$fmt $@ $$file $$user ; \
|
||||
$(CPMCP) -f $$fmt $@ $$file $$user ; \
|
||||
echo $$file $$user ; \
|
||||
echo $(CPMCP) -f $$fmt $@ $$($(CASEFN) $$file) $$user ; \
|
||||
$(CPMCP) -f $$fmt $@ $$($(CASEFN) $$file) $$user ; \
|
||||
done ; \
|
||||
fi ; \
|
||||
if [ "$$sys" ] ; then \
|
||||
|
||||
@@ -5,8 +5,13 @@ SUBDIRS += ZPM3
|
||||
SUBDIRS += Forth
|
||||
NOTDONE += Fonts
|
||||
SUBDIRS += BL
|
||||
SUBDIRS += Images
|
||||
SUBDIRS += BPBIOS
|
||||
SUBDIRS += HBIOS
|
||||
TOOLS = ../Tools
|
||||
include $(TOOLS)/Makefile.inc
|
||||
|
||||
install:: SUBDIRS += Images
|
||||
|
||||
clean:: SUBDIRS += Images
|
||||
|
||||
clobber:: SUBDIRS += Images
|
||||
|
||||
2
Source/Prop/Spin/.gitignore
vendored
Normal file
2
Source/Prop/Spin/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
*.list
|
||||
*.eeprom
|
||||
2
Source/ZCPR-DJ/.gitignore
vendored
Normal file
2
Source/ZCPR-DJ/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
*.rel
|
||||
*.bin
|
||||
3
Source/ZCPR/.gitignore
vendored
Normal file
3
Source/ZCPR/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
*.bin
|
||||
*.hex
|
||||
*.com
|
||||
14
Source/ZPM3/.gitignore
vendored
Normal file
14
Source/ZPM3/.gitignore
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
*.lst
|
||||
*.sym
|
||||
biosldr.rel
|
||||
bnkbios3.spr
|
||||
cpm3.sys
|
||||
gencpm.com
|
||||
gencpm.dat
|
||||
startzpm.com
|
||||
zccp.com
|
||||
zinstal.zpm
|
||||
zpmldr.com
|
||||
setz3.com
|
||||
clrhist.com
|
||||
autotog.com
|
||||
@@ -1,4 +1,5 @@
|
||||
OBJECTS = ZPMLDR.COM cpm3.sys zinstal.zpm startzpm.com zccp.com
|
||||
OBJECTS = ZPMLDR.COM cpm3.sys zinstal.zpm startzpm.com zccp.com \
|
||||
setz3.com clrhist.com autotog.com
|
||||
OTHERS = biosldr.rel gencpm.com gencpm.dat bnkbios3.spr
|
||||
TOOLS =../../Tools
|
||||
RELPATH = Source/ZPM3
|
||||
@@ -32,3 +33,8 @@ zinstal.zpm: ../ZCCP/zinstal.zpm
|
||||
startzpm.com: ../ZCCP/startzpm.com
|
||||
cp $< $@
|
||||
|
||||
setz3.com: setz3.z80
|
||||
|
||||
clrhist.com: clrhist.z80
|
||||
|
||||
autotog.com: autotog.z80
|
||||
|
||||
Binary file not shown.
@@ -45,13 +45,13 @@ ACPoff equ 85h ; Offset in SCB base page of Auto Command Prompting bit
|
||||
HELPmsg:
|
||||
db ' SYNTAX:'
|
||||
db 10,13
|
||||
db ' AUTOTOG Toggles the state of the Auto Command Prompting'
|
||||
db ' AUTOTOG',9,'Toggles the state of the Auto Command Prompting'
|
||||
db 10,13
|
||||
db ' AUTOTOG ON Enables Auto Command Prompting'
|
||||
db ' AUTOTOG ON',9,'Enables Auto Command Prompting'
|
||||
db 10,13
|
||||
db ' AUTOTOG OFF Disables Auto Command Prompting'
|
||||
db ' AUTOTOG OFF',9,'Disables Auto Command Prompting'
|
||||
db 10,13
|
||||
db ' AUTOTOG // Displays a brief help message'
|
||||
db ' AUTOTOG //',9,'Displays a brief help message'
|
||||
db '$'
|
||||
ONmsg:
|
||||
db 'ZPM3 Auto Command Prompting is now enabled. Toggle with ^Q.'
|
||||
@@ -128,4 +128,4 @@ ACPaddr: ; Save the address of the ACP bit here too.
|
||||
db 03bh
|
||||
db 0 ; Get operation
|
||||
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
4
Source/ZSDOS/.gitignore
vendored
Normal file
4
Source/ZSDOS/.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
*.bin
|
||||
*.rel
|
||||
*.prn
|
||||
*.sym
|
||||
Reference in New Issue
Block a user