From fb9fba041ab42e8b0a229e010fe3fa9f038c95c0 Mon Sep 17 00:00:00 2001 From: Sour Date: Tue, 3 Dec 2024 16:23:33 +0900 Subject: [PATCH] Debugger: PCE - Added missing PCEAS import mappings for CD-ROM RAM symbols --- UI/Debugger/Integration/PceasSymbolImporter.cs | 5 +++++ UI/Debugger/Integration/WlaDxImporter.cs | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/UI/Debugger/Integration/PceasSymbolImporter.cs b/UI/Debugger/Integration/PceasSymbolImporter.cs index 3659752f..189f977d 100644 --- a/UI/Debugger/Integration/PceasSymbolImporter.cs +++ b/UI/Debugger/Integration/PceasSymbolImporter.cs @@ -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), diff --git a/UI/Debugger/Integration/WlaDxImporter.cs b/UI/Debugger/Integration/WlaDxImporter.cs index 7d7c8a5e..106c9889 100644 --- a/UI/Debugger/Integration/WlaDxImporter.cs +++ b/UI/Debugger/Integration/WlaDxImporter.cs @@ -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),