2 EPOCH Super Cassette Vision Emulator 'eSCV'
4 Author : Takeda.Toshiya
13 #define DEVICE_NAME "EPOCH SCV"
14 #define CONFIG_NAME "scv"
16 // device informations for virtual machine
17 #define FRAMES_PER_SEC 60
18 #define LINES_PER_FRAME 262
19 #define CPU_CLOCKS 4000000
20 #define SCREEN_WIDTH 192
21 #define SCREEN_WIDTH_ASPECT 288
22 #define SCREEN_HEIGHT 222
25 //#define UPD7801_MEMORY_WAIT
27 // device informations for win32
29 #define USE_SOUND_VOLUME 2
33 #define USE_CRT_MONITOR_4_3 1
35 #include "../../common.h"
36 #include "../../fileio.h"
38 #ifdef USE_SOUND_VOLUME
39 static const _TCHAR *sound_device_caption[] = {
42 static const bool sound_device_monophonic[] = {
74 // ----------------------------------------
76 // ----------------------------------------
81 // ----------------------------------------
82 // for emulation class
83 // ----------------------------------------
85 // drive virtual machine
91 DEVICE *get_cpu(int index);
98 void initialize_sound(int rate, int samples);
99 uint16* create_sound(int* extra_frames);
100 int sound_buffer_ptr();
101 #ifdef USE_SOUND_VOLUME
102 void set_sound_device_volume(int ch, int decibel_l, int decibel_r);
106 void open_cart(int drv, const _TCHAR* file_path);
107 void close_cart(int drv);
108 bool cart_inserted(int drv);
111 void update_config();
112 void save_state(FILEIO* state_fio);
113 bool load_state(FILEIO* state_fio);
115 // ----------------------------------------
117 // ----------------------------------------
120 DEVICE* get_device(int id);
122 DEVICE* first_device;