This commit is contained in:
twinaphex 2017-10-27 17:03:59 +02:00
commit 81e028dccc
2 changed files with 3 additions and 3 deletions

View File

@ -436,7 +436,7 @@ void OPN2_DoRegWrite(ym3438_t *chip)
break; break;
case 0x2a: /* DAC data */ case 0x2a: /* DAC data */
chip->dacdata &= 0x01; chip->dacdata &= 0x01;
chip->dacdata |= chip->write_data << 1; chip->dacdata |= (chip->write_data ^ 0x80) << 1;
break; break;
case 0x2b: /* DAC enable */ case 0x2b: /* DAC enable */
chip->dacen = chip->write_data >> 7; chip->dacen = chip->write_data >> 7;
@ -984,7 +984,7 @@ void OPN2_ChOutput(ym3438_t *chip)
/* Ch 6 */ /* Ch 6 */
if (((cycles >> 2) == 1 && chip->dacen) || test_dac) if (((cycles >> 2) == 1 && chip->dacen) || test_dac)
{ {
out = (Bit16s)chip->dacdata ^ 0x100; out = (Bit16s)chip->dacdata;
out <<= 7; out <<= 7;
out >>= 7; out >>= 7;
} }

View File

@ -30,6 +30,6 @@ LOCAL_C_INCLUDES = $(foreach dir,$(GENPLUS_SRC_DIR),$(LOCAL_PATH)/$(dir)) \
$(LOCAL_PATH)/$(TREMOR_SRC_DIR) \ $(LOCAL_PATH)/$(TREMOR_SRC_DIR) \
$(LOCAL_PATH)/$(LIBRETRO_DIR) $(LOCAL_PATH)/$(LIBRETRO_DIR)
LOCAL_CFLAGS += -ffast-math -O2 -funroll-loops -DINLINE="static inline" -DUSE_LIBTREMOR -DUSE_16BPP_RENDERING -DLSB_FIRST -DBYTE_ORDER=LITTLE_ENDIAN -D__LIBRETRO__ -DFRONTEND_SUPPORTS_RGB565 -DALIGN_LONG -DALIGN_WORD -DHAVE_CHD LOCAL_CFLAGS += -ffast-math -O2 -funroll-loops -DINLINE="static inline" -DUSE_LIBTREMOR -DUSE_16BPP_RENDERING -DLSB_FIRST -DBYTE_ORDER=LITTLE_ENDIAN -D__LIBRETRO__ -DFRONTEND_SUPPORTS_RGB565 -DALIGN_LONG -DALIGN_WORD -DHAVE_CHD -DM68K_OVERCLOCK_SHIFT=20 -DZ80_OVERCLOCK_SHIFT=20
include $(BUILD_SHARED_LIBRARY) include $(BUILD_SHARED_LIBRARY)