summaryrefslogtreecommitdiff
path: root/miniasm
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-09-24 10:07:33 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2018-09-24 10:07:33 +0200
commit0edac98af9ced6ae42059f2989a5fe4bd4c75d27 (patch)
tree22dee6ae64410f1055aacc775800da4c5d214034 /miniasm
parentcdfa980cbf43e70123b1ec42becc58e657869259 (diff)
downloadcompilertests-0edac98af9ced6ae42059f2989a5fe4bd4c75d27.tar.gz
compilertests-0edac98af9ced6ae42059f2989a5fe4bd4c75d27.tar.bz2
added test9.asm exmaple for miniasm/miniemu (load, store mem, not working)
Diffstat (limited to 'miniasm')
-rw-r--r--miniasm/test9.asm13
1 files changed, 13 insertions, 0 deletions
diff --git a/miniasm/test9.asm b/miniasm/test9.asm
new file mode 100644
index 0000000..aac3818
--- /dev/null
+++ b/miniasm/test9.asm
@@ -0,0 +1,13 @@
+; test8 - subroutines, saving registers to the stack
+
+begin:
+ mov A, 7
+ mov B, 8
+ mov ax, A
+ mov bx, B
+ add ax, bx
+end:
+ hlt
+
+A:
+B: