Popis jednotlivých způsobů adresování.
Tabulka 23.1. Adresovací módy MC68k [2:1:1]
mód | popis | zápis |
---|---|---|
Data Register Direct | EA = Dn | Dn |
Address Register Direct | EA = An | An |
Adress Register Indirect | EA = (An) | (An) |
Address Register Indirect with Postincrement | EA = (An) + SIZE | (An)+ |
Address Register Indirect with Predecrement | EA = (An) - SIZE | -(An) |
Address Register Indirect with Displacement | EA = (An) + d16 | (d16, An) |
Address Register Indirect with Index (8-bit Displacement) | EA = (An) + (Xn) + d8 | (d8, An, Xn.SIZE*SCALE) |
Address Register Indirect with Index (Base Displacement) | EA = (An) + (Xn) + bd | (bd, An, Xn.SIZE*SCALE |
Memory Indirect Postindexed | EA = (An + bd) + Xn.SIZECALE + od | ([bd,An], Xn.SIZE*SCALE, od) |
Memory Indirect Preindexed | EA = (bd + An) + Xn-SIZE*SCALE + od | ([bd, An, Xn.SIZE*SCALE], od) |
Program Counter Indirect with Displacement | EA = (PC) + d16 | (d16,PC) |
Program Counter Indirect with Index (8-bit Displacement) | EA = (PC) + (Xn) + d8 | (d8, PC, Xn.SIZE*SCALE) |
Program Counter Indirect with Index (Base Displacement) | EA = (PC) + (Xn) + bd | (bd,PC,Xn.SIZE*SCALE) |
Program Counter Memory Indirect Postindexed | EA = (bd + PC) + X.SIZE*SCALE + od | ([bd, PC], Xn.SIZE*SCALE,od) |
Program Counter Memory Indirect Preindexed | EA = (bd + PC) + Xn.SIZE*SCALE + od | ([bd, PC, Xn.SIZE*SCALE], od) |
Absolute Short Addressing | EA GIVEN | (xxx).W |
Absolute Long Addressing | EA GIVEN | (xxx).L |
Immediate Data | OPERAND GIVEN | #<xxx> |
Tabulka 23.2. Effective Addressing Modes and Categories [3:2:1:1:1:1:1:1]
Addressing Modes | Syntax | Mode Field | Reg. Field | Data | Memory | Control | Alterable |
---|---|---|---|---|---|---|---|
Register Direct | |||||||
Data | Dn | 000 | reg. no. | X | - | - | X |
Address | An | 001 | reg. no. | - | - | - | X |
Register Indirect | |||||||
Address | (An) | 010 | reg. no. | X | X | X | X |
Address with Postincrement | (An)+ | 011 | reg. no. | X | X | - | X |
Address with Predecrement | -(An) | 100 | reg. no. | X | X | - | X |
Address with Displacement | (d16,An) | 101 | reg. no. | X | X | X | X |
Address Register Indirect with Index | |||||||
8-bit Dispalcement | (d8,An,Xn) | 110 | reg. no. | X | X | X | X |
Base Displacement | (bd,An,Xn) | 110 | reg. no. | X | X | X | X |
Memory Indirect | |||||||
Postindexed | ([bd,An],Xn,od) | 110 | reg. no. | X | X | X | X |
Preindexed | ([bd,An,Xn],od) | 110 | reg. no. | X | X | X | X |
Program Counter Indirect | |||||||
with Displacement | (d16,PC) | 111 | 010 | X | X | X | - |
Program Counter Indirect with Index | |||||||
8-Bit Displacement | (d8,PC,Xn) | 111 | 011 | X | X | X | - |
Base Dispalcement | (bd,PC,Xn) | 111 | 011 | X | X | X | - |
Program Counter Memory Indirect | |||||||
Postindexed | ([bd,PC],Xn,od) | 111 | 011 | X | X | X | X |
Preindexed | ([bd,PC,Xn],od) | 111 | 011 | X | X | X | X |
Absolute data Addressing | |||||||
Short | (xxx).W | 111 | 000 | X | X | X | - |
Long | (xxx).L | 111 | 000 | X | X | X | - |
Immediate | #<xxx> | 111 | 100 | X | X | - | - |
Tabulka 23.3. Effective Addressing Modes and Categories
Addressing Modes | Syntax | Mode Field | Reg. Field | Data | Memory | Control | Alterable |
---|---|---|---|---|---|---|---|
Register Direct | |||||||
Data | Dn | 000 | reg. no. | X | - | - | X |
Address | An | 001 | reg. no. | - | - | - | X |
Register Indirect | |||||||
Address | (An) | 010 | reg. no. | X | X | X | X |
Address with Postincrement | (An)+ | 011 | reg. no. | X | X | - | X |
Address with Predecrement | -(An) | 100 | reg. no. | X | X | - | X |
Address with Displacement | (d16,An) | 101 | reg. no. | X | X | X | X |
Address Register Indirect with Index | |||||||
8-bit Dispalcement | (d8,An,Xn) | 110 | reg. no. | X | X | X | X |
Base Displacement | (bd,An,Xn) | 110 | reg. no. | X | X | X | X |
Memory Indirect | |||||||
Postindexed | ([bd,An],Xn,od) | 110 | reg. no. | X | X | X | X |
Preindexed | ([bd,An,Xn],od) | 110 | reg. no. | X | X | X | X |
Program Counter Indirect | |||||||
with Displacement | (d16,PC) | 111 | 010 | X | X | X | - |
Program Counter Indirect with Index | |||||||
8-Bit Displacement | (d8,PC,Xn) | 111 | 011 | X | X | X | - |
Base Dispalcement | (bd,PC,Xn) | 111 | 011 | X | X | X | - |
Program Counter Memory Indirect | |||||||
Postindexed | ([bd,PC],Xn,od) | 111 | 011 | X | X | X | X |
Preindexed | ([bd,PC,Xn],od) | 111 | 011 | X | X | X | X |
Absolute data Addressing | |||||||
Short | (xxx).W | 111 | 000 | X | X | X | - |
Long | (xxx).L | 111 | 000 | X | X | X | - |
Immediate | #<xxx> | 111 | 100 | X | X | - | - |