Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. Label Function
  2. Register1 <- Pop 64-bit off stack
  3. Register2 <- Pop 64-bit off stack
  4. Register3 <- Register1 + Register2
  5. push Register3 on stack // return
  6. Goto -> Pop address off stack
  7.  
  8. // Function(0, 5) this is what happens when the function is called
  9. Push address on stack
  10. Push 64-bit 0 on stack
  11. Push 64-bit 5 on stack
  12. Goto Function
  13. Pop stack (address)
  14. Pop stack into register 1
  15.  
  16. // this is just the function being called with various values
  17. Register2 <- Function(0,5)
  18. Register3 <- Function(1,5)
  19. Register4 <- Function(7,5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement