%define stdin 0 %define stdout 1 %define stderr 2 %define sysnosys 0 %define sysexit 1 %define sysfork 2 %define sysread 3 %define syswrite 4 section .data msg db 'hello world', 0Ah hbytes equ $-msg section .text access_kernel: int 80h ret global hello hello: enter 0,0 ; pusha ; push dword hbytes ; push dword msg ; push stdout mov eax, syswrite mov ebx, stdout mov ecx, msg mov edx, hbytes call access_kernel ; popa mov eax, 0 leave ret