Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- INP num1
- STA num1
- INP num2
- STA num2
- loop LDA num1
- BRZ end
- SUB num2
- STA num1
- LDA answer
- ADD one
- STA answer
- BRA loop
- end LDA answer
- OUT
- SUB answer
- STA answer
- HLT
- num1 DAT
- num2 DAT
- answer DAT 0
- one DAT 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement