diff options
Diffstat (limited to '3rdparty/ymfm/src/ymfm_opz.cpp')
-rw-r--r-- | 3rdparty/ymfm/src/ymfm_opz.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/3rdparty/ymfm/src/ymfm_opz.cpp b/3rdparty/ymfm/src/ymfm_opz.cpp index b3acdafc281..ae814e45b13 100644 --- a/3rdparty/ymfm/src/ymfm_opz.cpp +++ b/3rdparty/ymfm/src/ymfm_opz.cpp @@ -99,14 +99,14 @@ opz_registers::opz_registers() : m_lfo_am{ 0, 0 } { // create the waveforms - for (int index = 0; index < WAVEFORM_LENGTH; index++) + for (uint32_t index = 0; index < WAVEFORM_LENGTH; index++) m_waveform[0][index] = abs_sin_attenuation(index) | (bitfield(index, 9) << 15); uint16_t zeroval = m_waveform[0][0]; - for (int index = 0; index < WAVEFORM_LENGTH; index++) + for (uint32_t index = 0; index < WAVEFORM_LENGTH; index++) m_waveform[1][index] = (zeroval - m_waveform[0][(index & 0x1ff) ^ 0x100]) | (bitfield(index, 9) << 15); - for (int index = 0; index < WAVEFORM_LENGTH; index++) + for (uint32_t index = 0; index < WAVEFORM_LENGTH; index++) { m_waveform[2][index] = bitfield(index, 9) ? zeroval : m_waveform[0][index]; m_waveform[3][index] = bitfield(index, 9) ? zeroval : m_waveform[1][index]; @@ -118,7 +118,7 @@ opz_registers::opz_registers() : // create the LFO waveforms; AM in the low 8 bits, PM in the upper 8 // waveforms are adjusted to match the pictures in the application manual - for (int index = 0; index < LFO_WAVEFORM_LENGTH; index++) + for (uint32_t index = 0; index < LFO_WAVEFORM_LENGTH; index++) { // waveform 0 is a sawtooth uint8_t am = index ^ 0xff; @@ -701,7 +701,7 @@ void ym2414::write_data(uint8_t data) if (m_address == 0x1b) { // writes to register 0x1B send the upper 2 bits to the output lines - m_fm.intf().ymfm_io_write(0, data >> 6); + m_fm.intf().ymfm_external_write(ACCESS_IO, 0, data >> 6); } // mark busy for a bit |