This statement calls a procedure that displays the current values of the CPU registers.
The instruction calls a procedure by directing the processor to begin execution at a new memory location.
Procedures could be user-defined or built-in.
Pushes “Instruction Pointer” (and “Code Segment” for far calls) onto stack and loads “Instruction Pointer” with the address of “proc-name”.
Code continues with execution at .
Clocks
Operands
286
386
486
rel16 (near, IP relative)
7
7+m
3
rel32 (near, IP relative)
7+m
3
reg16 (near, register indirect)
7
7+m
5
reg32 (near, register indirect)
7+m
5
mem16 (near, memory indirect)
11
10+m
5
mem32 (near, memory indirect)
10+m
5
...
...
EXIT, ENDP, and END
exit
main ENDP
END main
statement, a command defined in , calls a pre-defined MS-Windows function that halts the program.
directive marks the end of the procedure.
directive marks the last line of the program to be assembled. It identifies the name of the program’s startup procedure.