Pushpops
Hello everyone! This time, I actually logged a normal amount of time! Let’s dive in!
Loading Shipments
I finally finished up the LD instruction! once I got through the weird targets, everything was smooth sailing.
Stack Overflow
Once LD was done, it was time to implement the stack. If you don’t know what (a/the) stack is, reference the wikipedia screenshot. For the GB, the two methods are PUSH and POP, and the stack actually goes down in memory from the end of the memory bus rather than from the beginning.
Dear Functional Bros
When I finished implementing the stack, which I though was going to be a lot harder, it was time to add functions to it. This was pretty simple: a CALL instr. that jumps to a point and puts the place where it left off on the stack and a RET instr. that goes to the last location on the stack.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.