home *** CD-ROM | disk | FTP | other *** search
- documentation to INASM version 1.0
- ----------------------------------
-
- This inlineassembler supports Codegeneration for Logitech Modula-2 and
- all versions of Turbo Pascal. If you register you are entitled to get
- all further updates. The registration fee amounts to 5-6 US $. Please
- be honest and send them to me, if you like to use the program.
- Next versions will suport all the opcodes for 8086, 808286, 80386 and 80486
- plus all Numeric Coprocessors.
-
- In this version you can asemble macros, bytelists, and external variables.
- The syntax is equally to Microsoft's Macroassembler.
-
-
- Syntax:
-
- [label] opcode [argument [,argument]]; comments
-
- STRING db 'teststring!',13,0Ah,0000000b
-
- pushall macro
- push ax
- push bx
- push cx
- push all ; Macros my be called recursively
- endm
-
- External Variables:
-
- Name EXT
-
- Adressing:
-
- You have to specify the Addressmode you want to use.
-
- e.g: LDS SI, VARIABLE[BP]
-
- Opcodes may not start in the first column, because they would be inter-
- preted als labels and this would produce an error.
-
- there is a small demonstrationprogram:
-
- ;function add(x, y: word): word;
-
- X EXT
- Y EXT
-
- ;codestart
-
- mov ax, x
- mov bx, y
- add ax, bx
- end
-