Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Core/NES/APU/DeltaModulationChannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ ApuDmcState DeltaModulationChannel::GetState()
state.SampleAddr = _sampleAddr;
state.NextSampleAddr = _currentAddr;
state.SampleLength = _sampleLength;
state.BitsRemaining = _bitsRemaining;
return state;
}

Expand Down
1 change: 1 addition & 0 deletions Core/NES/NesTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ struct ApuDmcState
uint16_t Period;
uint16_t Timer;
uint16_t BytesRemaining;
uint8_t BitsRemaining;

uint8_t OutputVolume;
};
Expand Down
1 change: 1 addition & 0 deletions UI/Debugger/RegisterViewer/NesRegisterViewer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ private static RegisterViewerTab GetNesApuTab(ref NesState state)
new RegEntry("--", "Timer", dmc.Timer),
new RegEntry("--", "Frequency", Math.Round(dmc.SampleRate).ToString("0."), null),
new RegEntry("--", "Bytes Remaining", dmc.BytesRemaining),
new RegEntry("--", "Bits Remaining", dmc.BitsRemaining),
new RegEntry("--", "Next sample address", dmc.NextSampleAddr, Format.X16),
});

Expand Down
1 change: 1 addition & 0 deletions UI/Interop/ConsoleState/NesState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ public struct NesApuDmcState
public UInt16 Period;
public UInt16 Timer;
public UInt16 BytesRemaining;
public byte BitsRemaining;

public byte OutputVolume;
}
Expand Down
Loading