home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 23 / IOPROG_23.ISO / SOFT / ASM / MASM_CN3.ZIP / READ_ME.DOC < prev    next >
Encoding:
Text File  |  1997-05-15  |  1.5 KB  |  61 lines

  1.   "Masm Converter" Converts Source Code that was "Formatted" for the New
  2. MASM (Macro Assembler V6.X) into a "Form" which is Compatible for Older
  3. MASM (V5.X (I have V5.1)).
  4.  
  5.   "Masm Converter" Automatically Replaces the following Directives:
  6.  
  7.   ".STARTUP" with the following:
  8.  
  9.   MOV DX,@DATA ;`.Startup'
  10.   MOV DS,DX
  11.   MOV BX,SS
  12.   SUB BX,DX
  13.   SHL BX,1
  14.   SHL BX,1
  15.   SHL BX,1
  16.   SHL BX,1
  17.   CLI ;Prevent Interrupts
  18.   MOV SS,DX
  19.   ADD SP,BX
  20.   STI ;Restore IRQs ;End of `.Startup'
  21.  
  22.  
  23.   ".EXIT" with the following:
  24.  
  25.   MOV AX,4C00H
  26.   INT 21H
  27.  
  28.  
  29.   ".USES" AX BX CX DX (Example) without my Comments:
  30.  
  31.   PUSH AX  ;At the Beginning of a Procedure
  32.   PUSH BX
  33.   PUSH CX
  34.   PUSH DX
  35.            ;And before a "RET" "RETF" or "IRET" (Exit from the Procedure)
  36.   POP DX
  37.   POP CX
  38.   POP BX
  39.   POP AX
  40.            ;< Here is where the "Ret" whould be
  41.  
  42.   TEST MASM CONVERTER:
  43.  
  44.   Allen L. Wyatt, Sr., Author of "Advanced Assembly Language" and other
  45. Books, gave me permission to include "One" Source Code.  I selected,
  46. "VECTORS.ASM" (Formatted for MASM 6.0) from the Disk that comes with the
  47. "Advanced Assembly Language" Book.  Note: The disk contains all the Source
  48. Codes, as well as Executable Files that are in his Book.
  49.  
  50.   Type (without quotes) "MASM_CNV VECTORS.ASM" and press Enter,
  51.  
  52.   or
  53.  
  54.   Type "MASM_CNV" and press Enter (You can Enter "VECTORS.ASM" File Name
  55. later).
  56.  
  57.   FYI:
  58.  
  59.   "Vectors" displays all the Interrupt Vectors in Segment, Offset Order.
  60.  
  61.