|
Slide 13.3: .MODEL directive Slide 13.5: ADDR operator Home |
|
INVOKE Directive
INVOKE directive pushed arguments on the stack and calls a procedure.
It is a convenient replacement for the CALL instruction because multiple arguments can be passed by using a single line of code.
The syntax is
INVOKE procedureName [, argumentList]
argumentList is an optional comma-delimited list of arguments passed to the procedure.
Argument types are listed below.
| Type | Examples |
|---|---|
| Immediate value | 10, 3000h, OFFSET myList, TYPE array |
| Integer expression | (10 * 20), COUNT |
| Variable | myList, array, myWord, myDword |
| Address expression | [myList+2], [ebx+esi] |
| Register | eax, bl, edi |
ADDR name |
ADDR myList |
OFFSET name |
OFFSET myList |
An ABS Procedure Using CALL
|
An ABS Procedure Using INVOKE
|
|---|---|