You are on page 1of 3

Sustavna programska potpora – vježbe

1. global _start

section .data

section .text

_start:

mov eax, 4

mov ebx, 1

int 0x80

mov eax, 1

mov ebx, 67

int 0x80

2. global _start

section .data

section .text

_start:

mov eax, 4

mov ebx, 42

int 0x80

mov eax, 1

mov ebx, 11

int 0x80

3. global _start
section .data

msg db "Danas je petak!", 0x0a

len equ $ - msg

section .text

_start:

mov eax, 4

mov ebx, 1

mov ecx, msg

mov edx, len

int 0x80

mov eax, 1

mov ebx, 0

int 0x80

4. global _start

section .data

msg db "+++++++++++++++++++++", 0x0a

msg1 db "Antonio Jovic", 0x0a

msg2 db "+++++++++++++++++++++", 0x0a

len equ $ - msg

len1 equ $- msg1

len2 equ $ - msg2

section .text

_start:

mov eax, 4

mov ebx, 1

mov ecx, msg

mov edx, len


int 0x80

mov eax, 1

mov ebx, 0

int 0x80

mov ecx, msg1

mov edx, len1

int 0x80

mov ecx, msg2

mov edx, len2

int 0x80

5. global _start

section .data

addr db "patak"

section .text

_start:

mov[addr+1], byte 'e'

mov eax, 4

mov ebx, 1

mov ecx, addr

mov edx, 5

int 0x80

mov eax, 1

mov ebx, 0

int 0x80

You might also like