home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Oakland CPM Archive
/
oakcpm.iso
/
cpmug
/
cpmug036.ark
/
MAC6.DOC
< prev
next >
Wrap
Text File
|
1984-04-29
|
4KB
|
120 lines
* * * * MAC6.DOC * * * *
MIKE FAVITTA - 5/16/79
2 JANET LANE
ALBANY, N.Y. 12203
THIS PROGRAM IS AN EXTENSION OF MAC4.ASM THAT IS ALREADY AVAILIBLE
FROM THE CP/M USERS GROUP. BOTH THESE PROGRAMS ADAPT THE TDL
MACRO-ASSEMBLER TO WORK WITH DISK FILES UNDER THE CP/M OPERATING
SYSTEM.
* ENHANCEMENTS PRESENT IN MAC6.AZM THAT ARE NOT IN MAC4.ASM *
1. MULTI-EXTENSION SOURCE FILES (OVER 16K OF TEXT) MAY NOW BE
ASSEMBLED WITHOUT ERROR.
2. THE HIGHEST MEMORY AVAILIBLE FOR USE BY THE ASSEMBLER CALCULATION
HAS BEEN CORRECTED (IT IS POSSIBLE TO WRITE OVER THE FIRST JUMP
VECTOR FOR CP/M IF YOU RUN OUT OF MEMORY USING MAC4.ASM).
3. DIAGNOSTIC ERROR MESSAGES HAVE BEEN ADDED ALONG WITH INCREASED
ERROR DETECTION.
4. CONTROL OF THE ASSEMBLERS THREE PASSES HAS BEEN ADDED. IT IS
POSSIBLE TO GENERATE JUST A LISTING OR A OBJECT FILE BY
SPECIFYING OPTIONS ON THE ASSEMBLER CALL. NO OPTION CAUSES THE
DEFAULT CASE OF BOTH A LISTING AND A OBJECT FILE TO BE CREATED.
5. FOR USERS WITH DUAL DRIVE SYSTEMS THE EFFICIENCY OF ASSEMBLY HAS
BEEN INCREASED BY AUTOMATICALLY PLACING ANY OUTPUT FILES ON THE
DRIVE THAT DOES NOT CONTAIN THE SOURCE FILE. THIS GREATLY
REDUCES THE AMOUNT OF HEAD REPOSITIONING NECESSARY. IF YOU
ONLY HAVE A SINGLE DRIVE SYSTEM OR WANT TO OVER RIDE THIS FILE
PLACEMENT SCHEME, AN OPTION IS AVAILABLE TO FORCE ALL FILE I/O
TO ONLY THE CURRANTLY LOGGED IN DRIVE.
6. MAC6.AZM IS WRITTEN FOR THE Z-80 AND WILL NOT RUN ON A 8080 BASED
MICROCOMPUTER WITHOUT MODIFICATION.
* GENERATION NOTES *
1. THE OBJECT CODE IS SUPPLIED IN A DIRECTLY EXECUTABLE FORM IN
THE FILE MAC6.COM. THIS FILE CONTAINS THE CODE FROM ASSEMBLING
MAC6.AZM AND IS SET TO RUN AT 100H. WHEN LOADED IT OCCUPIES
MEMORY FROM 100H TO 820H. THIS ALLOWS PEOPLE THAT DON'T HAVE
ANY Z-80 ASSEMBLER RUNNING UNDER CP/M TO STILL PUT THE TDL
ASSEMBLER UP ON THEIR SYSTEM.
2. PROCEDURE:
A. CREATE A FILE CALLED TDL.COM THAT CONTAINS THE TDL
ASSEMBLER SET TO RUN AT 800H.
- USE TDL'S RELOCATING LOADER TO LOAD THE ASSEMBLER
AT 800H (R,800).
- ENTER OR BOOT CP/M AND TYPE
SAVE 48 TDL.COM (CR)
B. USING DDT MERGE THE FILES TDL.COM AND MAC6.COM
- ENTER DDT AND TYPE THE FOLLOWING COMMANDS
ITDL.COM (CR)
R (CR)
IMAC6.COM (CR)
R (CR)
^C (^C = CONTROL C)
SAVE 48 MASM.COM
- THE TDL.COM FILE MUST BE READ IN FIRST AS PART OF MAC6.COM
OVERLAYS IT.
* NOTES ON OPERATION *
1. FORMAT OF ASSEMBLER CALL: MASM FILENAME OPTIONS
- FILENAME NEVER HAS THE EXTENSION. IT IS ALWAYS ASSUMED TO BE AZM.
- OPTIONS AVAILIBLE ARE:
S - USE THE CURRANTLY LOGGED IN DRIVE FOR ALL FILES
(SINGLE DRIVE MODE)
L - PRODUCE A LISTING FILE ONLY (PASSES 1 AND 2)
O - PRODUCE A OBJECT FILE ONLY (PASSES 1 AND 3)
- ANY COMBINATION OF OPTIONS IS LEGAL EXCEPT OL AND LO
- IF NO OPTIONS ARE SPECIFIED THEN DUAL DRIVE MODE AND A COMPLETE
ASSEMBLY (PASSES 1, 2 AND 3) IS ASSUMED
2. SAMPLE MASM CALLS:
- MASM TEST
- MASM TEST SL
- MASM TEST O
3. WHEN A DISK ERROR OCCURS THE FOLLOWING INFORMATION IS PROVIDED:
- THE ADDRESS IN THE PROGRAM AT WHICH THE ERROR OCCURED
- THE STATUS RETURNED BY CP/M
- THE TYPE OF DISK FUNCTION THAT WAS ATTEMPTED
4. THE ASSEMBLY LISTING AND OBJECT CODE WILL BE IN FILES WITH THE
SAME FILE NAME AS THE SOURCE FILE AND WILL HAVE THE EXTENSIONS
PRN AND HXR. THE TDL PSUEDO-OPS .PABS AND .LOC 100H CAN BE USED
TO GENERATE CODE THAT CAN BE HANDLED BY CP/M'S LOAD PROGRAM (THE
EXTENSION MUST BE CHANGED TO HEX). OTHERWISE THE OBJECT FILE
CONTAINS FULLY RELOCATABLE CODE. A PROGRAM TO DIRECTLY
LOAD (ANY WHERE IN MEMORY YOU WANT) THESE FILES UNDER CP/M
IS BEING DEVELOPED AND WILL BE SUBMITTED TO THE CP/M USERS GROUP
SHORTLY. IT WILL BE CALLED RELOC.AZM.
5. THIS PROGRAM HAS BEEN EXTENSIVELY TESTED, BUT IF ANY ERRORS ARE
FOUND I WOULD APPRECIATE BEING NOTIFIED.