Guest User

Untitled

a guest
May 22nd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. def sum(ptr, n, a)
  2. n ? sum(ptr, n-1, a + ptr[n-1]) : a
  3.  
  4. ifz n goto L
  5. r1 = r1 - 1
  6. r4 = r1 - 1 # without CSE
  7. r3 = ptr[r4]
  8. r2 = r2 + r3
  9. goto 0 # loopification
  10. L:
  11. r0 = r2
  12. return
Add Comment
Please, Sign In to add comment