mirror of
https://github.com/SEPPDROID/Digital-Research-Source-Code.git
synced 2025-10-24 08:54:17 +00:00
Upload
Digital Research
This commit is contained in:
19
CONTRIBUTIONS/z80em86/scripts/make_dr.sh
Normal file
19
CONTRIBUTIONS/z80em86/scripts/make_dr.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
#==============================================================================
|
||||
# Create a CP/M 3 (original DR) floppy boot disk and image
|
||||
# S.J.Kay 26 February 2009
|
||||
#==============================================================================
|
||||
FLOPPY_DIR=floppy
|
||||
|
||||
cp -a bios/ cpm3/ cpm3_y2k/ extras/ support/ scripts/ ~/.dosemu/drive_c/z80em86/
|
||||
rm -f ~/.dosemu/drive_c/z80em86/bios/*.*~ ~/.dosemu/drive_c/z80em86/support/*.*~
|
||||
|
||||
dosemu -dumb "cd z80em86|z80em86 scripts\make_dr.sub"
|
||||
|
||||
if (test ! -d $FLOPPY_DIR); then
|
||||
mkdir floppy
|
||||
fi
|
||||
|
||||
# make a raw disk image of the floppy assuming 1.44MB HD type
|
||||
echo "Creating raw disk image from floppy disk"
|
||||
dd if=/dev/fd0 of=$FLOPPY_DIR/cpm3_dr_floppy.img bs=1k count=1440
|
||||
51
CONTRIBUTIONS/z80em86/scripts/make_dr.sub
Normal file
51
CONTRIBUTIONS/z80em86/scripts/make_dr.sub
Normal file
@@ -0,0 +1,51 @@
|
||||
;===========================================================================
|
||||
; CP/M 3 - DR (original) build script. SJK, 26 February 2009
|
||||
;
|
||||
; This submit file is used to build and create a bootable CP/M floppy disk.
|
||||
; A HDD bootable disk image can then be created from it.
|
||||
;
|
||||
; A copy of all the source directories must be copied to the installed
|
||||
; location of the emulator.
|
||||
;
|
||||
; Place a freshly formatted 1.44MB HD CP/M floppy disk into drive A: before
|
||||
; starting.
|
||||
;
|
||||
; This script may be run in several ways:
|
||||
; 1) Copy to the HDD on drive C: and execute
|
||||
; C:>dostocpm scripts\make_dr.sub c:
|
||||
; C:>submit make_dr
|
||||
;
|
||||
; 2) Under Linux and DosEmu:
|
||||
; dosemu -dumb "cd z80em86|z80em86 scripts\make_dr.sub"
|
||||
;
|
||||
; 3) Under DOS:
|
||||
; >cd z80em86
|
||||
; >z80em86 scripts\make_dr.sub
|
||||
;
|
||||
; Methods 2 and 3 require a current CP/M 3 system that has my 'profile.sub'
|
||||
; on the HDD disk image.
|
||||
;
|
||||
; All Methods require the drive search path to be set to a drive that
|
||||
; contains the executables. (drive C: is set in 'profile.sub')
|
||||
;===========================================================================
|
||||
;
|
||||
; copy the BIOS source and submit files
|
||||
dostocpm bios\*.spr bios\*.mac bios\*.asm bios\*.sub bios\*.cpm bios\*.lib bios\*.dat bios\*.rel A: /f
|
||||
|
||||
; make CP/M 3 and loader system files
|
||||
A:
|
||||
submit a:makecpm3.sub
|
||||
|
||||
; copy the original CP/M 3 binary files
|
||||
dostocpm cpm3\*.com cpm3\*.hlp A: /f
|
||||
|
||||
; copy the CP/M 3 support files
|
||||
dostocpm support\*.com support\*.dat A: /f
|
||||
|
||||
; copy selected user files from the 'extras' directory
|
||||
dostocpm extras\*.com A: /f
|
||||
|
||||
; place cpmldr.sys onto the system tracks making the banked build bootable
|
||||
putldr b A:
|
||||
|
||||
; ***** SYSTEM CREATION COMPLETE *****
|
||||
7
CONTRIBUTIONS/z80em86/scripts/make_hdd.sh
Normal file
7
CONTRIBUTIONS/z80em86/scripts/make_hdd.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
#==============================================================================
|
||||
# Copy CP/M files from A: to a fresh HDD disk image (on C:) and place the
|
||||
# banked system on the system tracks.
|
||||
# S.J.Kay 18 February 2009
|
||||
#==============================================================================
|
||||
dosemu -dumb "cd z80em86|z80em86 -A scripts\make_hdd.sub"
|
||||
42
CONTRIBUTIONS/z80em86/scripts/make_hdd.sub
Normal file
42
CONTRIBUTIONS/z80em86/scripts/make_hdd.sub
Normal file
@@ -0,0 +1,42 @@
|
||||
;===========================================================================
|
||||
; CP/M 3 - Create HDD disk drive image script. SJK, 18 February 2009
|
||||
;
|
||||
; This submit file is used to copy files from a previously created
|
||||
; floppy disk to a fresh HDD disk image formatted with E5 hex. The
|
||||
; DOS 'z80hdd.exe' program can be used to create this image.
|
||||
;
|
||||
; Place a 1.44MB HD CP/M floppy disk containg the CP/M 3 system files
|
||||
; into drive A: before starting.
|
||||
;
|
||||
; This script may be run in several ways:
|
||||
; 1) Copy to the HDD on drive C: and execute
|
||||
; C:>dostocpm scripts\make_hdd.sub c:
|
||||
; C:>submit make_hdd
|
||||
;
|
||||
; 2) Under Linux and DosEmu:
|
||||
; dosemu -dumb "cd z80em86|z80em86 scripts\make_hdd.sub"
|
||||
;
|
||||
; 3) Under DOS:
|
||||
; >cd z80em86
|
||||
; >z80em86 scripts\make_hdd.sub
|
||||
;
|
||||
; Methods 2 and 3 require a current CP/M 3 system that has my 'profile.sub'
|
||||
; on the floppy disk image.
|
||||
;===========================================================================
|
||||
;
|
||||
; run initdir on drive C: for date and time stamping
|
||||
initdir c:
|
||||
|
||||
; set time-stamps for 'create' and 'update' (must select drive 1st)
|
||||
c:
|
||||
a:set [create=on]
|
||||
a:set [update=on]
|
||||
a:
|
||||
|
||||
; copy the required files
|
||||
cp -v a:*.sys a:*.com a:profile.sub a:cpmdpb.dat a:help.hlp c:
|
||||
|
||||
; place cpmldr.sys onto the system tracks making the banked build bootable
|
||||
putldr b c:
|
||||
|
||||
; ***** SYSTEM CREATION COMPLETE *****
|
||||
20
CONTRIBUTIONS/z80em86/scripts/make_y2k.sh
Normal file
20
CONTRIBUTIONS/z80em86/scripts/make_y2k.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
#==============================================================================
|
||||
# Create a CP/M 3 (Y2K) floppy boot disk and image.
|
||||
# S.J.Kay 26 February 2009
|
||||
#==============================================================================
|
||||
FLOPPY_DIR=floppy
|
||||
|
||||
cp -a bios/ cpm3/ cpm3_y2k/ extras/ support/ scripts/ ~/.dosemu/drive_c/z80em86/
|
||||
rm -f ~/.dosemu/drive_c/z80em86/bios/*.*~ ~/.dosemu/drive_c/z80em86/support/*.*~
|
||||
|
||||
dosemu -dumb "cd z80em86|z80em86 scripts\make_y2k.sub"
|
||||
|
||||
# make a raw disk image of the floppy assuming 1.44MB HD type
|
||||
echo "Creating raw disk image from floppy disk"
|
||||
|
||||
if (test ! -d $FLOPPY_DIR); then
|
||||
mkdir floppy
|
||||
fi
|
||||
|
||||
dd if=/dev/fd0 of=$FLOPPY_DIR/cpm3_y2k_floppy.img bs=1k count=1440
|
||||
57
CONTRIBUTIONS/z80em86/scripts/make_y2k.sub
Normal file
57
CONTRIBUTIONS/z80em86/scripts/make_y2k.sub
Normal file
@@ -0,0 +1,57 @@
|
||||
;===========================================================================
|
||||
; CP/M 3 - Y2K Build script. SJK, 26 February 2009
|
||||
;
|
||||
; This submit file is used to build and create a bootable CP/M floppy disk.
|
||||
; A HDD bootable disk image can then be created from it.
|
||||
;
|
||||
; A copy of all the source directories must be copied to the installed
|
||||
; location of the emulator.
|
||||
;
|
||||
; Place a freshly formatted 1.44MB HD CP/M floppy disk into drive A: before
|
||||
; starting.
|
||||
;
|
||||
; This script may be run in several ways:
|
||||
; 1) Copy to the HDD on drive C: and execute
|
||||
; C:>dostocpm scripts\make_y2k.sub c:
|
||||
; C:>submit make_y2k
|
||||
;
|
||||
; 2) Under Linux and DosEmu:
|
||||
; dosemu -dumb "cd z80em86|z80em86 scripts\make_y2k.sub"
|
||||
;
|
||||
; 3) Under DOS:
|
||||
; >cd z80em86
|
||||
; >z80em86 scripts\make_y2k.sub
|
||||
;
|
||||
; Methods 2 and 3 require a current CP/M 3 system that has my 'profile.sub'
|
||||
; on the HDD disk image.
|
||||
;
|
||||
; All Methods require the drive search path to be set to a drive that
|
||||
; contains the executables. (drive C: is set in 'profile.sub')
|
||||
;===========================================================================
|
||||
;
|
||||
; copy the BIOS source and submit files
|
||||
dostocpm bios\*.spr bios\*.mac bios\*.asm bios\*.sub bios\*.cpm bios\*.lib bios\*.dat bios\*.rel A: /f
|
||||
|
||||
; overwrite the CP/M 3 SPR and REL files with the Y2K ones
|
||||
dostocpm cpm3_y2k\*.spr cpm3_y2k\*.rel A: /f
|
||||
|
||||
; make CP/M 3 and loader system files
|
||||
A:
|
||||
submit a:makecpm3.sub
|
||||
|
||||
; copy the original CP/M 3 binary files
|
||||
dostocpm cpm3\*.com cpm3\*.hlp A: /f
|
||||
|
||||
; overwrite the CP/M 3 binary files with the Y2K ones
|
||||
dostocpm cpm3_y2k\*.com cpm3_y2k\*.hlp cpm3_y2k\*.rel cpm3_y2k\*.1st A: /f
|
||||
|
||||
; copy the CP/M 3 support files
|
||||
dostocpm support\*.com support\*.dat A: /f
|
||||
|
||||
; copy selected user files from the 'extras' directory
|
||||
dostocpm extras\*.com A: /f
|
||||
|
||||
; place cpmldr.sys onto the system tracks making the banked build bootable
|
||||
putldr b A:
|
||||
|
||||
; ***** SYSTEM CREATION COMPLETE *****
|
||||
Reference in New Issue
Block a user