Skip to content

Commit

Permalink
Debugger: Register Viewer - Fixed typo in SNES registers, added CPU s…
Browse files Browse the repository at this point in the history
…peed value for CGB
  • Loading branch information
SourMesen committed Feb 3, 2024
1 parent 64126ac commit f216ef7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions UI/Debugger/ViewModels/RegisterViewerWindowViewModel.cs
Expand Up @@ -253,6 +253,9 @@ private RegisterViewerTab GetGbCgbTab(ref GbState gb)
GbPpuState ppu = gb.Ppu;
GbDmaControllerState dma = gb.Dma;
entries.AddRange(new List<RegEntry>() {
new RegEntry("$FF4D.0", "CPU Switch Speed Request", gb.MemoryManager.CgbSwitchSpeedRequest),
new RegEntry("$FF4D.7", "CPU Speed", gb.MemoryManager.CgbHighSpeed ? "8.39 MHz" : "4.19 MHz", gb.MemoryManager.CgbHighSpeed),

new RegEntry("$FF4F.0", "Video RAM Bank", ppu.CgbVramBank),

new RegEntry("", "DMA registers"),
Expand Down Expand Up @@ -622,8 +625,8 @@ string GetLayerSize(LayerConfig layer)
new RegEntry("$2100.0-3", "Brightness", ppu.ScreenBrightness),
new RegEntry("$2100.7", "Forced Blank", ppu.ForcedBlank),
new RegEntry("$2101", "OAM Settings"),
new RegEntry("$2100.0-2", "OAM Table Address", ppu.OamBaseAddress, Format.X16),
new RegEntry("$2100.3-4", "OAM Second Table Address", (ppu.OamBaseAddress + ppu.OamAddressOffset) & 0x7FFF, Format.X16),
new RegEntry("$2101.0-2", "OAM Table Address", ppu.OamBaseAddress, Format.X16),
new RegEntry("$2101.3-4", "OAM Second Table Address", (ppu.OamBaseAddress + ppu.OamAddressOffset) & 0x7FFF, Format.X16),
new RegEntry("$2101.5-7", "OAM Size Mode", ppu.OamMode),
new RegEntry("$2102-2103", "OAM Base Address", ppu.OamRamAddress),
new RegEntry("$2103.7", "OAM Priority", ppu.EnableOamPriority),
Expand Down

0 comments on commit f216ef7

Please sign in to comment.