From 7ddb4265d30ef30df6e7098c979334109378357c Mon Sep 17 00:00:00 2001 From: Wojciech Kosior Date: Mon, 5 Oct 2020 14:23:47 +0200 Subject: fixes, add_sp instruciton and translation of br instruction from wasm --- tclasm.tcl | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tclasm.tcl') 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 {} { -- cgit v1.2.3