You can lookup a single instruction by typing LD in the instruction field, which will show all load instructions. You can also lookup multiple instructions like LD,CMP.
You can also lookup mnemonics like LDX,LDY in the mnemonic field.
To see all instructions click the Show All link.
Show All | Registers | Addressing Modes | Post Bytes | Acknowledgments | Sock's GIME Reference | Sock's CPU Cycle Data Charts
Not case sensitive.
* = 6309 | Immediate | Direct | Indexed | Extended | Inherent | Relative | Register | Memory | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
* | Mnemonic | Opcode | Cycles | Length | Opcode | Cycles | Length | Opcode | Cycles | Length | Opcode | Cycles | Length | Opcode | Cycles | Length | Opcode | Cycles | Length | Opcode | Cycles | Length | Opcode | Cycles | Length |
LEAU | 33 | 4+ | 2 |
E | F | H | I | N | Z | V | C |
- | - | - | - | - | - | - | - |
Load Effective Address [r’ ← EA]
DocumenationThese instructions compute the effective address from an Indexed Addressing Mode operand and place that address into one of the Stack Pointers (S or U) or one of the Index Registers (X or Y).
The LEAS and LEAU instructions do not affect any of the Condition Code flags. The LEAX
and LEAY
instructions set the Z
flag when the effective address is 0 and clear it otherwise. This permits X
and Y
to be used as 16-bit loop counters as well as providing compatibility with the INX
and DEX
instructions of the 6800 microprocessor.
LEA instructions differ from LD
instructions in that the value loaded into the register is the address specified by the operand rather than the data pointed to by the address. LEA
instructions might be used when you need to pass a parameter by-reference as opposed to by-value.
The LEA
instructions can be quite versatile. For example, adding the contents of Accumulator B to Index Register Y and depositing the result in the User Stack pointer (U) can be accomplished with the single instruction:
LEAU B,Y
NOTE: The effective address of an auto-increment operand is the value prior to incrementing. Therefore, an instruction such as LEAX ,X+
will leave X unmodified. To achieve the expected results, you can use LEAX 1,X
instead.