diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-10-08 23:30:41 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-10-08 23:30:41 -0700 |
commit | c3ba3acf70cb9d1ea8c52da3b4024ffb8da285b2 (patch) | |
tree | ae1e95c84e7e80ac1709fe6219c48fe70ffb693b | |
parent | ff6e12da50733794235bf830add135e50b88f999 (diff) | |
download | nasm-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.asm | 17 |
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 |