home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
modula2
/
tools
/
inasm
/
inasm.doc
next >
Wrap
Text File
|
1991-03-10
|
1KB
|
54 lines
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