1segment _TEXT class=CODE USE32 align=1 CPU=686 2 3extern _entry 4 5start: 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 23global _ret_16 24_ret_16: 25 jmp dword 0x10:0x8000 26