Advertisement
STANAANDREY

lmc square (a^2)

Oct 7th, 2024
13
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. STA cnt
  4. LDA ZERO
  5. STA res
  6. LOOP LDA cnt
  7. BRZ END
  8. LDA res
  9. ADD a
  10. STA res
  11. LDA cnt
  12. SUB ONE
  13. STA cnt
  14. BRA LOOP
  15. END LDA res
  16. OUT
  17. HLT
  18. a DAT
  19. cnt DAT
  20. res DAT
  21. ZERO DAT 0
  22. ONE DAT 1
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement