test/br3392439.asm
raw| 1 | segment _TEXT class=CODE USE32 align=1 CPU=686 |
| 2 | |
| 3 | extern _entry |
| 4 | |
| 5 | start: |
| 6 | mov ax, 0x18 |
| 7 | mov ds, ax |
| 8 | mov es, ax |
| 9 | mov ss, ax |
| 10 | xor eax, eax |
| 11 | mov ax, 0x1234 |
| 12 | shl eax, 4 |
| 13 | add eax, 0x3000 |
| 14 | mov esp, [eax] |
| 15 | |
| 16 | call _entry |
| 17 | |
| 18 | .infloop: |
| 19 | hlt |
| 20 | jmp .infloop |
| 21 | |
| 22 | |
| 23 | global _ret_16 |
| 24 | _ret_16: |
| 25 | jmp dword 0x10:0x8000 |