# Tim Standing
# 2/24/87
# An automatic routine to build my output for me.
#
Unalias make
{mpw}tools:make -f {tardir}makefile > {Scratch}makeout
{Scratch}makeout
exit
# File: MakeFile
#
# MakeFile for Formatting program for MacTutor An Low
# Level formatting of a SCSI hard disk drive. Note if
# resource file has been changed, run first Rez then
# Link. Rez sometimes trashes code resources.
Rez -p Format.r -o Format
Format ÅFormat.a.o BuffStuff.a.o SCSI.a.o Format.r Link -p Format.a.o BuffStuff.a.o SCSI.a.o ∂
-o Format -l > Format.Map
Format.a.o àFormat.a FormatEqu.a
Asm -p -wb Format.a
BuffStuff.a.o áBuffStuff.a FormatEqu.a
Asm -p -wb BuffStuff.a
SCSI.a.o àSCSI.a FormatEqu.a
Asm -p -wb SCSI.a
;*********** File FormatEqu.a ****
;**********************************
;
; A list of equates used in the SCSI formatting program.
; Menu Bar resource numbers
AppleM EQU 128
FileM EQU 129
EditM EQU 130
SCSIM EQU 131
; Dialog box resource numbers
AboutRN EQU 128
SelAddrRN EQU 129
ParamRN EQU 130
EDefectsRN EQU 131
AboutItem EQU 1
DialWLen EQU 170 ;lenght of window storage for
;dialog box
; Event Processing Equates
AllEvents EQU $0000FFFF
EventMask EQU $FFFF
; Codes used in error dialog box for SCSI Manager traps.
Reset EQU $A0
Get EQU $A1
Select EQU $A2
Command EQU $A3
Complete EQU $A4
Read EQU $A5
Write EQU $A6
Install EQU $A7
Stat EQU $A10
; Codes used in error dialog box for SCSI commands.
RezeroUnit EQU 1
TestUReady EQU 0
FormatUnit EQU 4
ModeSelect EQU $15
MaxTicks EQU 108000 ;max # of ticks to wait for
;a SCSI command to complete
MaxAddr EQU 6 ;largest SCSI address
MaxCylind EQU 2048 ;largest number of cylinders
MaxHeads EQU 16 ;largest number of heads
MaxBFI EQU $10000000 ;bigest Bytes From Index value
; Offsets for input buffer used when inputting disk surface
; defect information (relative to the beginning of that record).
CylBBuff EQU 0 ;offset for cylinder field
HeadBBuff EQU 4 ;offset for head field
BFIBBuff EQU 8 ;offset for bytes from index field
; Offset for each record in output buffer (relative
; to the beginning of that record).
CylOut EQU 0 ;Offset for cylinder
HeadOut EQU 3 ;Offset for head
BFIOut EQU 4 ;Offset for byte from index
; Equates for buffer sizes. Note there are two buffers for
; defects, one for input, another reformated one for output