Browse Source

Convert BPBIOS to hd1k Hard Disk Format

pull/378/head
Wayne Warthen 2 years ago
parent
commit
1d3438fb29
  1. 3
      Source/BPBIOS/Build.cmd
  2. 35
      Source/BPBIOS/Makefile
  3. 17
      Source/BPBIOS/ZCPR33/Makefile
  4. 148
      Source/BPBIOS/dpbhd-ww.lib
  5. 2
      Source/Build.cmd
  6. 7
      Source/Images/Build.cmd
  7. 2
      Source/Images/Makefile
  8. 2
      Source/Makefile

3
Source/BPBIOS/Build.cmd

@ -48,7 +48,8 @@ if exist bp%VER%.prn del bp%VER%.prn || exit /b
ren bpbio-ww.prn bp%VER%.prn || exit /b ren bpbio-ww.prn bp%VER%.prn || exit /b
if exist bp%VER%.err del bp%VER%.err || exit /b if exist bp%VER%.err del bp%VER%.err || exit /b
ren bpbio-ww.err bp%VER%.err || exit /b ren bpbio-ww.err bp%VER%.err || exit /b
copy bpbio-ww.rel bp%VER%.rel || exit /b
if exist bp%VER%.rel del bp%VER%.rel || exit /b
ren bpbio-ww.rel bp%VER%.rel || exit /b
rem pause rem pause

35
Source/BPBIOS/Makefile

@ -1,44 +1,37 @@
VERSIONS = \ VERSIONS = \
33t 33tbnk \
33n 33nbnk \
34t 34tbnk \
34n 34nbnk \
41tbnk 41nbnk
33 33bnk \
33 33bnk \
34 34bnk \
34 34bnk \
41bnk
HD0IMG = ../../Binary/hd_bp.img
IMGFILES = $(foreach ver,$(VERSIONS),bp$(ver).img) IMGFILES = $(foreach ver,$(VERSIONS),bp$(ver).img)
DISTFILES = *.zex *.rel myterm.z3t DISTFILES = *.zex *.rel myterm.z3t
OTHERS = zcpr33n.rel zcpr33t.rel \
bpbio-ww.rel bpsys.dat bpsys.bak bpbio-ww.err def-ww.lib *.img
OTHERS = zcpr33.rel bp*.prn bp*.rel \
bpbio-ww.rel bpsys.dat bpsys.bak bpbio-ww.err def-ww.lib bp*.img
TOOLS = ../../Tools TOOLS = ../../Tools
SUBDIRS = ZCPR33 SUBDIRS = ZCPR33
include $(TOOLS)/Makefile.inc include $(TOOLS)/Makefile.inc
$(HD0IMG): $(IMGFILES)
if [ -f $(HD0IMG) ] ; then \
for f in $(IMGFILES) $(DISTFILES) ; do \
$(BINDIR)/cpmrm -f wbw_hd0 $(HD0IMG) 0:$$f ; \
done ; \
$(CPMCP) -f wbw_hd0 $(HD0IMG) $(IMGFILES) $(DISTFILES) 0: ; \
fi
zcpr33n.rel zcpr33t.rel:
zcpr33.rel:
(cd ZCPR33 ; make) (cd ZCPR33 ; make)
all:: $(HD0IMG)
all:: $(IMGFILES)
clean::
@rm -f $(HD0IMG)
# clean::
# $(MAKE) --directory ZCPR3 clean
%.img: zcpr33n.rel zcpr33t.rel
%.img: zcpr33.rel
$(eval VER := $(subst .img,,$(subst bp,,$@))) $(eval VER := $(subst .img,,$(subst bp,,$@)))
cp def-ww-z$(VER).lib def-ww.lib cp def-ww-z$(VER).lib def-ww.lib
rm -f bpbio-ww.rel rm -f bpbio-ww.rel
$(ZXCC) ZMAC -BPBIO-WW -/P $(ZXCC) ZMAC -BPBIO-WW -/P
mv bpbio-ww.prn bp$(VER).prn mv bpbio-ww.prn bp$(VER).prn
if [ -f bpbio-ww.err ] ; then mv bpbio-ww.err bp$(VER).err; fi
mv bpbio-ww.rel bp$(VER).rel
cp bp$(VER).dat bpsys.dat cp bp$(VER).dat bpsys.dat
$(ZXCC) ./bpbuild.com -bpsys.dat 0 < bpbld1.rsp $(ZXCC) ./bpbuild.com -bpsys.dat 0 < bpbld1.rsp
cp bpsys.img bpsys.dat cp bpsys.img bpsys.dat

17
Source/BPBIOS/ZCPR33/Makefile

@ -1,5 +1,5 @@
OBJECTS = zcpr33n.rel zcpr33t.rel
OTHERS = z3basen.lib z3baset.lib
OBJECTS = zcpr33.rel
OTHERS = z3base.lib *.prn *.rel
TOOLS = ../../../Tools TOOLS = ../../../Tools
DEST = .. DEST = ..
@ -7,12 +7,7 @@ include $(TOOLS)/Makefile.inc
DIFFPATH = $(DIFFTO)/Source/BPBIOS DIFFPATH = $(DIFFTO)/Source/BPBIOS
zcpr33t.rel: ../z3baset.lib
cp ../z3baset.lib z3baset.lib
$(ZXCC) ZMAC -zcpr33t.z80 -/P
rm z3baset.lib
zcpr33n.rel: ../z3basen.lib
cp ../z3basen.lib z3basen.lib
$(ZXCC) ZMAC -zcpr33n.z80 -/P
rm z3basen.lib
zcpr33.rel: ../z3base.lib
cp ../z3base.lib z3base.lib
$(ZXCC) ZMAC -zcpr33.z80 -/P
rm z3base.lib

148
Source/BPBIOS/dpbhd-ww.lib

@ -46,7 +46,7 @@
; NOTE: No Skew Table needed since Hard Disk Format is locked w/No Skew ; NOTE: No Skew Table needed since Hard Disk Format is locked w/No Skew
;..... ;.....
; Currently, BPBIOS supports 2 memory drive devices and 3 phyical hard
; Currently, BPBIOS supports 2 memory drive devices and 3 physical hard
; drive like devices. BPBIOS can support seven but unfortunately ; drive like devices. BPBIOS can support seven but unfortunately
; BPCNFG only supports 3 hard drive like devices and the source ; BPCNFG only supports 3 hard drive like devices and the source
; code is not available, so menu 4 is meaningless. Devices ; code is not available, so menu 4 is meaningless. Devices
@ -64,26 +64,22 @@
; ;
; Starting with ver 2.8 of HBIOS, devices are discovered at boot ; Starting with ver 2.8 of HBIOS, devices are discovered at boot
; time and assigned device numbers. Since devices are tested in ; time and assigned device numbers. Since devices are tested in
; a certain order, the device numbers are somewhat predicably
; a certain order, the device numbers are somewhat predictably
; assigned. Memory drives are discovered first. IDE drives are ; assigned. Memory drives are discovered first. IDE drives are
; discovered next so that IDE Hard drives including CF cards are ; discovered next so that IDE Hard drives including CF cards are
; assigned device 2 and device 3 if a slave drive is supported by ; assigned device 2 and device 3 if a slave drive is supported by
; the interface. Next comes the SD drive and is assigned device 3 ; the interface. Next comes the SD drive and is assigned device 3
; or 4 depending on the whether there is an ide slave drive. ; or 4 depending on the whether there is an ide slave drive.
; USB drive is assigned device 4 or 5 . For SIMH HDSK0 is device 0
; USB drive is assigned device 4 or 5. For SIMH HDSK0 is device 0
; and HDSK1 is device 1. Memory drives are now handled as LBA ; and HDSK1 is device 1. Memory drives are now handled as LBA
; devices, ie like hard drives. ; devices, ie like hard drives.
; ;
; The following non-memory drive capacities and configurations used for ; The following non-memory drive capacities and configurations used for
; the SIMH, SD and IDE drives: Slice geometry is 256, 512 byte sectors,
; 1 head per track and 1 with one reserved track, a block size of 4096
; bytes with 512 directory entries. An equivalent geometry is 16
; sectors and 16 heads per track. Internally BPBIOS uses a uniform
; logical organization with 64 logical records per logical track.
; Thus there are 16 logical tracks per physical track with 1040
; logical (65 physical) tracks per slice. If all partitions are not
; physically present, the missing partitions can be disabled in the
; BPBCNFG configuration file or by hand. Note that HBIOS uses LBA,
; the SIMH, SD and IDE drives: Track geometry is 16 512 byte sectors.
; A slice is exactly 64 tracks, with 1 of the 64 tracks as a system
; track. There are 1024 directory entries per slice. If all partitions
; are not physically present, the missing partitions can be disabled in
; the BPBCNFG configuration file or by hand. Note that HBIOS uses LBA,
; Logical Block Addressing, for non-floppy drives. ; Logical Block Addressing, for non-floppy drives.
; ;
; For SBC V1,2, ZETA, MARK IV and N8, the following non-memory partitions ; For SBC V1,2, ZETA, MARK IV and N8, the following non-memory partitions
@ -94,26 +90,26 @@
; partition Size Blocks Block Offset in ; partition Size Blocks Block Offset in
; MByte Size logical tracks ; MByte Size logical tracks
;==================================================================== ;====================================================================
; C 8 2048 4096 1*16 = 16
; D 8 2048 4096 (1+65)*16 = 1056
; E 8 2048 4096 (1+2*65)*16 = 2096
; F 8 2048 4096 (1+3*65)*16 = 3136
; G 8 2048 4096 (1+4*65)*16 = 4176
; H 8 2048 4096 (1+5*65)*16 = 5216
; I 8 2048 4096 (1+6*65)*16 = 6256
; J 8 2048 4096 (1+7*65)*16 = 7296
; C 8 2044 4096 128+(1024*0)+2 = 130
; D 8 2044 4096 128+(1024*1)+2 = 1154
; E 8 2044 4096 128+(1024*2)+2 = 2178
; F 8 2044 4096 128+(1024*3)+2 = 3202
; G 8 2044 4096 128+(1024*4)+2 = 4226
; H 8 2044 4096 128+(1024*5)+2 = 5250
; I 8 2044 4096 128+(1024*6)+2 = 6274
; J 8 2044 4096 128+(1024*7)+2 = 7298
; ;
; These are capacities and configurations used for SD card: ; These are capacities and configurations used for SD card:
; ;
; partition Size Blocks Block Offset ; partition Size Blocks Block Offset
; MByte Size logical tracks ; MByte Size logical tracks
;==================================================================== ;====================================================================
; K 8 2048 4096 1*16 = 16
; L 8 2048 4096 (1+65)*16 = 1056
; M 8 2048 4096 (1+2*65)*16 = 2096
; N 8 2048 4096 (1+3*65)*16 = 3136
; K 8 2044 4096 128+(1024*0)+2 = 130
; L 8 2044 4096 128+(1024*1)+2 = 1154
; M 8 2044 4096 128+(1024*2)+2 = 2178
; N 8 2044 4096 128+(1024*3)+2 = 3202
; ;
; RAM drive is paritition A while ROM drive is partition B.
; RAM drive is partition A while ROM drive is partition B.
; ;
; For example, a typical Memory drive configuration is: ; For example, a typical Memory drive configuration is:
; ;
@ -199,17 +195,17 @@ DPBROM: DEFW 64 ; Sectors/Track
; even though real layout is 256 physical ; even though real layout is 256 physical
; sectors per track ; sectors per track
DEFB 0 ; Physical tracks/side (No Meaning in HD) DEFB 0 ; Physical tracks/side (No Meaning in HD)
HSIZ0 EQU 2048 ; # of blocks in first Partition (1024 trks)
HSIZ0 EQU 2048 - 4 ; # of blocks in first Partition (1022 trks)
; ;
DPB50: DEFW 64 ; Sctrs/Trk DPB50: DEFW 64 ; Sctrs/Trk
DEFB 5 ; Blk Shf Fctr DEFB 5 ; Blk Shf Fctr
DEFB 31 ; Block Mask DEFB 31 ; Block Mask
DEFB 1 ; Extent Mask DEFB 1 ; Extent Mask
DEFW HSIZ0-1 ; Disk Size-1 DEFW HSIZ0-1 ; Disk Size-1
DEFW 511 ; Dir Max-1 - 4 blocks
DEFB 0F0H,0 ; Alloc 0,1 - 4 blocks
DEFW 1024-1 ; Dir Max-1
DEFB 0FFH,0 ; Alloc 0,1
DEFW 0 ; Check Size DEFW 0 ; Check Size
DEFW 16 ; Trk Offset
DEFW 128+(1024*0)+2 ; Trk Offset
ENDIF ENDIF
; ;
;..... ;.....
@ -226,17 +222,17 @@ DPB50: DEFW 64 ; Sctrs/Trk
; sectors per track ; sectors per track
DEFB 0 ; Physical tracks/side (No Meaning in HD) DEFB 0 ; Physical tracks/side (No Meaning in HD)
HSIZ1 EQU 2048 ; # of blocks in Second Partition (1024 trks)
HSIZ1 EQU 2048 - 4 ; # of blocks in Second Partition (1022 trks)
; ;
DPB51: DEFW 64 ; Scts/Trk DPB51: DEFW 64 ; Scts/Trk
DEFB 5 ; Blk Shf Fctr DEFB 5 ; Blk Shf Fctr
DEFB 31 ; Block Mask DEFB 31 ; Block Mask
DEFB 1 ; Extent Mask DEFB 1 ; Extent Mask
DEFW HSIZ1-1 ; Disk Size-1 DEFW HSIZ1-1 ; Disk Size-1
DEFW 511 ; Dir Max-1 4 blocks
DEFB 0F0H,0 ; Alloc 0,1
DEFW 1024-1 ; Dir Max-1
DEFB 0FFH,0 ; Alloc 0,1
DEFW 0 ; Check size DEFW 0 ; Check size
DEFW (1+65)*16 ; Track offset 1056
DEFW 128+(1024*1)+2 ; Trk Offset
ENDIF ENDIF
; ;
;..... ;.....
@ -253,21 +249,21 @@ DPB51: DEFW 64 ; Scts/Trk
; sectors per track ; sectors per track
DEFB 0 ; Physical tracks/side (No Meaning in HD) DEFB 0 ; Physical tracks/side (No Meaning in HD)
HSIZ2 EQU 2048 ; # of blocks in third Partition (1024 tracks)
HSIZ2 EQU 2048 - 4 ; # of blocks in Second Partition (1022 trks)
; ;
DPB52: DEFW 64 ; Scts/Trk DPB52: DEFW 64 ; Scts/Trk
DEFB 5 ; Blk Shf Fctr DEFB 5 ; Blk Shf Fctr
DEFB 31 ; Block Mask DEFB 31 ; Block Mask
DEFB 1 ; Extent Mask DEFB 1 ; Extent Mask
DEFW HSIZ2-1 ; Disk Size-1 DEFW HSIZ2-1 ; Disk Size-1
DEFW 511 ; Dir Max-1 4 blocks
DEFB 0F0H,0 ; Alloc 0,1
DEFW 1024-1 ; Dir Max-1
DEFB 0FFH,0 ; Alloc 0,1
DEFW 0 ; Check size DEFW 0 ; Check size
DEFW (1+2*65)*16 ; Track offset = 2096
DEFW 128+(1024*2)+2 ; Trk Offset
ENDIF ENDIF
; ;
;..... ;.....
; Partition F. HBIOS Disk 0, Slice 4
; Partition F. HBIOS Disk 0, Slice 3
IF DRV_F IF DRV_F
DEFB 'HBDSK0:3 ','F'+80H ; Id - 10 bytes DEFB 'HBDSK0:3 ','F'+80H ; Id - 10 bytes
@ -280,17 +276,17 @@ DPB52: DEFW 64 ; Scts/Trk
; sectors per track ; sectors per track
DEFB 0 ; Physical tracks/side (No Meaning in HD) DEFB 0 ; Physical tracks/side (No Meaning in HD)
HSIZ3 EQU 2048 ; # of blocks in Fourth Partition (1024 tracks)
HSIZ3 EQU 2048 - 4 ; # of blocks in Second Partition (1022 trks)
; ;
DPB53: DEFW 64 ; Scts/Trk DPB53: DEFW 64 ; Scts/Trk
DEFB 5 ; Blk Shf Fctr DEFB 5 ; Blk Shf Fctr
DEFB 31 ; Block Mask DEFB 31 ; Block Mask
DEFB 1 ; Extent Mask DEFB 1 ; Extent Mask
DEFW HSIZ3-1 ; Disk Size-1 DEFW HSIZ3-1 ; Disk Size-1
DEFW 511 ; Dir Max-1 4 blocks
DEFB 0F0H,0 ; Alloc 0,1
DEFW 1024-1 ; Dir Max-1
DEFB 0FFH,0 ; Alloc 0,1
DEFW 0 ; Check size DEFW 0 ; Check size
DEFW (1+3*65)*16 ; Track offset = 3136
DEFW 128+(1024*3)+2 ; Trk Offset
ENDIF ENDIF
; ;
;..... ;.....
@ -307,17 +303,17 @@ DPB53: DEFW 64 ; Scts/Trk
; sectors per track ; sectors per track
DEFB 0 ; Physical tracks/side (No Meaning in HD) DEFB 0 ; Physical tracks/side (No Meaning in HD)
HSIZ4 EQU 2048 ; # of blocks in first Partition (1024 trks)
HSIZ4 EQU 2048 - 4 ; # of blocks in Second Partition (1022 trks)
; ;
DPB54: DEFW 64 ; Sctrs/Trk DPB54: DEFW 64 ; Sctrs/Trk
DEFB 5 ; Blk Shf Fctr DEFB 5 ; Blk Shf Fctr
DEFB 31 ; Block Mask DEFB 31 ; Block Mask
DEFB 1 ; Extent Mask DEFB 1 ; Extent Mask
DEFW HSIZ4-1 ; Disk Size - 1 DEFW HSIZ4-1 ; Disk Size - 1
DEFW 511 ; Dir Max-1 4 blocks
DEFB 0F0H,0 ; Alloc 0,1
DEFW 1024-1 ; Dir Max-1
DEFB 0FFH,0 ; Alloc 0,1
DEFW 0 ; Check size DEFW 0 ; Check size
DEFW (1+4*65)*16 ; Track offset = 16
DEFW 128+(1024*4)+2 ; Trk Offset
ENDIF ENDIF
; ;
;..... ;.....
@ -334,17 +330,17 @@ DPB54: DEFW 64 ; Sctrs/Trk
; sectors per track ; sectors per track
DEFB 0 ; Physical tracks/side (No Meaning in HD) DEFB 0 ; Physical tracks/side (No Meaning in HD)
HSIZ5 EQU 2048 ; # of blocks in Second Partition (1024 trks)
HSIZ5 EQU 2048 - 4 ; # of blocks in Second Partition (1022 trks)
; ;
DPB55: DEFW 64 ; Sctrs/Trk - actually 256 DPB55: DEFW 64 ; Sctrs/Trk - actually 256
DEFB 5 ; Blk Shf Fctr DEFB 5 ; Blk Shf Fctr
DEFB 31 ; Block Mask DEFB 31 ; Block Mask
DEFB 1 ; Extent Mask DEFB 1 ; Extent Mask
DEFW HSIZ5-1 ; Disk Size-1 DEFW HSIZ5-1 ; Disk Size-1
DEFW 511 ; Dir Max-1
DEFB 0F0H,0 ; Alloc 0,1 - 4 blocks
DEFW 1024-1 ; Dir Max-1
DEFB 0FFH,0 ; Alloc 0,1
DEFW 0 ; Check Size DEFW 0 ; Check Size
DEFW (1+5*65)*16 ; Trk Offset = 1056
DEFW 128+(1024*5)+2 ; Trk Offset
ENDIF ENDIF
; ;
;..... ;.....
@ -361,17 +357,17 @@ DPB55: DEFW 64 ; Sctrs/Trk - actually 256
; sectors per track ; sectors per track
DEFB 0 ; Physical tracks/side (No Meaning in HD) DEFB 0 ; Physical tracks/side (No Meaning in HD)
HSIZ6 EQU 2048 ; # of blocks in third Partition (1024 tracks)
HSIZ6 EQU 2048 - 4 ; # of blocks in Second Partition (1022 trks)
; ;
DPB56: DEFW 64 ; Scts/Trk DPB56: DEFW 64 ; Scts/Trk
DEFB 5 ; Blk Shf Fctr DEFB 5 ; Blk Shf Fctr
DEFB 31 ; Block Mask DEFB 31 ; Block Mask
DEFB 1 ; Extent Mask DEFB 1 ; Extent Mask
DEFW HSIZ6-1 ; Disk Size-1 DEFW HSIZ6-1 ; Disk Size-1
DEFW 511 ; Dir Max-1 4 blocks
DEFB 0F0H,0 ; Alloc 0,1
DEFW 1024-1 ; Dir Max-1
DEFB 0FFH,0 ; Alloc 0,1
DEFW 0 ; Check size DEFW 0 ; Check size
DEFW (1+6*65)*16 ; Track offset = 2096
DEFW 128+(1024*6)+2 ; Trk Offset
ENDIF ENDIF
;..... ;.....
@ -388,17 +384,17 @@ DPB56: DEFW 64 ; Scts/Trk
; sectors per track ; sectors per track
DEFB 0 ; Physical tracks/side (No Meaning in HD) DEFB 0 ; Physical tracks/side (No Meaning in HD)
HSIZ7 EQU 2048 ; # of blocks in Fourth Partition (1024 tracks)
HSIZ7 EQU 2048 - 4 ; # of blocks in Second Partition (1022 trks)
; ;
DPB57: DEFW 64 ; Scts/Trk DPB57: DEFW 64 ; Scts/Trk
DEFB 5 ; Blk Shf Fctr DEFB 5 ; Blk Shf Fctr
DEFB 31 ; Block Mask DEFB 31 ; Block Mask
DEFB 1 ; Extent Mask DEFB 1 ; Extent Mask
DEFW HSIZ7-1 ; Disk Size-1 DEFW HSIZ7-1 ; Disk Size-1
DEFW 511 ; Dir Max-1 4 blocks
DEFB 0F0H,0 ; Alloc 0,1
DEFW 1024-1 ; Dir Max-1
DEFB 0FFH,0 ; Alloc 0,1
DEFW 0 ; Check size DEFW 0 ; Check size
DEFW (1+7*65)*16 ; Track offset = 3136
DEFW 128+(1024*7)+2 ; Trk Offset
ENDIF ENDIF
; ;
;..... ;.....
@ -414,17 +410,18 @@ DPB57: DEFW 64 ; Scts/Trk
; even though real layout is 256 physical ; even though real layout is 256 physical
; sectors per track ; sectors per track
DEFB 0 ; Physical tracks/side (No Meaning in HD) DEFB 0 ; Physical tracks/side (No Meaning in HD)
HSIZ8 EQU 2048 ; # of blocks in first Partition (1024 trks)
HSIZ8 EQU 2048 - 4 ; # of blocks in Second Partition (1022 trks)
; ;
DPB58: DEFW 64 ; Sctrs/Trk DPB58: DEFW 64 ; Sctrs/Trk
DEFB 5 ; Blk Shf Fctr DEFB 5 ; Blk Shf Fctr
DEFB 31 ; Block Mask DEFB 31 ; Block Mask
DEFB 1 ; Extent Mask DEFB 1 ; Extent Mask
DEFW HSIZ8-1 ; Disk Size-1 DEFW HSIZ8-1 ; Disk Size-1
DEFW 511 ; Dir Max-1 - 4 blocks
DEFB 0F0H,0 ; Alloc 0,1 - 4 blocks
DEFW 1024-1 ; Dir Max-1
DEFB 0FFH,0 ; Alloc 0,1
DEFW 0 ; Check Size DEFW 0 ; Check Size
DEFW 16 ; Trk Offset
DEFW 128+(1024*0)+2 ; Trk Offset
ENDIF ENDIF
; ;
;..... ;.....
@ -441,17 +438,17 @@ DPB58: DEFW 64 ; Sctrs/Trk
; sectors per track ; sectors per track
DEFB 0 ; Physical tracks/side (No Meaning in HD) DEFB 0 ; Physical tracks/side (No Meaning in HD)
HSIZ9 EQU 2048 ; # of blocks in Second Partition (1024 trks)
HSIZ9 EQU 2048 - 4 ; # of blocks in Second Partition (1022 trks)
; ;
DPB59: DEFW 64 ; Scts/Trk DPB59: DEFW 64 ; Scts/Trk
DEFB 5 ; Blk Shf Fctr DEFB 5 ; Blk Shf Fctr
DEFB 31 ; Block Mask DEFB 31 ; Block Mask
DEFB 1 ; Extent Mask DEFB 1 ; Extent Mask
DEFW HSIZ9-1 ; Disk Size-1 DEFW HSIZ9-1 ; Disk Size-1
DEFW 511 ; Dir Max-1 4 blocks
DEFB 0F0H,0 ; Alloc 0,1
DEFW 1024-1 ; Dir Max-1
DEFB 0FFH,0 ; Alloc 0,1
DEFW 0 ; Check size DEFW 0 ; Check size
DEFW (1+65)*16 ; Track offset 1056
DEFW 128+(1024*1)+2 ; Trk Offset
ENDIF ENDIF
; ;
;..... ;.....
@ -468,17 +465,17 @@ DPB59: DEFW 64 ; Scts/Trk
; sectors per track ; sectors per track
DEFB 0 ; Physical tracks/side (No Meaning in HD) DEFB 0 ; Physical tracks/side (No Meaning in HD)
HSIZ10 EQU 2048 ; # of blocks in Second Partition (1024 trks)
HSIZ10 EQU 2048 - 4 ; # of blocks in Second Partition (1022 trks)
; ;
DPB60: DEFW 64 ; Scts/Trk DPB60: DEFW 64 ; Scts/Trk
DEFB 5 ; Blk Shf Fctr DEFB 5 ; Blk Shf Fctr
DEFB 31 ; Block Mask DEFB 31 ; Block Mask
DEFB 1 ; Extent Mask DEFB 1 ; Extent Mask
DEFW HSIZ10 ; Disk Size-1
DEFW 511 ; Dir Max-1 4 blocks
DEFB 0F0H,0 ; Alloc 0,1
DEFW HSIZ10-1 ; Disk Size-1
DEFW 1024-1 ; Dir Max-1
DEFB 0FFH,0 ; Alloc 0,1
DEFW 0 ; Check size DEFW 0 ; Check size
DEFW (1+2*65)*16 ; Track offset 2096
DEFW 128+(1024*2)+2 ; Trk Offset
ENDIF ENDIF
; ;
;..... ;.....
@ -492,18 +489,17 @@ DPB60: DEFW 64 ; Scts/Trk
DEFB 16 ; Logical Sectors per track DEFB 16 ; Logical Sectors per track
DEFB 0 ; Physical tracks/side (No Meaning in HD) DEFB 0 ; Physical tracks/side (No Meaning in HD)
HSIZ11 EQU 2048 ; # of blocks in Forth Logical Drive
; (1024 tracks)
HSIZ11 EQU 2048 - 4 ; # of blocks in Second Partition (1022 trks)
DPB61: DEFW 64 ; Scts/Trk DPB61: DEFW 64 ; Scts/Trk
DEFB 5 ; Blk Shf Fctr DEFB 5 ; Blk Shf Fctr
DEFB 31 ; Block Mask DEFB 31 ; Block Mask
DEFB 1 ; Extent Mask DEFB 1 ; Extent Mask
DEFW HSIZ11-1 ; Disk Size-1 DEFW HSIZ11-1 ; Disk Size-1
DEFW 511 ; Dir Max-1
DEFB 0F0H,0 ; Alloc 0,1
DEFW 1024-1 ; Dir Max-1
DEFB 0FFH,0 ; Alloc 0,1
DEFW 0 ; Check size DEFW 0 ; Check size
DEFW (1+3*65)*16 ; Track offset 3136
DEFW 128+(1024*3)+2 ; Trk Offset
ENDIF ENDIF
;=========== End of Hard Disk DPBs =========== ;=========== End of Hard Disk DPBs ===========

2
Source/Build.cmd

@ -4,7 +4,7 @@ setlocal
:: call BuildDoc || exit /b :: call BuildDoc || exit /b
call BuildProp || exit /b call BuildProp || exit /b
call BuildShared || exit /b call BuildShared || exit /b
:: call BuildBP || exit /b
call BuildBP || exit /b
call BuildImages || exit /b call BuildImages || exit /b
call BuildROM %* || exit /b call BuildROM %* || exit /b
call BuildZRC || exit /b call BuildZRC || exit /b

7
Source/Images/Build.cmd

@ -1,9 +1,6 @@
@echo off @echo off
setlocal setlocal
::call BuildDisk.cmd bp hd wbw_hd512 || exit /b
::goto :eof
echo. echo.
echo Building Floppy Disk Images... echo Building Floppy Disk Images...
echo. echo.
@ -42,8 +39,6 @@ call BuildDisk.cmd bascomp hd wbw_hd512 || exit /b
call BuildDisk.cmd fortran hd wbw_hd512 || exit /b call BuildDisk.cmd fortran hd wbw_hd512 || exit /b
call BuildDisk.cmd games hd wbw_hd512 || exit /b call BuildDisk.cmd games hd wbw_hd512 || exit /b
if exist ..\BPBIOS\bpbio-ww.rel call BuildDisk.cmd bp hd wbw_hd512 || exit /b
echo. echo.
echo Building Combo Disk (512 directory entry format) Image... echo Building Combo Disk (512 directory entry format) Image...
copy /b ..\..\Binary\hd512_cpm22.img + ..\..\Binary\hd512_zsdos.img + ..\..\Binary\hd512_nzcom.img + ..\..\Binary\hd512_cpm3.img + ..\..\Binary\hd512_zpm3.img + ..\..\Binary\hd512_ws4.img ..\..\Binary\hd512_combo.img || exit /b copy /b ..\..\Binary\hd512_cpm22.img + ..\..\Binary\hd512_zsdos.img + ..\..\Binary\hd512_nzcom.img + ..\..\Binary\hd512_cpm3.img + ..\..\Binary\hd512_zpm3.img + ..\..\Binary\hd512_ws4.img ..\..\Binary\hd512_combo.img || exit /b
@ -67,7 +62,7 @@ call BuildDisk.cmd bascomp hd wbw_hd1k || exit /b
call BuildDisk.cmd fortran hd wbw_hd1k || exit /b call BuildDisk.cmd fortran hd wbw_hd1k || exit /b
call BuildDisk.cmd games hd wbw_hd1k || exit /b call BuildDisk.cmd games hd wbw_hd1k || exit /b
if exist ..\BPBIOS\bpbio-ww.rel call BuildDisk.cmd bp hd wbw_hd1k || exit /b
if exist ..\BPBIOS\bp*.rel call BuildDisk.cmd bp hd wbw_hd1k || exit /b
copy hd1k_prefix.dat ..\..\Binary\ || exit /b copy hd1k_prefix.dat ..\..\Binary\ || exit /b

2
Source/Images/Makefile

@ -19,7 +19,7 @@ HD1KIMGS = hd1k_cpm22.img hd1k_zsdos.img hd1k_nzcom.img \
HD1KXIMGS = hd1k_z80asm.img hd1k_aztecc.img hd1k_hitechc.img \ HD1KXIMGS = hd1k_z80asm.img hd1k_aztecc.img hd1k_hitechc.img \
hd1k_bascomp.img hd1k_fortran.img hd1k_games.img \ hd1k_bascomp.img hd1k_fortran.img hd1k_games.img \
hd1k_tpascal.img hd1k_qpm.img hd1k_blank.img hd1k_tpascal.img hd1k_qpm.img hd1k_blank.img
# HD1KIMGS += hd1k_bp.img
HD1KXIMGS += hd1k_bp.img
HD512PREFIX = HD512PREFIX =
HD1KPREFIX = hd1k_prefix.dat HD1KPREFIX = hd1k_prefix.dat

2
Source/Makefile

@ -7,7 +7,7 @@
.ONESHELL: .ONESHELL:
.SHELLFLAGS = -cex .SHELLFLAGS = -cex
all: prop shared images rom zrc z1rcc zzrcc
all: prop shared bp images rom zrc z1rcc zzrcc
doc: doc:
$(MAKE) --directory Doc $(ACTION) $(MAKE) --directory Doc $(ACTION)

Loading…
Cancel
Save