LCALL calls a program subroutine. LCALL increments the program counter by 3 (to point to the instruction following LCALL) and pushes that value onto the stack (low byte first, high byte second). The Program Counter is then set to the 16-bit value which follows the LCALL opcode, causing program execution to continue at that address.
Syntax : LCALL addr
Example : LCALL school
It will call the subroutine school in the program.
Syntax : LCALL addr
Example : LCALL school
It will call the subroutine school in the program.
- Instruction
- Opcode
- Bytes
- Flags
- LCALL addr
- 0x12
- 3
- None