aboutsummaryrefslogtreecommitdiff
path: root/tclasm.tcl
diff options
context:
space:
mode:
authorWojciech Kosior <kwojtus@protonmail.com>2020-10-06 13:49:30 +0200
committerWojciech Kosior <kwojtus@protonmail.com>2020-10-06 13:49:30 +0200
commit797b5825d2179e3bab22643a6873dc29800e79eb (patch)
treea250f3b74a4fb5cab95e316bebd0485f71c35965 /tclasm.tcl
parent1741bee182f115d899bd31642b32f70b0c7ed32f (diff)
downloadAGH-engineering-thesis-797b5825d2179e3bab22643a6873dc29800e79eb.tar.gz
AGH-engineering-thesis-797b5825d2179e3bab22643a6873dc29800e79eb.zip
add relational operations to stack machine
Diffstat (limited to 'tclasm.tcl')
-rwxr-xr-xtclasm.tcl45
1 files changed, 45 insertions, 0 deletions
diff --git a/tclasm.tcl b/tclasm.tcl
index 6a97b1f..90adda5 100755
--- a/tclasm.tcl
+++ b/tclasm.tcl
@@ -332,6 +332,51 @@ proc drop {} {
}
+proc eq {} {
+ puts 0011000000000111
+}
+
+
+proc lt {} {
+ puts 0011000000001000
+}
+
+
+proc ult {} {
+ puts 0011000000001001
+}
+
+
+proc le {} {
+ puts 0011000000001010
+}
+
+
+proc ule {} {
+ puts 0011000000001011
+}
+
+
+proc gt {} {
+ puts 0011000000001100
+}
+
+
+proc ugt {} {
+ puts 0011000000001101
+}
+
+
+proc ge {} {
+ puts 0011000000001110
+}
+
+
+proc uge {} {
+ puts 0011000000001111
+}
+
+
proc ret {} {
puts 0011000010000000
}