Wrapping arithmetic lets CHIP-8 instructions add or subtract values even when the result overflows. In Zig, +% makes wrapping addition explicit; -% and *% provide wrapping subtraction and multiplication. For overflow-aware arithmetic, @addWithOverflow and @subWithOverflow return the wrapped result and an overflow bit. section 6.5.4
Table 6.3 More register instructions
| Mnemonic | Description |
|
Add a constant to a register, wrapping on overflow. |
|
Set register |
|
Set register |
|
Set register |
|
Set register |
|
Set register |
|
Set register |
See wrapping register addition in opcode 7XKK, alongside other register instructions. section 6.5.4



