Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ORG 100
- Loop, Load first
- Add count
- Store temp
- load sum
- addi temp
- store sum
- Load count
- add one
- store count
- Subt n
- Skipcond 400
- Jump Loop
- Load sum
- Output
- Halt
- sum, DEC 0
- first, HEX 115
- n, DEC 3
- count, DEC 0
- temp, DEC 0
- one, DEC 1
- DEC 15
- DEC 10
- DEC 25
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement