mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Readability (whitespace).
This commit is contained in:
@@ -1,48 +1,46 @@
|
|||||||
section : T_POP_SECTION string ',' sectiontype
|
section:
|
||||||
{ out_NewSection($2,$4); }
|
T_POP_SECTION string ',' sectiontype
|
||||||
| T_POP_SECTION string ',' sectiontype '[' const ']'
|
{
|
||||||
{
|
out_NewSection($2,$4);
|
||||||
if( $6>=0 && $6<0x10000 )
|
}
|
||||||
out_NewAbsSection($2,$4,$6,-1);
|
| T_POP_SECTION string ',' sectiontype '[' const ']'
|
||||||
else
|
{
|
||||||
yyerror( "Address must be 16-bit" );
|
if( $6>=0 && $6<0x10000 )
|
||||||
}
|
out_NewAbsSection($2,$4,$6,-1);
|
||||||
| T_POP_SECTION string ',' sectiontype ',' T_OP_BANK '[' const ']'
|
else
|
||||||
{
|
yyerror( "Address must be 16-bit" );
|
||||||
if( $4==SECT_CODE )
|
}
|
||||||
{
|
| T_POP_SECTION string ',' sectiontype ',' T_OP_BANK '[' const ']'
|
||||||
if( $8>=1 && $8<=255 )
|
{
|
||||||
out_NewAbsSection($2,$4,-1,$8);
|
if( $4==SECT_CODE ) {
|
||||||
else
|
if( $8>=1 && $8<=255 )
|
||||||
yyerror( "BANK value out of range" );
|
out_NewAbsSection($2,$4,-1,$8);
|
||||||
}
|
else
|
||||||
else
|
yyerror( "BANK value out of range" );
|
||||||
yyerror( "BANK only allowed for CODE/DATA" );
|
} else
|
||||||
}
|
yyerror( "BANK only allowed for CODE/DATA" );
|
||||||
| T_POP_SECTION string ',' sectiontype '[' const ']' ',' T_OP_BANK '[' const ']'
|
}
|
||||||
{
|
| T_POP_SECTION string ',' sectiontype '[' const ']' ',' T_OP_BANK '[' const ']'
|
||||||
if( $4==SECT_CODE )
|
{
|
||||||
{
|
if( $4==SECT_CODE ) {
|
||||||
if( $6>=0 && $6<0x10000 )
|
if( $6>=0 && $6<0x10000 ) {
|
||||||
{
|
if( $11>=1 && $11<=255 )
|
||||||
if( $11>=1 && $11<=255 )
|
out_NewAbsSection($2,$4,$6,$11);
|
||||||
out_NewAbsSection($2,$4,$6,$11);
|
else
|
||||||
else
|
yyerror( "BANK value out of range" );
|
||||||
yyerror( "BANK value out of range" );
|
} else
|
||||||
}
|
yyerror( "Address must be 16-bit" );
|
||||||
else
|
} else
|
||||||
yyerror( "Address must be 16-bit" );
|
yyerror( "BANK only allowed for CODE/DATA" );
|
||||||
}
|
}
|
||||||
else
|
|
||||||
yyerror( "BANK only allowed for CODE/DATA" );
|
|
||||||
}
|
|
||||||
;
|
;
|
||||||
|
|
||||||
sectiontype : T_SECT_BSS { $$=SECT_BSS; }
|
sectiontype:
|
||||||
| T_SECT_VRAM { $$=SECT_VRAM; }
|
T_SECT_BSS { $$=SECT_BSS; }
|
||||||
| T_SECT_CODE { $$=SECT_CODE; }
|
| T_SECT_VRAM { $$=SECT_VRAM; }
|
||||||
| T_SECT_HOME { $$=SECT_HOME; }
|
| T_SECT_CODE { $$=SECT_CODE; }
|
||||||
| T_SECT_HRAM { $$=SECT_HRAM; }
|
| T_SECT_HOME { $$=SECT_HOME; }
|
||||||
|
| T_SECT_HRAM { $$=SECT_HRAM; }
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user