diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2018-09-24 10:07:33 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2018-09-24 10:07:33 +0200 |
commit | 0edac98af9ced6ae42059f2989a5fe4bd4c75d27 (patch) | |
tree | 22dee6ae64410f1055aacc775800da4c5d214034 /miniasm | |
parent | cdfa980cbf43e70123b1ec42becc58e657869259 (diff) | |
download | compilertests-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.asm | 13 |
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: |