aboutsummaryrefslogtreecommitdiff
path: root/tclasm.tcl
diff options
context:
space:
mode:
authorWojciech Kosior <kwojtus@protonmail.com>2020-10-03 21:45:24 +0200
committerWojciech Kosior <kwojtus@protonmail.com>2020-10-05 10:13:38 +0200
commit7a61f213fb9be8ab7f9bd0fb33940b21fa143b05 (patch)
tree1bd5beab68c778d4d3a2543cf3661bfcb23445c2 /tclasm.tcl
parentc548c0ce5b2e7ca2784257966ebdd386e1f31218 (diff)
downloadAGH-engineering-thesis-7a61f213fb9be8ab7f9bd0fb33940b21fa143b05.tar.gz
AGH-engineering-thesis-7a61f213fb9be8ab7f9bd0fb33940b21fa143b05.zip
fixes, conditional if-not jump and translation of if-else instruction from wasm
Diffstat (limited to 'tclasm.tcl')
-rwxr-xr-xtclasm.tcl9
1 files changed, 9 insertions, 0 deletions
diff --git a/tclasm.tcl b/tclasm.tcl
index 0dec4b0..000f2ca 100755
--- a/tclasm.tcl
+++ b/tclasm.tcl
@@ -337,5 +337,14 @@ proc cond_jump {address} {
}
+proc _cond_jump_n {address_part} {
+ puts 011100010[__to_binary $address_part 7]
+}
+
+proc cond_jump_n {address} {
+ _with_im _cond_jump_n $address
+}
+
+
# translate instructions in the file given as command line argument
source [lindex $argv 0]