Week 6 - 4.4 - Introduction to Addressing Modes Flashcards
How many modes can an instruction operand be specified by?
12 addressing modes.
What does an addressing mode do?
An addressing mode tells the CPU how to locate the data or address needed by instruction.
What is the actual register for a register operand?
The effective address of the operand.
How many addressing modes are available on the MC68020/30/40 processors?
18 addressing modes
What is the syntax for Absolute Long mode?
<address>
The operand is a 32 bit-unsigned number that represents the effective address of the operand. The address is a constant , a label, or an expression.
</address>
How many extension words containing the address as a long word does Absolute Long mode need?
two extension words containing the address as a long word.
What happens in Absolute Short Mode?
The memory address is accessed as a 16 bit word and is then sign-extended to 24 bits to give the effective address of the operand. The address is stored in a single extension word.
Syntax for Immediate Mode
N - the number must be given in decimal, hex, or any other permitted number system. This mode is restricted to source operands.
Data Register Direct Mode syntax?
Dn (0 <= 7)
The operand is a data register. An instruction directly accesses the data in the register, and no extension word is required.
What is the operand in Address Register Direct Mode?
The operand is an address register.
What is the address of a memory location in Address Register Direct Mode?
The content of an address register is the address of a memory location. The address register can be viewed as a pointer to a memory location.
What is the syntax for the MOVE instruction?
MOVE. ,
The contents of the source are copied to the destination.
For instruction MOVE the destination cannot be:
an address register
an immediate operand
or any of hte PC-relative modes.
What is the syntax for ADD/SUB (add/subtract)?
ADD. ,Dn ADD. Dn, ADDI. #N, SUB. ,Dn SUB. Dn, SUBI. #N,
What does ADD/SUB do?
Executes the corresponding arithmetic operation for fixed-length binary numbers of the given size.