mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Rename OPT_SMALL to OPT_TINY
This way it is easier to identify the flag passed to the binary (-t). Signed-off-by: AntonioND <antonio_nd@outlook.com>
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
#include "types.h"
|
||||
|
||||
extern SLONG options;
|
||||
#define OPT_SMALL 0x01
|
||||
#define OPT_TINY 0x01
|
||||
#define OPT_SMART_C_LINK 0x02
|
||||
#define OPT_OVERLAY 0x04
|
||||
#define OPT_CONTWRAM 0x08
|
||||
|
||||
@@ -390,7 +390,7 @@ AssignSections(void)
|
||||
if (i == BANK_ROM0) {
|
||||
/* ROM0 bank */
|
||||
BankFree[i]->nOrg = 0x0000;
|
||||
if (options & OPT_SMALL) {
|
||||
if (options & OPT_TINY) {
|
||||
BankFree[i]->nSize = 0x8000;
|
||||
} else {
|
||||
BankFree[i]->nSize = 0x4000;
|
||||
@@ -402,7 +402,7 @@ AssignSections(void)
|
||||
* Now, this shouldn't really be necessary... but for
|
||||
* good measure we'll do it anyway.
|
||||
*/
|
||||
if (options & OPT_SMALL) {
|
||||
if (options & OPT_TINY) {
|
||||
BankFree[i]->nSize = 0;
|
||||
} else {
|
||||
BankFree[i]->nSize = 0x4000;
|
||||
|
||||
@@ -89,7 +89,7 @@ main(int argc, char *argv[])
|
||||
smartlinkstartsymbol = optarg;
|
||||
break;
|
||||
case 't':
|
||||
options |= OPT_SMALL;
|
||||
options |= OPT_TINY;
|
||||
break;
|
||||
case 'w':
|
||||
/* Set to set WRAM as a single continuous block as on DMG.
|
||||
|
||||
@@ -158,7 +158,7 @@ obj_ReadRGB0Section(FILE * f)
|
||||
|
||||
/* does the user want the -s mode? */
|
||||
|
||||
if ((options & OPT_SMALL) && (pSection->Type == SECT_ROMX)) {
|
||||
if ((options & OPT_TINY) && (pSection->Type == SECT_ROMX)) {
|
||||
pSection->Type = SECT_ROM0;
|
||||
}
|
||||
if ((pSection->Type == SECT_ROMX) || (pSection->Type == SECT_ROM0)) {
|
||||
@@ -315,7 +315,7 @@ obj_ReadRGBSection(FILE * f, enum ObjectFileContents contents)
|
||||
|
||||
/* does the user want the -s mode? */
|
||||
|
||||
if ((options & OPT_SMALL) && (pSection->Type == SECT_ROMX)) {
|
||||
if ((options & OPT_TINY) && (pSection->Type == SECT_ROMX)) {
|
||||
pSection->Type = SECT_ROM0;
|
||||
}
|
||||
if ((pSection->Type == SECT_ROMX) || (pSection->Type == SECT_ROM0)) {
|
||||
|
||||
@@ -35,7 +35,7 @@ void script_InitSections(void)
|
||||
if (i == BANK_ROM0) {
|
||||
/* ROM0 bank */
|
||||
bank[i].address = 0x0000;
|
||||
if (options & OPT_SMALL) {
|
||||
if (options & OPT_TINY) {
|
||||
bank[i].top_address = 0x8000;
|
||||
} else {
|
||||
bank[i].top_address = 0x4000;
|
||||
@@ -48,7 +48,7 @@ void script_InitSections(void)
|
||||
* Now, this shouldn't really be necessary... but for
|
||||
* good measure we'll do it anyway.
|
||||
*/
|
||||
if (options & OPT_SMALL) {
|
||||
if (options & OPT_TINY) {
|
||||
bank[i].top_address = 0x4000;
|
||||
} else {
|
||||
bank[i].top_address = 0x8000;
|
||||
|
||||
Reference in New Issue
Block a user