where it had branched off . is means that the value of IP (and CS for a ‘far’ call) will have to
be retrieved. is is done by the ‘return’ instruction which is the last instruction in the procedure.
e execution of RET causes the return address to be popped from the stack to IP or IP and CS.
(Whenever a procedure is defi ned, it is known whether it is a far or near procedure. From this, it
is determined whether the stack has saved just the old IP value or both IP and CS.)
Usage: RET nii)
is is another form of the RET instruction. is adds the number ‘n’ to the stack pointer (SP)
after the return address has ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.