opm: initializer

refs #164
 svn merge -r 368:374 https://amethyst.yui.ne.jp/svn-dev/x1/xmil/branches/yui/WORK_01
This commit is contained in:
yui 2016-10-15 14:30:51 +00:00
parent 65b45e7cd2
commit 8c5f889fe2
2 changed files with 4 additions and 2 deletions

View File

@ -36,7 +36,8 @@ void opm_reset(POPM opm, REG8 cCaps)
{
memset(&opm->s, 0, sizeof(opm->s));
opm->s.cCaps = cCaps;
memset(&opm->s.reg[0x20], 0xff, 0xe0);
memset(&opm->s.reg[0x20], 0xc0, 0x08);
memset(&opm->s.reg[0x40], 0xff, 0xc0);
opmgen_reset(&opm->opmgen);
}

View File

@ -42,7 +42,8 @@ void opm_reset(POPM opm, REG8 cCaps)
{
memset(&opm->s, 0, sizeof(opm->s));
opm->s.cCaps = cCaps;
memset(&opm->s.reg[0x20], 0xff, 0xe0);
memset(&opm->s.reg[0x20], 0xc0, 0x08);
memset(&opm->s.reg[0x40], 0xff, 0xc0);
opmgen_reset(&opm->opmgen);