diff options
author | Patrick McHardy <kaber@trash.net> | 2011-03-03 18:44:02 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2011-03-03 18:44:02 +0100 |
commit | 1f3e92989e4b9f3e00aaf7729b3dd2f7c044667e (patch) | |
tree | 866b0bbd1d7257634098e05f33781d259614b7b6 /tests/t_scmp |
Import ASL
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'tests/t_scmp')
-rw-r--r-- | tests/t_scmp/asflags | 0 | ||||
-rw-r--r-- | tests/t_scmp/t_scmp.asm | 59 | ||||
-rw-r--r-- | tests/t_scmp/t_scmp.doc | 5 | ||||
-rwxr-xr-x | tests/t_scmp/t_scmp.ori | bin | 0 -> 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 Binary files differnew file mode 100755 index 0000000..75684f1 --- /dev/null +++ b/tests/t_scmp/t_scmp.ori |