mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-04-12 18:40:23 +08:00
test: add test code for BR 3392439
Bug report BR 3392439 test code. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
parent
e800127a46
commit
d5e7c072bd
25
test/br3392439.asm
Normal file
25
test/br3392439.asm
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user