added nnn shortcut

This commit is contained in:
Luxferre
2025-04-30 10:33:13 +03:00
parent b4ca237ed8
commit d20c975ac2
2 changed files with 24 additions and 22 deletions
+1
View File
@@ -196,6 +196,7 @@ The shortcut mnemonics for other operations are as follows:
* `sin` is a shortcut to `tri 0` (sine)
* `cos` is a shortcut to `tri 1` (cosine)
* `atn` is a shortcut to `tri 2` (arctangent)
* `nnn` is a shortcut to `nop 0 0 0` (a short alias for NOP)
### Port input and output
+1
View File
@@ -19,6 +19,7 @@ mnemos = ['nop', 'jmp', 'iat', 'out', 'inp', 'set', 'cpy', 'fma',
# mu808 jump/function shortcuts
jmpfunc_shorts = {
'nnn': 'nop 0 0 0', # alias for nop
'ige': 'jmp 10', # indirect jump if greater than or equals to zero
'ile': 'jmp 11', # indirect jump if less than or equals to zero
'ine': 'jmp 12', # indirect jump if not equals to zero