The immediate

You will learn

How a 15-bit signed immediate is clamped, stored and read back.

An immediate lives in 15 bits of two's complement: -16384 to 16383. The spec clamps anything outside to the edge rather than wrapping it, so 20000 becomes 16383, and the field round-trips through encode and decode. The lesson spec is the t27a assembler and disassembler, which write and read the same table both ways.

Open the interactive lesson →