summaryrefslogtreecommitdiff
path: root/test/andbyte.asm
diff options
context:
space:
mode:
Diffstat (limited to 'test/andbyte.asm')
-rw-r--r--test/andbyte.asm15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/andbyte.asm b/test/andbyte.asm
new file mode 100644
index 0000000..3d3b1c1
--- /dev/null
+++ b/test/andbyte.asm
@@ -0,0 +1,15 @@
+;Testname=test; Arguments=-fbin -oandbyte.bin; Files=stdout stderr andbyte.bin
+;Testname=otest; Arguments=-Ox -fbin -oandbyte.bin; Files=stdout stderr andbyte.bin
+
+ bits 16
+
+ add sp, byte -0x10
+ add sp, -0x10
+ adc sp, byte -0x10
+ adc sp, -0x10
+ and sp, byte -0x10
+ and sp, -0x10
+ sbb sp, byte -0x10
+ sbb sp, -0x10
+ sub sp, byte -0x10
+ sub sp, -0x10