aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2022-07-12 01:30:42 +0200
committerMel <einebeere@gmail.com>2022-07-12 01:30:42 +0200
commitc61e995b316ba3382798492b03ab7d5a60002237 (patch)
treeb5a097066bb7f56692600b0ace454413ff800665 /pkg
parentff1372bafb279193b00ac7563eb0d04cac930ab0 (diff)
downloadjinx-c61e995b316ba3382798492b03ab7d5a60002237.tar.zst
jinx-c61e995b316ba3382798492b03ab7d5a60002237.zip
Add new binary ops to decompiler
Diffstat (limited to 'pkg')
-rw-r--r--pkg/lang/vm/text/decompiler.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkg/lang/vm/text/decompiler.go b/pkg/lang/vm/text/decompiler.go
index aca024c..b3c8bb4 100644
--- a/pkg/lang/vm/text/decompiler.go
+++ b/pkg/lang/vm/text/decompiler.go
@@ -59,10 +59,15 @@ func (d *Decompiler) decompileInstruction(bc code.Raw) (string, code.Raw) {
code.OpAnchorType,
code.OpAdd,
code.OpSub,
+ code.OpMul,
+ code.OpDiv,
code.OpMod,
- code.OpIndex,
+ code.OpEq,
code.OpLt,
+ code.OpGt,
code.OpLte,
+ code.OpGte,
+ code.OpIndex,
code.OpRet,
code.OpTempArrLen,
code.OpTempArrPush: