add ins type for Pokémon Mini and GA20

This commit is contained in:
tildearrow 2022-12-15 00:47:46 -05:00
parent dafa0189a8
commit b619580b4b
9 changed files with 43 additions and 3 deletions

View file

@ -915,7 +915,13 @@ void DivInstrument::putInsData2(SafeWriter* w, bool fui, const DivSong* song) {
featureSM=true;
featureSL=true;
break;
case DIV_INS_GA20:
featureSM=true;
featureSL=true;
break;
case DIV_INS_POKEMINI:
break;
case DIV_INS_MAX:
break;
case DIV_INS_NULL:

View file

@ -76,6 +76,8 @@ enum DivInstrumentType: unsigned short {
DIV_INS_MSM5232=43,
DIV_INS_T6W28=44,
DIV_INS_K007232=45,
DIV_INS_GA20=46,
DIV_INS_POKEMINI=47,
DIV_INS_MAX,
DIV_INS_NULL
};

View file

@ -116,6 +116,7 @@ enum DivSystem {
DIV_SYSTEM_MSM5232,
DIV_SYSTEM_T6W28,
DIV_SYSTEM_K007232,
DIV_SYSTEM_GA20,
DIV_SYSTEM_PCM_DAC,
DIV_SYSTEM_PONG,
DIV_SYSTEM_DUMMY

View file

@ -1174,7 +1174,7 @@ void DivEngine::registerSystems() {
{"Square"},
{"SQ"},
{DIV_CH_PULSE},
{DIV_INS_BEEPER}
{DIV_INS_POKEMINI}
);
sysDefs[DIV_SYSTEM_SEGAPCM]=new DivSysDef(
@ -1703,6 +1703,16 @@ void DivEngine::registerSystems() {
{DIV_INS_AMIGA, DIV_INS_AMIGA}
);
sysDefs[DIV_SYSTEM_GA20]=new DivSysDef(
"Irem GA20", NULL, 0xc7, 0, 4, false, true, 0x171, false, 1U<<DIV_SAMPLE_DEPTH_8BIT,
"yet another PCM chip from Irem.",
{"Channel 1", "Channel 2", "Channel 3", "Channel 4"},
{"CH1", "CH2", "CH3", "CH4"},
{DIV_CH_PCM, DIV_CH_PCM, DIV_CH_PCM, DIV_CH_PCM},
{DIV_INS_GA20, DIV_INS_GA20, DIV_INS_GA20, DIV_INS_GA20},
{DIV_INS_AMIGA, DIV_INS_AMIGA}
);
sysDefs[DIV_SYSTEM_DUMMY]=new DivSysDef(
"Dummy System", NULL, 0xfd, 0, 8, false, true, 0, false, 0,
"this is a system designed for testing purposes.",