Skip to content

Commit

Permalink
Debugger: PCE - Added DDA output value to register viewer, fixed inco…
Browse files Browse the repository at this point in the history
…rrect addresses
  • Loading branch information
SourMesen committed Dec 16, 2024
1 parent f7c1beb commit 8499522
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions UI/Debugger/RegisterViewer/PceRegisterViewer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ private static RegisterViewerTab GetPcePsgTab(ref PceState pceState)
new RegEntry("$800.0-2", "Channel Select", pceState.Psg.ChannelSelect, Format.X8),
new RegEntry("$801.0-3", "Right Amplitude", pceState.Psg.RightVolume, Format.X8),
new RegEntry("$801.4-7", "Left Amplitude", pceState.Psg.LeftVolume, Format.X8),
new RegEntry("$807.4-7", "LFO Frequency", pceState.Psg.LfoFrequency, Format.X8),
new RegEntry("$808", "LFO Control", pceState.Psg.LfoControl, Format.X8),
new RegEntry("$808.4-7", "LFO Frequency", pceState.Psg.LfoFrequency, Format.X8),
new RegEntry("$809", "LFO Control", pceState.Psg.LfoControl, Format.X8),
};

for(int i = 0; i < 6; i++) {
Expand All @@ -229,12 +229,13 @@ private static RegisterViewerTab GetPcePsgTab(ref PceState pceState)
new RegEntry("$804.7", "Channel Enabled", ch.Enabled),
new RegEntry("$805.0-3", "Right Amplitude", ch.RightVolume, Format.X8),
new RegEntry("$805.4-7", "Left Amplitude", ch.LeftVolume, Format.X8),
new RegEntry("$806.0-4", "DDA Output Value", ch.DdaOutputValue, Format.X8),
new RegEntry("", "Timer", ch.Timer),
});

if(i >= 4) {
entries.Add(new RegEntry("$806.7", "Noise Enabled", ch.NoiseEnabled));
entries.Add(new RegEntry("$806.0-4", "Noise Frequency", ch.NoiseFrequency, Format.X8));
entries.Add(new RegEntry("$807.7", "Noise Enabled", ch.NoiseEnabled));
entries.Add(new RegEntry("$807.0-4", "Noise Frequency", ch.NoiseFrequency, Format.X8));
entries.Add(new RegEntry("", "Noise Timer", ch.NoiseTimer));
entries.Add(new RegEntry("", "Noise Output", ch.NoiseOutput == 0x0F ? 1 : 0));
entries.Add(new RegEntry("", "Noise LSFR", ch.NoiseLfsr, Format.X24));
Expand Down

0 comments on commit 8499522

Please sign in to comment.