Advertisement
Guest User

Untitled

a guest
Dec 16th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. ORG $0
  2. DC.L $8000
  3. DC.L start
  4.  
  5. ORG $500
  6. somW DC.W 0
  7. somB DC.B 0
  8. nb1 DC.B -80
  9. nb2 DC.B -50
  10.  
  11. nb1W DC.W 0
  12. nb2W DC.W 0
  13.  
  14. ORG $550
  15. start MOVE.B nb1,D0
  16. ADD.B nb2,D0
  17.  
  18. si BVC sinon
  19. alors MOVE.B nb1,D1
  20. EXT.W D1
  21. MOVE.W D1,nb1W
  22.  
  23. MOVE.B nb2,D2
  24. EXT.W D2
  25. MOVE.W D2,nb2W
  26.  
  27. ADD.W D1,D2
  28. MOVE.W D2,somW
  29.  
  30. BRA finsi
  31.  
  32. sinon MOVE.B D0,somB
  33.  
  34. finsi BREAK
  35.  
  36. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement