Alright I have a question about the GAME BOY and/or the Z80 PROCESSOR.

I am using the Z80 stack instructions for the first time. In this demo, every time I step forward 1 frame, 1 value is pushed to the Z80 stack. You can see in the upper right the SP, bottom right the end of memory, bottom left the Game Boy screen.

I expect that the stack will grow up from the end of memory. But bafflingly, It's growing up "from the end". It appears each frame the *bottom stack value* moves back in memory…

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/mcc/statuses/115838977413331880 on your instance and quote it. (Note that quoting is not supported in Mastodon.)