- [FIX] el só para durant el debug [però new BUG: al tornar està desincronitzat]

- [FIX] si el canal està desactivat, no fer el envelope sweep
- [FIX] Se miraba el bit incorrecte per a determinar si el envelope sweep anava amunt o avall
This commit is contained in:
2025-01-29 17:43:28 +01:00
parent 1c0f243d04
commit 8fc576cda2
4 changed files with 21 additions and 8 deletions

View File

@@ -3,6 +3,7 @@
#include "sm83.h"
#include "sm83dis.h"
#include "mem.h"
#include "APU.h"
//#include "z80analyze.h"
#include "ui.h"
#include "ui_window.h"
@@ -348,7 +349,7 @@ namespace debug
void pause()
{
//zx_ula::sound_disable();
APU::silence();
is_paused = true;
breakpoints[sm83::getPC()] &= ~8;
}
@@ -369,7 +370,7 @@ namespace debug
is_debugging = is_paused = false;
refresh();
gbscreen::focus();
//zx_ula::sound_enable();
APU::resume();
}
const bool debugging() { return is_debugging; }