AY: reminder to fix wave macro

This commit is contained in:
tildearrow 2024-02-19 03:06:34 -05:00
parent bc32f6d57e
commit 89249d4a2b
2 changed files with 4 additions and 0 deletions

View file

@ -266,6 +266,8 @@ void DivPlatformAY8910::tick(bool sysTick) {
}
if (chan[i].std.wave.had) {
if (!(chan[i].nextPSGMode.val&8)) {
// TODO: clean up.
// why does Defle start from 1?!
chan[i].nextPSGMode.val=(chan[i].std.wave.val+1)&7;
if (chan[i].active) {
chan[i].curPSGMode.val=chan[i].nextPSGMode.val;

View file

@ -256,6 +256,8 @@ void DivPlatformAY8930::tick(bool sysTick) {
}
if (chan[i].std.wave.had) {
if (!(chan[i].nextPSGMode.val&8)) {
// TODO: clean up.
// why does Defle start from 1?!
chan[i].nextPSGMode.val=(chan[i].std.wave.val+1)&7;
if (chan[i].active) {
chan[i].curPSGMode.val=chan[i].nextPSGMode.val;