Extend zero bank crt copy to $3f00 bytes instead of $3800
This commit is contained in:
parent
eafe13e557
commit
49330ce101
|
@ -204,7 +204,9 @@ bool Compiler::GenerateCode(void)
|
|||
{
|
||||
if (!regionMain)
|
||||
{
|
||||
if (regionBytecode)
|
||||
if (!(mCompilerOptions & COPT_TARGET_PRG))
|
||||
regionMain = mLinker->AddRegion(identMain, 0x0900, 0x4700);
|
||||
else if (regionBytecode)
|
||||
regionMain = mLinker->AddRegion(identMain, 0x0a00, 0xa000);
|
||||
else
|
||||
regionMain = mLinker->AddRegion(identMain, 0x0900, 0xa000);
|
||||
|
|
|
@ -616,7 +616,7 @@ bool Linker::WriteCrtFile(const char* filename)
|
|||
fwrite(&chipHeader, sizeof(chipHeader), 1, file);
|
||||
fwrite(mMemory + 0x0800, 1, 0x2000, file);
|
||||
|
||||
memcpy(bootmem, mMemory + 0x2800, 0x1800);
|
||||
memcpy(bootmem, mMemory + 0x2800, 0x1f00);
|
||||
|
||||
bootmem[0x1ffc] = 0x00;
|
||||
bootmem[0x1ffd] = 0xff;
|
||||
|
|
Loading…
Reference in New Issue