1
2;--- "hello world" for Linux which uses int 80h.
3;--- assemble: jwasm -Fo=Linux1.o Linux1.asm
4;--- link:     wlink format ELF runtime linux file Linux1.o name Linux1.
5
6    .386
7    .model flat
8
9stdout    equ 1
10SYS_EXIT  equ 1
11SYS_WRITE equ 4
12
13    .data
14
15string  db 10,"Hello, world!",10
16
17    .code
18
19_start:
20
21    mov ecx, offset string
22    mov edx, sizeof string
23    mov ebx, stdout
24    mov eax, SYS_WRITE
25    int 80h
26    mov eax, SYS_EXIT
27    int 80h
28
29    end _start
30