Advertisement
FUnneR

Zadatak 1 - V1

Mar 8th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Suma prvih N prvih brojeva
  2. #Nemanja Komadina, PR140/2015
  3. .section .data
  4. .section .text
  5. .globl main
  6. main:
  7.  
  8.     movl $5, %eax
  9.     movl $0, %ecx
  10. ponovo:
  11.     addl %eax, %ecx
  12.     subl $1, %eax
  13.     cmpl $0, %eax
  14.     ja ponovo
  15.     cmpl $0, %eax
  16.     je kraj
  17.  
  18. kraj:
  19.     movl $1, %eax
  20.     int $0x80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement