Simulate_Far_Ret_N

include vmm.inc

mov eax, Bytes ; number of bytes to pop from stack

VMMcall Simulate_Far_Ret_N


The Simulate_Far_Ret_N service simulates a far return in the current virtual machine. This service pops the top two words (or doublewords) from the stack of the current virtual machine, and places the values in the Client_CS and Client_EIP or Client_IP registers. It then subtracts the Bytes parameter from the Client_ESP or Client_SP register, effectively popping any pushed parameters from the stack.

Parameters

Bytes

Specifies the number of bytes to pop from the stack.

Return Value

This service has no return value.

Uses

Client_CS, Client_EIP, Client_ESP, Flags

See Also

Simulate_Far_Call, Simulate_Far_Ret