0 Members and 3 Guests are viewing this topic.
************Byte that data will be pushed into*last filled byte of stack. Second byte to be popped*Second to last byte*....*Second byte to stack. Second to last byte that will be popped.*First byte of stack***********
0403020100
050403020100
03020100
So as a visual example, with the gui functions of DCSB libs, when you create a window or text box, it gets pushed on, and you pop it off to remove it from the screen basically?
Ah ok. so i should probably get better at z80 before using stacks too much since i wont be doing much complex math until i start making games and whatnot haha
Main: call PushStuff retPushStuff: pop ix;Do any pushing or popping you need here: push hl push bc push de;Then use this instead of a return: jp (ix)