System information

The following program provides a framework for the GETSYS and PUTSYS programs
referenced in Sections 6.1 and 6.2. To read and write the specific sectors, you must insert the
READSEC and WRITESEC subroutines.
; GETSYS PROGRAM -- READ TRACKS 0 AND 1 TO MEMORY AT 3380H
; REGISTER USE
; A (SCRATCH REGISTER)
; B TRACK COUNT (O, 1)
; C SECTOR COUNT (1,2,...,26)
; DE (SCRATCH REGISTER PAIR)
; HL LOAD ADDRESS
; SP SET TO STACK ADDRESS
START: LXI SP,3380H ; SET STACK POINTER TO SCRATCH
; AREA
LXI H,3380H ; SET BASE LOAD ADDRESS
MVI B,0 ; START WITH TRACK 0
RDTRK: ; READ NEXT TRACK (INITIALLY 0)
MVI C,1 ; READ STARTING WITH SECTOR 1
Place the scratch disk in drive A, then perform a cold start to bring up the newlyconfigured CP/M
system.
The new CP/M system is then tested and the Digital Research copyright notice is placed on the
disk, as specified in the Licensing Agreement:
Copyright (c), 1979
Digital Research
6.4 Sample GETSYS and PUTSYS Programs
6.3 Second-level Regeneration CP/M Operating System Manual
6-11