Simulate_Far_Jmp

include vmm.inc

mov     cx, Segment       ; segment containing procedure
mov     edx, Offset       ; offset of procedure
VMMCall Simulate_Far_Jmp
 

Simulates a far jump to a procedure in the current virtual machine. This service sets the Client_CS and Client_IP registers to the specified address. When the virtual machine resumes execution (such as when the Resume_Exec service is called), the system executes the specified procedure. Uses Client_CS, Client_EIP, Flags.

Segment
Selector or segment address of the code segment containing the procedure.
Offset
Offset of the procedure to jump to. If the code segment is a 16-bit segment, the high word must be zero.

See Also

Simulate_Far_Call