mirror of https://github.com/stella-emu/stella.git
fix disassembly for segmented bankswitching types
This commit is contained in:
parent
bbf3fb7a28
commit
7463f3cf32
|
@ -71,18 +71,19 @@ CartDebug::CartDebug(Debugger& dbg, Console& console, const OSystem& osystem)
|
|||
}
|
||||
|
||||
// Create bank information for each potential bank, and an extra one for ZP RAM
|
||||
// ROM sizes greater than 4096 indicate multi-bank ROMs, but we handle only
|
||||
// 4K pieces at a time
|
||||
// ROM sizes less than 4K use the actual value
|
||||
size_t romSize = 0;
|
||||
myConsole.cartridge().getImage(romSize);
|
||||
|
||||
BankInfo info;
|
||||
info.size = std::min<size_t>(romSize, 4_KB);
|
||||
for(uInt32 i = 0; i < myConsole.cartridge().romBankCount(); ++i)
|
||||
{
|
||||
info.size = myConsole.cartridge().bankSize(i);
|
||||
myBankInfo.push_back(info);
|
||||
}
|
||||
|
||||
for(uInt32 i = 0; i < myConsole.cartridge().ramBankCount(); ++i)
|
||||
{
|
||||
info.size = myConsole.cartridge().bankSize(i) >> 1;
|
||||
myBankInfo.push_back(info);
|
||||
}
|
||||
|
||||
info.size = 128; // ZP RAM
|
||||
myBankInfo.push_back(info);
|
||||
|
|
Loading…
Reference in New Issue