fix build

This commit is contained in:
tildearrow 2022-02-25 04:38:54 -05:00
parent 37f850c6c4
commit 3362289e3a
1 changed files with 2 additions and 1 deletions

View File

@ -491,10 +491,11 @@ static void OPLL_PhaseGenerate(opll_t *chip) {
chip->rm_tc_bit5 = (phase >> (5 + 9)) & 1;
}
if ((chip->rm_enable & 0x80)) {
uint8_t rm_bit;
switch (chip->cycles) {
case 13:
/* HH */
uint8_t rm_bit = (chip->rm_hh_bit2 ^ chip->rm_hh_bit7)
rm_bit = (chip->rm_hh_bit2 ^ chip->rm_hh_bit7)
| (chip->rm_hh_bit3 ^ chip->rm_tc_bit5)
| (chip->rm_tc_bit3 ^ chip->rm_tc_bit5);
pg_out = rm_bit << 9;