Browse Source

towards a clean make and 'git status'

pull/80/head
curt mayer 6 years ago
parent
commit
f44288082c
  1. 1
      Binary/.gitignore
  2. 1
      Makefile
  3. 4
      Source/Apps/.gitignore
  4. 2
      Source/BL/.gitignore
  5. 5
      Source/BPBIOS/.gitignore
  6. 2
      Source/CBIOS/.gitignore
  7. 3
      Source/CPM22/.gitignore
  8. 10
      Source/CPM3/.gitignore
  9. 2
      Source/Forth/.gitignore
  10. 8
      Source/HBIOS/.gitignore
  11. 122
      Source/HBIOS/Build.sh
  12. 9
      Source/Images/Makefile
  13. 7
      Source/Makefile
  14. 2
      Source/Prop/Spin/.gitignore
  15. 2
      Source/ZCPR-DJ/.gitignore
  16. 3
      Source/ZCPR/.gitignore
  17. 14
      Source/ZPM3/.gitignore
  18. 8
      Source/ZPM3/Makefile
  19. BIN
      Source/ZPM3/autotog.com
  20. 10
      Source/ZPM3/autotog.z80
  21. BIN
      Source/ZPM3/clrhist.com
  22. BIN
      Source/ZPM3/setz3.com
  23. 4
      Source/ZSDOS/.gitignore
  24. 8
      Tools/unix/cpmtools/.gitignore
  25. 2
      Tools/unix/uz80as/.gitignore
  26. 3
      Tools/unix/zx/.gitignore

1
Binary/.gitignore

@ -0,0 +1 @@
*.bin

1
Makefile

@ -1,6 +1,7 @@
all: all:
cd Tools/unix ; make install cd Tools/unix ; make install
cd Source ; make all cd Source ; make all
cd Source/Images ; make al
clean: clean:
cd Tools/unix ; make clean cd Tools/unix ; make clean

4
Source/Apps/.gitignore

@ -0,0 +1,4 @@
*.COM
*.lst
*.hex
*.com

2
Source/BL/.gitignore

@ -0,0 +1,2 @@
*.bin
*.lst

5
Source/BPBIOS/.gitignore

@ -0,0 +1,5 @@
*.prn
*.rel
*.img
bpsys.dat
def-ww.lib

2
Source/CBIOS/.gitignore

@ -0,0 +1,2 @@
*.bin
*.lst

3
Source/CPM22/.gitignore

@ -0,0 +1,3 @@
*.bin
*.hex
*.lst

10
Source/CPM3/.gitignore

@ -0,0 +1,10 @@
*.sym
*.lst
*.sys
*.rel
cpmldr.com
gencpm.dat
bios3.spr
bnkbios3.spr
options.lib
zpmbios3.spr

2
Source/Forth/.gitignore

@ -0,0 +1,2 @@
*.bin
*.sym

8
Source/HBIOS/.gitignore

@ -0,0 +1,8 @@
*.bin
*.lst
*.rom
*.dat
*.tmp
build.inc
cpm.sys
zsys.sys

122
Source/HBIOS/Build.sh

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

9
Source/Images/Makefile

@ -63,14 +63,15 @@ HDSIZE=$(shell expr 128 '*' 65)
for u in $$(seq 0 15) ; do \ for u in $$(seq 0 15) ; do \
dir=d_$$d/u$$u ; \ dir=d_$$d/u$$u ; \
if [ -d $$dir ] ; then \ 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 ; \ fi ; \
done ; \ done ; \
if [ -f d_$$d.txt ] ; then \ if [ -f d_$$d.txt ] ; then \
grep -v ^# d_$$d.txt | while read file user ; do \ 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 ; \ done ; \
fi ; \ fi ; \
if [ "$$sys" ] ; then \ if [ "$$sys" ] ; then \

7
Source/Makefile

@ -5,8 +5,13 @@ SUBDIRS += ZPM3
SUBDIRS += Forth SUBDIRS += Forth
NOTDONE += Fonts NOTDONE += Fonts
SUBDIRS += BL SUBDIRS += BL
SUBDIRS += Images
SUBDIRS += BPBIOS SUBDIRS += BPBIOS
SUBDIRS += HBIOS SUBDIRS += HBIOS
TOOLS = ../Tools TOOLS = ../Tools
include $(TOOLS)/Makefile.inc include $(TOOLS)/Makefile.inc
install:: SUBDIRS += Images
clean:: SUBDIRS += Images
clobber:: SUBDIRS += Images

2
Source/Prop/Spin/.gitignore

@ -0,0 +1,2 @@
*.list
*.eeprom

2
Source/ZCPR-DJ/.gitignore

@ -0,0 +1,2 @@
*.rel
*.bin

3
Source/ZCPR/.gitignore

@ -0,0 +1,3 @@
*.bin
*.hex
*.com

14
Source/ZPM3/.gitignore

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

8
Source/ZPM3/Makefile

@ -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 OTHERS = biosldr.rel gencpm.com gencpm.dat bnkbios3.spr
TOOLS =../../Tools TOOLS =../../Tools
RELPATH = Source/ZPM3 RELPATH = Source/ZPM3
@ -32,3 +33,8 @@ zinstal.zpm: ../ZCCP/zinstal.zpm
startzpm.com: ../ZCCP/startzpm.com startzpm.com: ../ZCCP/startzpm.com
cp $< $@ cp $< $@
setz3.com: setz3.z80
clrhist.com: clrhist.z80
autotog.com: autotog.z80

BIN
Source/ZPM3/autotog.com

Binary file not shown.

10
Source/ZPM3/autotog.z80

@ -45,13 +45,13 @@ ACPoff equ 85h ; Offset in SCB base page of Auto Command Prompting bit
HELPmsg: HELPmsg:
db ' SYNTAX:' db ' SYNTAX:'
db 10,13 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 10,13
db ' AUTOTOG ON Enables Auto Command Prompting'
db ' AUTOTOG ON',9,'Enables Auto Command Prompting'
db 10,13 db 10,13
db ' AUTOTOG OFF Disables Auto Command Prompting'
db ' AUTOTOG OFF',9,'Disables Auto Command Prompting'
db 10,13 db 10,13
db ' AUTOTOG // Displays a brief help message'
db ' AUTOTOG //',9,'Displays a brief help message'
db '$' db '$'
ONmsg: ONmsg:
db 'ZPM3 Auto Command Prompting is now enabled. Toggle with ^Q.' 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 03bh
db 0 ; Get operation db 0 ; Get operation



BIN
Source/ZPM3/clrhist.com

Binary file not shown.

BIN
Source/ZPM3/setz3.com

Binary file not shown.

4
Source/ZSDOS/.gitignore

@ -0,0 +1,4 @@
*.bin
*.rel
*.prn
*.sym

8
Tools/unix/cpmtools/.gitignore

@ -0,0 +1,8 @@
cpmchattr
cpmchmod
cpmcp
cpmls
cpmrm
fsck.cpm
mkfs.cpm
*.o

2
Tools/unix/uz80as/.gitignore

@ -0,0 +1,2 @@
*.o
uz80as

3
Tools/unix/zx/.gitignore

@ -0,0 +1,3 @@
*.o
zx
config.h
Loading…
Cancel
Save