Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Label Function
- Register1 <- Pop 64-bit off stack
- Register2 <- Pop 64-bit off stack
- Register3 <- Register1 + Register2
- push Register3 on stack // return
- Goto -> Pop address off stack
- // Function(0, 5) this is what happens when the function is called
- Push address on stack
- Push 64-bit 0 on stack
- Push 64-bit 5 on stack
- Goto Function
- Pop stack (address)
- Pop stack into register 1
- // this is just the function being called with various values
- Register2 <- Function(0,5)
- Register3 <- Function(1,5)
- Register4 <- Function(7,5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement