30Mar98@15:00h
Semiconductor Group
118
Version 1.2, 12.97
C166 Family Instruction Set
Addressing Modes
Long Addressing Mode
This addressing mode uses one of the four DPP registers to specify a physical 18-bit or 24-bit
address. Any word or byte data within the entire address space can be accessed with this mode.
The C167/5 devices also support an override mechanism for the DPP adressing scheme.
Note: Word accesses on odd byte addresses are not executed, but rather trigger a hardware trap.
After reset, the DPP registers are initialized in a way that all long addresses are directly
mapped onto the identical physical addresses.
Any long 16-bit address consists of two portions, which are interpreted in different ways. Bits 13...0
specify a 14-bit data page offset, while bits 15...14 specify the Data Page Pointer (1 of 4), which is
to be used to generate the physical 18-bit or 24-bit address (see figure below).
Figure 6-1: Interpretation of a 16-bit Long Address
The SAB 8XC166(W) devices support an address space of up to 256 KByte, while the C167/5
devices support an address space of up to 16 MByte, so only the lower two or ten bits (respectively)
of the selected DPP register content are concatenated with the 14-bit data page offset to build the
physical address.
The long addressing mode is referred to by the mnemonic ‘mem’.
Mnemonic
Physical Address
Long Address Range Scope of Access
mem
(DPP0)
|| mem
∧
3FFF
H
(DPP1)
|| mem
∧
3FFF
H
(DPP2)
|| mem
∧
3FFF
H
(DPP3)
|| mem
∧
3FFF
H
0000
H
...3FFF
H
4000
H
...7FFF
H
8000
H
...BFFF
H
C000
H
...FFFF
H
Any Word or Byte
mem
pag
|| mem
∧
3FFF
H
0000
H
...FFFF
H
(14-bit) Any Word or Byte
mem
seg
|| mem
0000
H
...FFFF
H
(16-bit) Any Word or Byte
0
15
14 13
16-bit Long Address
DPP0
DPP1
DPP2
DPP3
14-bit page offset
18/24-bit Physical Address