Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;Ucitati n brojeva i izracunati njihov zbir
- %include "io.inc"
- section .data
- section .text
- GLOBAL CMAIN
- CMAIN:
- mov ebp, esp; for correct debugging
- mov ebx , 0
- GET_DEC 4 , eax
- inc eax
- petlja1:
- dec eax
- cmp eax , 1
- jb kraj
- GET_DEC 4 , ecx
- ADD ebx , ecx
- jmp petlja1
- kraj:
- PRINT_DEC 4 , ebx
- xor eax , eax
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement