Anonymous user
GB Programming: Difference between revisions
m
→A stack? Can you eat that?: Changed the first three words. Pointless but more consistent with the title, I guess.
>ISSOtm (→Negative numbers: Changed ALL the ranges, the dashes could be mistaken for minus signs.) |
>ISSOtm m (→A stack? Can you eat that?: Changed the first three words. Pointless but more consistent with the title, I guess.) |
||
Line 632:
==Stacks==
===A stack? Can you eat that?===
No
In our case, we will do it by saving the top of the stack as a memory address. This value is called the ''stack pointer''. Here is an example, with the stack growing to the right :
Line 666:
|$00||$03||$4F||$C0||$7C||$2A||??||??||??||??||??||??||??||??||??||??
|}
===Coding a stack===
|