Skip to content

Commit 76eed5d

Browse files
authored
Initial MSM5232 implementation for libvgm. (#139)
1 parent e9f2b02 commit 76eed5d

File tree

10 files changed

+641
-8
lines changed

10 files changed

+641
-8
lines changed

emu/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ option(SNDEMU_MIKEY_ALL "Sound Device Mikey: all cores" OFF)
8383
option(SNDEMU_K007232_ALL "Sound Device K007232: all cores" OFF)
8484
option(SNDEMU_K005289_ALL "Sound Device K005289: all cores" OFF)
8585
option(SNDEMU_MSM5205_ALL "Sound Device MSM5205: all cores" OFF)
86+
option(SNDEMU_MSM5232_ALL "Sound Device MSM5232: all cores" OFF)
8687

8788
# console/computer presets
8889
option(SNDEMU__PRESET_SMS "Sound Dev. Preset: Sega Master System/Game Gear" OFF)
@@ -145,6 +146,7 @@ if(SNDEMU__ALL)
145146
set(SNDEMU_K007232_ALL ON)
146147
set(SNDEMU_K005289_ALL ON)
147148
set(SNDEMU_MSM5205_ALL ON)
149+
set(SNDEMU_MSM5232_ALL ON)
148150
endif()
149151

150152

@@ -627,6 +629,11 @@ if(SNDEMU_MSM5205_ALL)
627629
set(EMU_FILES ${EMU_FILES} cores/msm5205.c)
628630
set(EMU_CORE_HEADERS ${EMU_CORE_HEADERS} cores/msm5205.h)
629631
endif()
632+
if(SNDEMU_MSM5232_ALL)
633+
set(EMU_DEFS ${EMU_DEFS} " SNDDEV_MSM5232")
634+
set(EMU_FILES ${EMU_FILES} cores/msm5232.c)
635+
set(EMU_CORE_HEADERS ${EMU_CORE_HEADERS} cores/msm5232.h)
636+
endif()
630637

631638
add_library(${PROJECT_NAME} ${LIBRARY_TYPE} ${EMU_FILES})
632639
set_target_properties(${PROJECT_NAME} PROPERTIES POSITION_INDEPENDENT_CODE ON)

emu/SoundDevs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,5 @@
4646
#define DEVID_K007232 0x2A
4747
#define DEVID_K005289 0x2B
4848
#define DEVID_MSM5205 0x2C // variants: MSM5205, MSM6585
49+
#define DEVID_MSM5232 0x2D
4950
#endif // __SOUNDDEVS_H__

emu/SoundEmu.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
#define SNDDEV_K007232
5454
#define SNDDEV_K005289
5555
#define SNDDEV_MSM5205
56+
#define SNDDEV_MSM5232
5657
#endif
5758

5859
#ifdef SNDDEV_SN76496
@@ -178,6 +179,9 @@
178179
#ifdef SNDDEV_MSM5205
179180
#include "cores/msm5205.h"
180181
#endif
182+
#ifdef SNDDEV_MSM5232
183+
#include "cores/msm5232.h"
184+
#endif
181185

182186
const DEV_DECL* sndEmu_Devices[] = {
183187
#ifdef SNDDEV_SN76496
@@ -314,6 +318,9 @@ const DEV_DECL* sndEmu_Devices[] = {
314318
#endif
315319
#ifdef SNDDEV_MSM5205
316320
&sndDev_MSM5205,
321+
#endif
322+
#ifdef SNDDEV_MSM5232
323+
&sndDev_MSM5232,
317324
#endif
318325
NULL // list end
319326
};

0 commit comments

Comments
 (0)