Gameboy Development Forum

Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)

You are not logged in.

#1 2018-12-18 14:07:49

Tomi
Member
From: France
Registered: 2018-04-30
Posts: 29

rgbds Section Stack (PUSHS and POPS

Hello all,

I cannot seize the purpose of section stack in RGBDS. (PUSHS and POPS directives) Can somebody please explain it, if possible with a real-life example showing how it works exactly ?
Thanks for your help.

regards,

Tomi

Offline

 

#2 2018-12-19 01:20:58

ISSOtm
Member
From: Somewhere in Echo RAM
Registered: 2017-04-18
Posts: 160
Website

Re: rgbds Section Stack (PUSHS and POPS

I'm currently using it in auto-generated code, because the data header and contents don't need to be contiguous, but I define them in a specific order to improve readability.


The French Lord Of Laziness.
Legend of Zelda and Undertale fan, I also tend to break Pokémon R/B/Y a little too much.

Twitter | Me on GCL | Discord : ISSOtm#9015 | Skype : isso.tm (I don't login anymore)

Offline

 

#3 2018-12-20 01:46:04

Tomi
Member
From: France
Registered: 2018-04-30
Posts: 29

Re: rgbds Section Stack (PUSHS and POPS

Ok, it is clear now, merci

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson