Add support for 8 MiB ROMs, the largest size possible with MBC5.

This commit is contained in:
Anthony J. Bentley
2012-12-26 21:41:47 -07:00
parent b90406861d
commit 6579743410
4 changed files with 11 additions and 11 deletions

View File

@@ -13,7 +13,7 @@ section:
| T_POP_SECTION string ',' sectiontype ',' T_OP_BANK '[' const ']'
{
if( $4==SECT_CODE ) {
if( $8>=1 && $8<=255 )
if( $8>=1 && $8<=0x1ff )
out_NewAbsSection($2,$4,-1,$8);
else
yyerror( "BANK value out of range" );
@@ -24,7 +24,7 @@ section:
{
if( $4==SECT_CODE ) {
if( $6>=0 && $6<0x10000 ) {
if( $11>=1 && $11<=255 )
if( $11>=1 && $11<=0x1ff )
out_NewAbsSection($2,$4,$6,$11);
else
yyerror( "BANK value out of range" );