Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ORG 100
  2. Loop,   Load first
  3.     Add count
  4.         Store temp
  5.         load sum
  6.     addi temp
  7.         store sum
  8.         Load count
  9.         add one
  10.         store count
  11.         Subt n
  12.         Skipcond 400
  13.         Jump Loop
  14.     Load sum
  15.         Output
  16.     Halt
  17. sum,    DEC 0
  18. first,  HEX 115
  19. n,  DEC 3
  20. count,  DEC 0
  21. temp,   DEC 0
  22. one,    DEC 1
  23. DEC 15
  24. DEC 10
  25. DEC 25
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement