study_public/asm1/lab1/nasm.asm
2020-12-19 17:08:33 +03:00

16 lines
389 B
NASM

section .data
s: db 'HELLO WORLD', 10 ; 10 = '\n'
section .text
global _start ; adding _start name to object code
_start:
mov eax, 4 ; system call 'write'
mov ebx, 1 ; write to stdout
mov ecx, s ; string adr
mov edx, 12 ; string len
int 80h
mov eax, 1 ; system call 'exit'
mov ebx, 0 ; exit code
int 80h