;HelloWorld_DOS.asm by nasm
nasm HelloWorld_DOS.asm -fbin -o HelloWorld.com
=================================================
; FILE: HelloWOrld_DOS.asm
; AUTHOR: shenan; DATE: 2009.10.06org 100h
section .textstart: mov ah,9 mov dx,msg int 21h retsection .datamsg db "HelloWorld! $"section .bss=================================================
; HelloWorld_LINUX.asm by nasm
nasm -f elf HelloWorld_LINUX.asm
gcc -o hello hello.o
=================================================
; FILE: HelloWOrld_LINUX.asm
; AUTHOR: shenan; DATE: 2009.10.06section .text
global mainmain:mov eax,4 ;4 callmov ebx,1 ;stdoutmov ecx,msg ;ecx is msg addressmov edx,14 ;edx is msg lengthint 80h ;print msgmov eax,1 ;1 callint 80h ;endmsg:db "Hello world!",0ah,0dh