aboutsummaryrefslogtreecommitdiff
path: root/tclasm.tcl
diff options
context:
space:
mode:
authorWojciech Kosior <kwojtus@protonmail.com>2020-09-05 18:57:00 +0200
committerWojciech Kosior <kwojtus@protonmail.com>2020-09-05 18:57:00 +0200
commit92206c93690c5658928c9f8b1324e1a455e1a453 (patch)
tree317283feedacfa01f5ad2340c20bfea3e42b86b4 /tclasm.tcl
parentf37a50d6cfe86e6f5ebe368c0868878fd72aa884 (diff)
downloadAGH-engineering-thesis-92206c93690c5658928c9f8b1324e1a455e1a453.tar.gz
AGH-engineering-thesis-92206c93690c5658928c9f8b1324e1a455e1a453.zip
add cond_jump instruction together with bench
Diffstat (limited to 'tclasm.tcl')
-rw-r--r--tclasm.tcl9
1 files changed, 9 insertions, 0 deletions
diff --git a/tclasm.tcl b/tclasm.tcl
index 1f716ee..cafe99f 100644
--- a/tclasm.tcl
+++ b/tclasm.tcl
@@ -195,3 +195,12 @@ proc div {} {
proc mul {} {
puts 0011000000000011
}
+
+
+proc _cond_jump {address_part} {
+ puts 011100001[__to_binary $address_part 7]
+}
+
+proc cond_jump {address} {
+ _with_im _cond_jump $address
+}