Advertisement
Guest User

Untitled

a guest
Dec 13th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. move DPTR, #0001h
  2. movx a, @DPTR
  3. inc dptr
  4. mov r1, a
  5. movx a, @DPTR
  6. inc dptr
  7. mov r2, a
  8. movx a, @DPTR
  9. inc dptr
  10. mov r3, a
  11. movx a, @DPTR
  12. mov r4, a
  13.  
  14. mov r1, a
  15. mov r3,b
  16. MUL ab
  17. mov r5, a
  18. mov r6, b
  19.  
  20. mov a, r2
  21. mov b, r4
  22. MUL ab
  23. mov r7, a
  24. mov r8, b
  25.  
  26. mov a, r1
  27. mov b, r4
  28. MUL ab
  29. add b,r7
  30. jnc nocarry
  31. inc r6
  32. jnc nocarry
  33. inc r5
  34. nocarry:mov r7, b
  35. add a, r6
  36. jnc nocarry
  37. inc r5
  38. nocarry:mov r6, a
  39.  
  40. mov a, r2
  41. mov b, r4
  42. MUL ab
  43. add b, r8
  44. jnc nocarry
  45. inc r7
  46. jnc nocarry
  47. inc r6
  48. jnc nocarry
  49. inc r5
  50. nocarry:mov r8, b
  51. add a, r7
  52. jnc nocarry
  53. inc r6
  54. jnc nocarry
  55. inc r1
  56. nocarry:mov r7, a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement