SHARE
TWEET

Domaci za Masu

a guest Nov 12th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. adrn1=1
  2. adrn2=2
  3. n1=100
  4. n2=200
  5. m=3
  6. n=4
  7. i=5
  8. x=6
  9. y=7
  10. org 8
  11. unos:in n
  12. in m
  13. bgt m,n,kraj
  14. bgt 0,n,kraj
  15. bgt 0,m,kraj
  16. mov x,100
  17. bgt n,x,kraj
  18. bgt m,x,kraj
  19. mov adrn1,#n1
  20. mov adrn2,#n2
  21. in (adrn1),n
  22. in (adrn2),m
  23. mov i,1
  24. mov x,n
  25. mov y,m
  26. petlja:jsr pp1
  27. add adrn1,adrn1,1
  28. sub x,x,1
  29. bgt x,0,petlja
  30. beq x,0,ispis1
  31. ispis2:mov i,1
  32. out i
  33. bgt n,0,dalje1
  34. dalje1:bgt m,0,unos
  35. stop
  36. ispis1:mov i,0
  37. out i
  38. bgt n,0,dalje2
  39. dalje2:bgt m,0,unos
  40. kraj:stop
  41. dalje:add adrn2,adrn2,1
  42. sub y,y,1
  43. mov adrn1,#n1
  44. mov x,n
  45. mov i,1
  46. beq y,0,ispis2
  47. pp1:beq (adrn1),(adrn2),dalje
  48. rts
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top