home *** CD-ROM | disk | FTP | other *** search
- "Masm Converter" Converts Source Code that was "Formatted" for the New
- MASM (Macro Assembler V6.X) into a "Form" which is Compatible for Older
- MASM (V5.X (I have V5.1)).
-
- "Masm Converter" Automatically Replaces the following Directives:
-
- ".STARTUP" with the following:
-
- MOV DX,@DATA ;`.Startup'
- MOV DS,DX
- MOV BX,SS
- SUB BX,DX
- SHL BX,1
- SHL BX,1
- SHL BX,1
- SHL BX,1
- CLI ;Prevent Interrupts
- MOV SS,DX
- ADD SP,BX
- STI ;Restore IRQs ;End of `.Startup'
-
-
- ".EXIT" with the following:
-
- MOV AX,4C00H
- INT 21H
-
-
- ".USES" AX BX CX DX (Example) without my Comments:
-
- PUSH AX ;At the Beginning of a Procedure
- PUSH BX
- PUSH CX
- PUSH DX
- ;And before a "RET" "RETF" or "IRET" (Exit from the Procedure)
- POP DX
- POP CX
- POP BX
- POP AX
- ;< Here is where the "Ret" whould be
-
- TEST MASM CONVERTER:
-
- Allen L. Wyatt, Sr., Author of "Advanced Assembly Language" and other
- Books, gave me permission to include "One" Source Code. I selected,
- "VECTORS.ASM" (Formatted for MASM 6.0) from the Disk that comes with the
- "Advanced Assembly Language" Book. Note: The disk contains all the Source
- Codes, as well as Executable Files that are in his Book.
-
- Type (without quotes) "MASM_CNV VECTORS.ASM" and press Enter,
-
- or
-
- Type "MASM_CNV" and press Enter (You can Enter "VECTORS.ASM" File Name
- later).
-
- FYI:
-
- "Vectors" displays all the Interrupt Vectors in Segment, Offset Order.
-