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.

Ads

#1 2018-11-21 14:21:26

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

Rgbds export constants

Hello guys,

Can you please tell me how to export constants (EQU) ? Or do thet need to be inclluded in every source file ?

Offline

 

#2 2018-11-22 04:17:20

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

Re: Rgbds export constants

Yeah, by nature, you can't export constants.

What I do is I define constants in files that are included by one "constants.asm" file, which is included by all files.
You can check out my boilerplate project here


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

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson