Email: Password: Remember Me | Create Account (Free)
8051/8052 Instruction: RET

Operation:RET
Function:Return From Subroutine
Syntax:RET

InstructionsOpCodeBytesCyclesFlags
RET0x2212None

Description: RET is used to return from a subroutine previously called by LCALL or ACALL. Program execution continues at the address that is calculated by popping the topmost 2 bytes off the stack. The most-significant-byte is popped off the stack first, followed by the least-significant-byte.

See Also: LCALL, ACALL, RETI, Instruction Set