Skip to content

Commit f10668e

Browse files
authored
Add primary ICS2115 support (#138)
1 parent c08e926 commit f10668e

File tree

12 files changed

+1357
-15
lines changed

12 files changed

+1357
-15
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
demofiles/
2+
.vscode/
23

34
#################
45
## Visual Studio

emu/CMakeLists.txt

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,10 @@ option(SNDEMU_GA20_ALL "Sound Device Irem GA20: all cores" OFF)
8282
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)
85-
option(SNDEMU_BSMT2000_ALL "Sound Device BSMT2000: all cores" OFF)
8685
option(SNDEMU_MSM5205_ALL "Sound Device MSM5205: all cores" OFF)
8786
option(SNDEMU_MSM5232_ALL "Sound Device MSM5232: all cores" OFF)
87+
option(SNDEMU_BSMT2000_ALL "Sound Device BSMT2000: all cores" OFF)
88+
option(SNDEMU_ICS2115_ALL "Sound Device ICS2115: all cores" OFF)
8889

8990
# console/computer presets
9091
option(SNDEMU__PRESET_SMS "Sound Dev. Preset: Sega Master System/Game Gear" OFF)
@@ -147,8 +148,9 @@ if(SNDEMU__ALL)
147148
set(SNDEMU_K007232_ALL ON)
148149
set(SNDEMU_K005289_ALL ON)
149150
set(SNDEMU_MSM5205_ALL ON)
150-
set(SNDEMU_MSM5232_ALL ON)
151-
set(SNDEMU_BSMT2000_ALL ON)
151+
set(SNDEMU_MSM5232_ALL ON)
152+
set(SNDEMU_BSMT2000_ALL ON)
153+
set(SNDEMU_ICS2115_ALL ON)
152154
endif()
153155

154156

@@ -641,6 +643,11 @@ if(SNDEMU_BSMT2000_ALL)
641643
set(EMU_FILES ${EMU_FILES} cores/bsmt2000.c)
642644
set(EMU_CORE_HEADERS ${EMU_CORE_HEADERS} cores/bsmt2000.h)
643645
endif()
646+
if(SNDEMU_ICS2115_ALL)
647+
set(EMU_DEFS ${EMU_DEFS} " SNDDEV_ICS2115")
648+
set(EMU_FILES ${EMU_FILES} cores/ics2115.c)
649+
set(EMU_CORE_HEADERS ${EMU_CORE_HEADERS} cores/ics2115.h)
650+
endif()
644651

645652
add_library(${PROJECT_NAME} ${LIBRARY_TYPE} ${EMU_FILES})
646653
set_target_properties(${PROJECT_NAME} PROPERTIES POSITION_INDEPENDENT_CODE ON)

emu/SoundDevs.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@
4747
#define DEVID_K005289 0x2B
4848
#define DEVID_MSM5205 0x2C // variants: MSM5205, MSM6585
4949
#define DEVID_MSM5232 0x2D
50-
#define DEVID_BSMT2000 0x2E
50+
#define DEVID_BSMT2000 0x2E
51+
#define DEVID_ICS2115 0x2F
5152
#endif // __SOUNDDEVS_H__

emu/SoundEmu.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
#define SNDDEV_MSM5205
5656
#define SNDDEV_MSM5232
5757
#define SNDDEV_BSMT2000
58+
#define SNDDEV_ICS2115
5859
#endif
5960

6061
#ifdef SNDDEV_SN76496
@@ -186,6 +187,9 @@
186187
#ifdef SNDDEV_BSMT2000
187188
#include "cores/bsmt2000.h"
188189
#endif
190+
#ifdef SNDDEV_ICS2115
191+
#include "cores/ics2115.h"
192+
#endif
189193

190194
const DEV_DECL* sndEmu_Devices[] = {
191195
#ifdef SNDDEV_SN76496
@@ -328,6 +332,9 @@ const DEV_DECL* sndEmu_Devices[] = {
328332
#endif
329333
#ifdef SNDDEV_BSMT2000
330334
&sndDev_BSMT2000,
335+
#endif
336+
#ifdef SNDDEV_ICS2115
337+
&sndDev_ICS2115,
331338
#endif
332339
NULL // list end
333340
};

0 commit comments

Comments
 (0)