Outils pour utilisateurs

Outils du site


back2root:ibm-pc-ms-dos:instr:ret

Ceci est une ancienne révision du document !


RET-RETF-RETN

RET/RETF - Return From Procedure

Transfers control from a procedure back to the instruction address saved on the stack.

“n bytes” is an optional number of bytes to release.

Far returns pop the IP followed by the CS, while near returns pop only the IP register.

Usage:

	RET	nBytes	;
	RETF	nBytes	;
	RETN	nBytes	;

Modifies flags:

none

Clocks Size
Operands 808x 286 386 486 Bytes
none 10/14 3 4 4 1
none (PM) - - 4 3 1
reg,reg 3 2 2 1 2
mem,reg 16+EA 7 7 3 2-4 (W88=24+EA)
reg,mem 9+EA 7 6 1 2-4 (W88=13+EA)
reg,immed 4 3 2 1 3-4
mem,immed 17+EA 7 7 3 3-6 (W88=23+EA)
accum,immed 4 3 2 1 2-3
back2root/ibm-pc-ms-dos/instr/ret.1677924950.txt.gz · Dernière modification : 2023/03/04 11:15 de frater