summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-10-08 23:30:41 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-10-08 23:30:41 -0700
commitc3ba3acf70cb9d1ea8c52da3b4024ffb8da285b2 (patch)
treeae1e95c84e7e80ac1709fe6219c48fe70ffb693b
parentff6e12da50733794235bf830add135e50b88f999 (diff)
downloadnasm-c3ba3acf70cb9d1ea8c52da3b4024ffb8da285b2.tar.gz
test/pushseg.asm: test for push/pop of segment registers
Simple test for push/pop of segment registers. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--test/pushseg.asm17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/pushseg.asm b/test/pushseg.asm
new file mode 100644
index 00000000..a8d88c49
--- /dev/null
+++ b/test/pushseg.asm
@@ -0,0 +1,17 @@
+;Testname=test; Arguments=-fbin -opushseg.bin; Files=stdout stderr pushseg.bin
+
+ bits 16
+
+ push cs
+ push ds
+ push es
+ push ss
+ push fs
+ push gs
+
+ pop gs
+ pop fs
+ pop ss
+ pop es
+ pop ds
+ ; pop cs ; 8086 only, not implemented