Contents - Alphabetical Listing of Instructions
- Table Of Contents
- Table Of Contents
- Table Of Contents
- Table Of Contents
- Document Conventions
- Processor Registers
- OpCode Descriptions
- ADC HL,ss
- ADD HL,ss
- ADD IX,xx
- ALTD
- AND (HL)
- AND HL,DE
- BIT b,(HL)
- CP (IX+d)
- DEC (HL)
- EX (SP),HL
- EX AF,AF
- INC (HL)
- IPSET
- IPRES
- LCALL x,mn
- LD (BC),A
- LD (HL+d),HL
- LD (IX+d),n
- LD (IY+d),n
- LD (mn),A
- LD (SP+n),HL
- LD A,(mn)
- LD A,IIR
- LD dd,(mn)
- LD dd,mn
- LD HL,(mn)
- LD HL,(SP+n)
- LD IX,(mn)
- LD IX,mn
- LD IY,(SP+n)
- LD r,(HL)
- LD SP,HL
- LDDR
- LDP (HL),HL
- LDP (mn),HL
- LDP HL,(HL)
- LDP HL,(mn)
- LJP x,mn
- OR (IY+d)
- OR HL,DE
- RES b,(HL)
- RETI
- RL (IX+d)
- RLC (HL)
- RLCA
- RR (IX+d)
- RRC (HL)
- RRCA
- SBC (IX+d)
- SBC HL,ss
- SET b,(HL)
- SLA (HL)
- SRA (HL)
- SRL (HL)
- SUB (HL)
- XOR (HL)
|
42 Rabbit 2000/3000 MicroprocessorDescriptionThis instruction is similar to the CALL routine in that it transfers program execution to the subroutine addressspecified by the 16-bit operand mn. The LCALL instruction is special in that it allows calls to be made to acomputed address in XMEM. Note that the value of XPC and consequently the address space defined by theXPC is dynamically changed with the LCALL instructions.In the LCALL instruction, first the Extension of the Program Counter, XPC, is pushed onto the stack. Nextthe Program Counter, PC, is pushed onto the stack, the high order byte first, then the low order byte. Then theXPC is loaded with the 8-bit value x and the PC is loaded with the 16-bit value, mn. The Stack Pointer registeris then updated to reflect the three items pushed onto it.The value mn must be in the range E000–FFFF.This instruction is implemented for the Rabbit and is not available for the Z180.Alternate FormsThe Dynamic C assembler recognizes several other forms of this instruction.LCALL labelLCALL x,labelLCALL x:labelLCALL x:mnThe parameter label is a user defined label. The colon is equivalent to the comma as a delimiter.LCALL x,mnOpcode Instruction Clocks OperationCF n m x LCALL x,mn 19 (2,2,2,2,1,3,3,3,1) (SP - 1) = PC (low);(SP - 2) = PC (high);(SP - 3) = XPC;XPC = x;PC = mn;SP = SP - 3Flags ALTD I/OS Z L/V C F R SP S D- - - -
PreviousNext |