Skip to content

Commit

Permalink
Debugger: PCE - Added missing PCEAS import mappings for CD-ROM RAM sy…
Browse files Browse the repository at this point in the history
…mbols
  • Loading branch information
SourMesen committed Dec 3, 2024
1 parent 3eabc4a commit fb9fba0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions UI/Debugger/Integration/PceasSymbolImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,11 @@ private AddressInfo GetLabelAddress(int bank, int addr)
Address = (bank - 0x68) * 0x2000 + (addr & 0x1FFF),
Type = MemoryType.PceCardRam
};
} else if(_format == RomFormat.PceCdRom && (bank >= 0x80 && bank <= 0x87)) {
return new AddressInfo() {
Address = (bank - 0x80) * 0x2000 + (addr & 0x1FFF),
Type = MemoryType.PceCdromRam
};
} else if(bank > 0xFF) {
return new AddressInfo() {
Address = (bank - 0x80) * 0x2000 + (addr & 0x1FFF),
Expand Down
5 changes: 5 additions & 0 deletions UI/Debugger/Integration/WlaDxImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,11 @@ protected override AddressInfo GetLabelAddress(int bank, int addr)
Address = (bank - 0x68) * 0x2000 + (addr & 0x1FFF),
Type = MemoryType.PceCardRam
};
} else if(_format == RomFormat.PceCdRom && (bank >= 0x80 && bank <= 0x87)) {
return new AddressInfo() {
Address = (bank - 0x80) * 0x2000 + (addr & 0x1FFF),
Type = MemoryType.PceCdromRam
};
} else if(bank > 0xFF) {
return new AddressInfo() {
Address = (bank - 0x80) * 0x2000 + (addr & 0x1FFF),
Expand Down

0 comments on commit fb9fba0

Please sign in to comment.