Advertisement
STANAANDREY

lmc multiply

Oct 7th, 2024
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. INP
  2. STA a
  3. INP
  4. STA b
  5. LDA ZERO
  6. STA res
  7. LOOP LDA b
  8. BRZ END
  9. LDA res
  10. ADD a
  11. STA res
  12. LDA b
  13. SUB ONE
  14. STA b
  15. BRA LOOP
  16. END LDA res
  17. OUT
  18. HLT
  19. a DAT
  20. b DAT
  21. res DAT
  22. ZERO DAT 0
  23. ONE DAT 1
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement