void fm_write(unsigned int cycles, unsigned int address, unsigned int data) { /* synchronize FM chip with CPU (on data port write only) */ if (address & 1) { fm_update(cycles); } /* write FM register */ YM_Write(address, data); }
/* Write FM chip */ void fm_write(unsigned int cycles, unsigned int address, unsigned int data) { if (address & 1) fm_update(cycles << 11); YM_Write(address, data); }