First page Back Continue Last page Overview Graphics
Data Transfer Instructions: LDD
LDD (Load Double Accumulator D)
Example: LDD #$1024 ;assembly instruction
- Location Contents
- E000 CC (Opcode)
- E001 10 (Operand, first byte)
- E002 24 (Operand, second byte)
- What values are in A, B and D? Answers______, _______, ______
- Why are two bytes of operands required?
- How many byte-sized memory accesses are required to execute the instruction? Answer ________
Register D is made up of registers A & B. Register A is the most significant part of D and register B is the least significant part of D. Changing D can change both A and B and vice versa. Since register D is a 16-bit register, a two byte operand is required.
The instruction, LDD #$1058, loads a 10 hex into register A and a 58 hex into register B.
Some examples of opcodes that use immediate addressing are:
CC ( LDD)