Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .data
- hello_str:
- .string "Hello, world!\n"
- .text
- .globl main
- main:
- // системний виклик write
- movl $4, %eax // номер виклику — 4
- movl $1, %ebx // запис до STDOUT (fd 1)
- movl $hello_str, %ecx // що пишемо?
- movl $14, %edx // довжина рядку
- int $0x80 // пререривання 0x80
- // системний виклик exit
- movl $1, %eax // номер виклику — 1
- movl $0, %ebx // код повернення — 0
- int $0x80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement