mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-07 22:34:12 +08:00
尝试修复32m的问题
This commit is contained in:
parent
60f462be79
commit
56c7948636
@ -316,12 +316,13 @@ static CodeLocation rom_fit_newsize( CodeLocation rom, int realend, int totalsiz
|
|||||||
// get the biggest space that all bytes is 0
|
// get the biggest space that all bytes is 0
|
||||||
CodeLocation found=NULL, current=NULL;
|
CodeLocation found=NULL, current=NULL;
|
||||||
int szfound=0, szcurrent=0;
|
int szfound=0, szcurrent=0;
|
||||||
|
int reallen = realend / sizeof(instruction_t);
|
||||||
for( int i=0; i < realend; ++i )
|
for( int i=0; i < realend; ++i )
|
||||||
{
|
{
|
||||||
if( rom[i] == 0 )
|
if( rom[i] == 0 )
|
||||||
{
|
{
|
||||||
if( szcurrent == 0 ) current = rom+i;
|
if( szcurrent == 0 ) current = rom+i;
|
||||||
szcurrent++;
|
szcurrent += sizeof(instruction_t);
|
||||||
}
|
}
|
||||||
else if( szcurrent > 0 )
|
else if( szcurrent > 0 )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user