diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2017-09-27 14:25:44 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2017-09-27 14:25:44 -0700 |
commit | d5e7c072bde3617a19b397b73bbaa3a50f425c33 (patch) | |
tree | bdf22b284655b34d4f75cd5b3832a2c9e83adbbd | |
parent | e800127a467f860bf413d1414ad2e1d9cdf55b2d (diff) | |
download | nasm-d5e7c072bde3617a19b397b73bbaa3a50f425c33.tar.gz |
test: add test code for BR 3392439
Bug report BR 3392439 test code.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r-- | test/br3392439.asm | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/br3392439.asm b/test/br3392439.asm new file mode 100644 index 00000000..1af47084 --- /dev/null +++ b/test/br3392439.asm @@ -0,0 +1,25 @@ +segment _TEXT class=CODE USE32 align=1 CPU=686 + +extern _entry + +start: + mov ax, 0x18 + mov ds, ax + mov es, ax + mov ss, ax + xor eax, eax + mov ax, 0x1234 + shl eax, 4 + add eax, 0x3000 + mov esp, [eax] + + call _entry + +.infloop: + hlt + jmp .infloop + + +global _ret_16 +_ret_16: + jmp dword 0x10:0x8000 |