aboutsummaryrefslogtreecommitdiff
path: root/tests/stack_machine_tee/instructions.s.tcl
diff options
context:
space:
mode:
authorWojciech Kosior <kwojtus@protonmail.com>2020-09-05 16:43:32 +0200
committerWojciech Kosior <kwojtus@protonmail.com>2020-09-05 16:43:32 +0200
commit40a11a7155bc474d85ded1fef183baae2007f101 (patch)
treeee101c1e2ba2be097c5ff81b321247fb15edd882 /tests/stack_machine_tee/instructions.s.tcl
parent572c9d71cf66bb2097bce384b8cb3899af0b8473 (diff)
downloadAGH-engineering-thesis-40a11a7155bc474d85ded1fef183baae2007f101.tar.gz
AGH-engineering-thesis-40a11a7155bc474d85ded1fef183baae2007f101.zip
add tee instruction together with bench
Diffstat (limited to 'tests/stack_machine_tee/instructions.s.tcl')
-rwxr-xr-xtests/stack_machine_tee/instructions.s.tcl14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/stack_machine_tee/instructions.s.tcl b/tests/stack_machine_tee/instructions.s.tcl
new file mode 100755
index 0000000..98117c7
--- /dev/null
+++ b/tests/stack_machine_tee/instructions.s.tcl
@@ -0,0 +1,14 @@
+#!/usr/bin/env tclsh
+
+source tclasm.tcl
+
+### All three stores should write the hABCDEF
+
+set_sp 0
+const hABCDEF
+tee
+store h000100
+tee
+store h000200
+store h000300
+halt