STR - sjsoftware/centurion-cpu6 GitHub Wiki

STR - Store Register to Register/Address

A 16 bit move from register to register or register to address.

Odd registers indicate register to address. The equivalent even register is used.

| Byte 1  | Byte 2  | Byte 3                    | Byte 4                   |
|---------|---------|---------------------------|--------------------------|
|    |    |    |    |                           |                          |
|  D   6  | dr   sr | literal/address high byte | literal/address low byte |
  • dr = Destination Register
  • sr = Source Register

NOTE: sr and dr are opposite to 5x instructions, possibly because this is an opposite instruction to XFR

dr sr Meaning
Even Even Register to Register
Odd Even Register to literal word following instruction
Even Odd Register to address word following instruction
Odd Odd Register to (dr + address word following instruction)