Expand description

Arithmetic subcodes

Instructions from the arithmetic category are parsed like so:

11 xxx x xx  dddddddd  ffffffff  ssssssss
|/ \ / | \|  +-------  +-------  +-------
|   |  |  |  |         |         |
|   |  |  |  |         |         |
|   |  |  |  |         |         +-- the second source operand (wildcard or register depending on bit 5)
|   |  |  |  |         +-- first source operand (wildcard or register depending on bit 5)
|   |  |  |  +-- the destination operand (always interpreted as a register)
|   |  |  +-- the type of the wildcard source operand
|   |  +-- which source operand is a wildcard
|   +-- arithmetic operation type subcode
+-- super code (always 0b_11 for arithmetic)

Structs

Enums

Arithmetic sub-opcode type (bits 2..5)

Functions

Type Definitions

Whether the first source or the second source is a wildcard (bit 5)

How to interpret the wildcard operand (bits 6..8)