mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-27 03:31:49 +01:00
This commit is contained in:
commit
81e028dccc
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user