aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/cmp.asm4
-rw-r--r--examples/mov.asm5
-rw-r--r--examples/subtraction.asm4
3 files changed, 9 insertions, 4 deletions
diff --git a/examples/cmp.asm b/examples/cmp.asm
new file mode 100644
index 0000000..f35ccf4
--- /dev/null
+++ b/examples/cmp.asm
@@ -0,0 +1,4 @@
+mov a, 10
+mov b, 10
+cmp a, b
+hlt
diff --git a/examples/mov.asm b/examples/mov.asm
new file mode 100644
index 0000000..4aa3c04
--- /dev/null
+++ b/examples/mov.asm
@@ -0,0 +1,5 @@
+mov a, 10
+mov b, a
+cmp a, b
+cmp a, 10
+hlt
diff --git a/examples/subtraction.asm b/examples/subtraction.asm
deleted file mode 100644
index cfc9db5..0000000
--- a/examples/subtraction.asm
+++ /dev/null
@@ -1,4 +0,0 @@
-mov a, 15
-mov b, 15
-sub a, b
-hlt