Department of Computer Scien
ce and Information Engineering
National Cheng Kung University, TAIWAN
CALL HANEL
INSTRUCTIONS
Call instruction is used to call subroutine
¾Subroutines are often used to perform tasks that need to be performed frequently¾This makes a program more structured in addition to saving memory space
LCALL
(long call)¾3-byte instructionFirst byte is the opcodeSecond and third bytes are used for address of target subroutine
- Subroutine is located anywhere within 64K byte address space
ACALL
(absolute call)¾2-byte instruction11 bits are used for addr
ess within 2K-byte range