aboutsummaryrefslogtreecommitdiffstats
path: root/tests/t_scmp
diff options
context:
space:
mode:
authorfishsoupisgood <github@madingley.org>2019-05-27 02:41:51 +0100
committerfishsoupisgood <github@madingley.org>2019-05-27 02:41:51 +0100
commit333b605b2afd472b823aeda0adf0e8b1ea9843c0 (patch)
treebc8f581317897e2e53f278f1716b4471fcdccd4f /tests/t_scmp
downloadasl-333b605b2afd472b823aeda0adf0e8b1ea9843c0.tar.gz
asl-333b605b2afd472b823aeda0adf0e8b1ea9843c0.tar.bz2
asl-333b605b2afd472b823aeda0adf0e8b1ea9843c0.zip
initial commit from asl-1.41r8.tar.gzHEADmaster
Diffstat (limited to 'tests/t_scmp')
-rw-r--r--tests/t_scmp/asflags0
-rw-r--r--tests/t_scmp/t_scmp.asm59
-rw-r--r--tests/t_scmp/t_scmp.doc5
-rwxr-xr-xtests/t_scmp/t_scmp.oribin0 -> 68 bytes
4 files changed, 64 insertions, 0 deletions
diff --git a/tests/t_scmp/asflags b/tests/t_scmp/asflags
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/t_scmp/asflags
diff --git a/tests/t_scmp/t_scmp.asm b/tests/t_scmp/t_scmp.asm
new file mode 100644
index 0000000..0fdc8ca
--- /dev/null
+++ b/tests/t_scmp/t_scmp.asm
@@ -0,0 +1,59 @@
+ cpu sc/mp
+
+ lde
+ xae
+ ane
+ ore
+ xre
+ dae
+ ade
+ cae
+
+ sio
+ sr
+ srl
+ rr
+ rrl
+
+ halt
+ ccl
+ scl
+ dint
+ ien
+ csa
+ cas
+ nop
+
+ ldi 0x12
+ ani 0x23
+ ori 0x34
+ xri 0x45
+ dai 0x56
+ adi 0x67
+ cai 0x78
+ dly 0x89
+
+ xpal pc
+ xpah p2
+ xppc p1
+
+ ld e(pc)
+ st @e(p2)
+ and 10(p1)
+ or @-20(p3)
+ xor vari
+vari: dad -30(p2)
+ add @40(p1)
+ cad vari
+
+ jmp vari
+ jp 10(p2)
+ jz vari
+ jnz vari
+
+ ild vari
+ dld -5(p2)
+
+; org 0xfff
+; ldi 0x20
+
diff --git a/tests/t_scmp/t_scmp.doc b/tests/t_scmp/t_scmp.doc
new file mode 100644
index 0000000..8c863b8
--- /dev/null
+++ b/tests/t_scmp/t_scmp.doc
@@ -0,0 +1,5 @@
++------------------------- Test Application SCMP ----------------------------+
+| |
+| This is a (synthetic) test of the SC/MP code generator |
+| |
++----------------------------------------------------------------------------+
diff --git a/tests/t_scmp/t_scmp.ori b/tests/t_scmp/t_scmp.ori
new file mode 100755
index 0000000..75684f1
--- /dev/null
+++ b/tests/t_scmp/t_scmp.ori
Binary files differ