Add debug status support for SM8521
This commit is contained in:
parent
c21d596ca4
commit
1436da8a66
|
@ -51,6 +51,7 @@
|
||||||
#include "../engine/platform/pcmdac.h"
|
#include "../engine/platform/pcmdac.h"
|
||||||
#include "../engine/platform/k007232.h"
|
#include "../engine/platform/k007232.h"
|
||||||
#include "../engine/platform/ga20.h"
|
#include "../engine/platform/ga20.h"
|
||||||
|
#include "../engine/platform/sm8521.h"
|
||||||
#include "../engine/platform/dummy.h"
|
#include "../engine/platform/dummy.h"
|
||||||
|
|
||||||
#define COMMON_CHIP_DEBUG \
|
#define COMMON_CHIP_DEBUG \
|
||||||
|
@ -528,6 +529,14 @@ void putDispatchChip(void* data, int type) {
|
||||||
COMMON_CHIP_DEBUG_BOOL;
|
COMMON_CHIP_DEBUG_BOOL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case DIV_SYSTEM_SM8521: {
|
||||||
|
DivPlatformSM8521* ch=(DivPlatformSM8521*)data;
|
||||||
|
ImGui::Text("> SM8521");
|
||||||
|
COMMON_CHIP_DEBUG;
|
||||||
|
COMMON_CHIP_DEBUG_BOOL;
|
||||||
|
ImGui::TextColored(ch->antiClickEnabled?colorOn:colorOff,">> AntiClickEnabled");
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
ImGui::Text("Unimplemented chip! Help!");
|
ImGui::Text("Unimplemented chip! Help!");
|
||||||
break;
|
break;
|
||||||
|
@ -1047,6 +1056,18 @@ void putDispatchChan(void* data, int chanNum, int type) {
|
||||||
ImGui::TextColored(ch->setPos?colorOn:colorOff,">> SetPos");
|
ImGui::TextColored(ch->setPos?colorOn:colorOff,">> SetPos");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case DIV_SYSTEM_SM8521: {
|
||||||
|
DivPlatformSM8521::Channel* ch=(DivPlatformSM8521::Channel*)data;
|
||||||
|
ImGui::Text("> SM8521");
|
||||||
|
COMMON_CHAN_DEBUG;
|
||||||
|
ImGui::Text("* AntiClick:");
|
||||||
|
ImGui::Text(" - periodCount: %d",ch->antiClickPeriodCount);
|
||||||
|
ImGui::Text(" - wavePos: %d",ch->antiClickWavePos);
|
||||||
|
ImGui::Text("- wave: %d",ch->wave);
|
||||||
|
COMMON_CHAN_DEBUG_BOOL;
|
||||||
|
ImGui::TextColored(ch->volumeChanged?colorOn:colorOff,">> VolumeChanged");
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
ImGui::Text("Unimplemented chip! Help!");
|
ImGui::Text("Unimplemented chip! Help!");
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue