Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #Sprawdzanie czy carry_flag = 1; jak tak to ustawiam CF
  2. movl carry_flag, %ecx
  3. cmpl $0, %ecx
  4. jne ustaw_cf
  5. kontynuuj:
  6.  
  7. movl indeks, %ecx
  8. adcl %eax, wynik_mnozenia(,%ecx,4)
  9. decl indeks
  10. movl indeks, %ecx
  11. adcl %edx, wynik_mnozenia(,%ecx,4)
  12.  
  13. #sprawdzam czy po dodawaniu jest CF, jak tak to ustawiam carry_flag
  14. jc ustaw_flage_cf
  15. kontynuuj_2:
  16.  
  17. #a tak wyglądają ustaw_cf i ustaw_flage_cf
  18.  
  19. ustaw_cf:
  20. movl $0, carry_flag
  21. stc
  22. jmp kontynuuj
  23.  
  24. ustaw_flage_cf:
  25. movl $1, carry_flag
  26. jmp kontynuuj_2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement