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
@@ -39,6 +39,8 @@ jmpfunc_shorts = {
'iva': 'cpy 2', # indirect value assignment
'inc': 'fma 127 127', # increment
'mul': 'fma 0', # multiplication
'neg': 'sub 0 127', # negation
'inv': 'div 127', # inversion/reciprocal
'exp': 'nel 0', # natural exponent
'log': 'nel 1', # natural logarithm
'sin': 'tri 0', # sine