aboutsummaryrefslogtreecommitdiff
path: root/tclasm.tcl
diff options
context:
space:
mode:
authorWojciech Kosior <kwojtus@protonmail.com>2020-10-05 14:23:47 +0200
committerWojciech Kosior <kwojtus@protonmail.com>2020-10-05 14:24:00 +0200
commit7ddb4265d30ef30df6e7098c979334109378357c (patch)
tree95e9f5785ba5f46c8a362d6600e843363ac1fcf1 /tclasm.tcl
parent7a61f213fb9be8ab7f9bd0fb33940b21fa143b05 (diff)
downloadAGH-engineering-thesis-7ddb4265d30ef30df6e7098c979334109378357c.tar.gz
AGH-engineering-thesis-7ddb4265d30ef30df6e7098c979334109378357c.zip
fixes, add_sp instruciton and translation of br 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 000f2ca..6a97b1f 100755
--- a/tclasm.tcl
+++ b/tclasm.tcl
@@ -266,6 +266,15 @@ proc jump {address} {
}
+proc _add_sp {number_part} {
+ puts 010000010[__to_binary $number_part 7]
+}
+
+proc add_sp {number} {
+ _with_im _add_sp $number
+}
+
+
# Instructions, that grow stack
proc tee {} {