Advertisement
Guest User

imt 539 DELUXE

a guest
Mar 20th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. *-----------------------------------------------------------
  2. * Title : Zadatak 2
  3. * Written by : Andrej Lovrić
  4. * Date : 20.3.2019
  5. * Description:
  6. *-----------------------------------------------------------
  7. ORG $1000
  8. START:
  9.  
  10. LEA UPIT1, A1
  11. MOVE.B #19, D1
  12. MOVE.B #1, D0
  13. TRAP #15
  14.  
  15. MOVE.B #4, D0
  16. TRAP #15
  17. MOVE.B D1, D7
  18.  
  19. LEA UPIT2, A1
  20. MOVE.B #20, D1
  21. MOVE.B #1, D0
  22. TRAP #15
  23.  
  24. MOVE.B #4, D0
  25. TRAP #15
  26. MOVE.B D1, D6
  27.  
  28. LEA RJ1, A1
  29. MOVE.B #7, D1
  30. MOVE.B #1, D0
  31. TRAP #15
  32.  
  33. MOVE.B D6, D5
  34. ADDX D7, D6
  35. MOVE.B D6, D1
  36. MOVE.B #3, D0
  37. TRAP #15
  38.  
  39. LEA NOVIRED, A1
  40. MOVE.B #0, D1
  41. MOVE.B #0, D0
  42. TRAP #15
  43.  
  44. LEA RJ2, A1
  45. MOVE.B #9, D1
  46. MOVE.B #1, D0
  47. TRAP #15
  48.  
  49. MULU D7, D5
  50. MOVE.B D5, D1
  51. MOVE.B #3, D0
  52. TRAP #15
  53.  
  54. SIMHALT
  55.  
  56. UPIT1 DC.B 'Unesite prvi broj: '
  57. UPIT2 DC.B 'Unesite drugi broj: '
  58. RJ1 DC.B 'Zbroj: '
  59. RJ2 DC.B 'Umnozak: '
  60. NOVIRED DC.B ''
  61.  
  62.  
  63. END START
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement