base_arith
Perform integer and bitwise arithmetic (add, subtract, multiply, divide, AND, OR, XOR, XNOR, NOT, negate) on 32-bit values in base 2, 8, 10, or 16.
Instructions
When: integer/bitwise arithmetic in a chosen base (32-bit), not floating evaluate. Params: op=add|sub|mul|div|and|or|xor|xnor|not|neg; a; b (except not/neg); base=2|8|10|16. Example: op="add", a="A", b="5", base=16.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | No | ||
| op | Yes | ||
| base | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |