diff options
| author | Mel <einebeere@gmail.com> | 2022-07-12 01:30:42 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2022-07-12 01:30:42 +0200 |
| commit | c61e995b316ba3382798492b03ab7d5a60002237 (patch) | |
| tree | b5a097066bb7f56692600b0ace454413ff800665 | |
| parent | ff1372bafb279193b00ac7563eb0d04cac930ab0 (diff) | |
| download | jinx-c61e995b316ba3382798492b03ab7d5a60002237.tar.zst jinx-c61e995b316ba3382798492b03ab7d5a60002237.zip | |
Add new binary ops to decompiler
| -rw-r--r-- | pkg/lang/vm/text/decompiler.go | 7 |
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: |
