Displacement addressing mode creates the effective address by adding an
immediate to a general-purpose register. CAVA address displacements
come in two flavors: 8-bit unsigned, which fits in a one-parcel
instruction, and 24-bit signed, which fits in a two-parcel instruction.
The compiler tries to generate the short form whenever possible
(e.g. Store Word instead of Store Displacement Word).
| Mnemonic |
Format |
Unit |
Semantics |
Description |
| luw |
fM |
mu |
x.i = uword(y.i+disp ) zrx |
Load Unsigned Word |
| lduw |
fD |
mu |
x.i = uword(y.i+displace) zrx |
Load Displacement Unsigned Word |
| luh |
fM |
mu |
x.i = uhalf(y.i+disp ) zrx |
Load Unsigned Halfword |
| lduh |
fD |
mu |
x.i = uhalf(y.i+displace) zrx |
Load Displacement Unsigned Halfword |
| lub |
fM |
mu |
x.i = ubyte(y.i+disp ) zrx |
Load Unsigned Byte |
| ldub |
fD |
mu |
x.i = ubyte(y.i+displace) zrx |
Load Displacement Unsigned Byte |