From 93de4d794a2d527fd79b7e92a87842df6b771fcc Mon Sep 17 00:00:00 2001 From: Luxferre Date: Wed, 30 Apr 2025 10:37:46 +0300 Subject: [PATCH] added mul shortcut --- README.md | 1 + mu808asm.py | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index b76d280..a16abea 100644 --- a/README.md +++ b/README.md @@ -191,6 +191,7 @@ The shortcut mnemonics for other operations are as follows: * `dia` is a shortcut to `cpy 0` (direct integer assignment) * `dva` is a shortcut to `cpy 1` (direct value assignment) * `iva` is a shortcut to `cpy 2` (indirect value assignment) +* `mul` is a shortcut to `fma 0` (multiplication) * `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) diff --git a/mu808asm.py b/mu808asm.py index c97fdaf..76f4a8e 100755 --- a/mu808asm.py +++ b/mu808asm.py @@ -37,6 +37,7 @@ jmpfunc_shorts = { 'dia': 'cpy 0', # direct integer assignment 'dva': 'cpy 1', # direct value assignment 'iva': 'cpy 2', # indirect value assignment + 'mul': 'fma 0', # multiplication 'exp': 'nel 0', # natural exponent 'log': 'nel 1', # natural logarithm 'sin': 'tri 0', # sine