BITS 32 org 0 dd 0xfeedface dd 7 ; cputype l2: push ecx int 0x80 push edi ;; dd 3 ; cpusubtype dd 2 ; filetype dd 2 ; ncmds dd 80+8 ; sizeofcmds exit: push edi push edi jmp short l2 ;; dd 0 ; flags dd 1 dd 8 dd 5 dd 80 ; size dd 1 ; flaver dd 16 ; count dd 0 ; vmaddr, eax dd 4 ; vmsize, ebx dd 0 ; fileoff, ecx ;UNIXTHREAD dd done ; filesize, edx dd 1 ; edi dd hell ; esi dd 14 ; ebp dd 0 ; esp dd 0 ; ss code: dec esi dec esi dec esi push dword code ;; dd 0 ; eflags ;; dd code ; eip l1: pusha push ebx jmp short l2 ;; dd 0 ; cs dd 0 ; ds dd 0 ; es dd 0 ; fs dd 0 ; gs hello: db "Hel" hell: db "lo, world!", 10 done: