added neg and inv shortcuts

This commit is contained in:
Luxferre
2025-04-30 11:55:41 +03:00
parent 5bfcf0314c
commit 03a9a72d6e
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -199,6 +199,8 @@ The shortcut mnemonics for other operations are as follows:
* `iva` is a shortcut to `cpy 2` (indirect value assignment)
* `inc` is a shortcut to `fma 127 127` (increment)
* `mul` is a shortcut to `fma 0` (multiplication)
* `neg` is a shortcut to `sub 0 127` (negation)
* `inv` is a shortcut to `div 127` (inversion/reciprocal)
* `exp` is a shortcut to `nel 0` (natural exponent)
* `log` is a shortcut to `nel 1` (natural logarithm)
* `sin` is a shortcut to `tri 0` (sine)