2 CASIO PV-1000 Emulator 'ePV-1000'
4 Author : Takeda.Toshiya
13 #define DEVICE_NAME "CASIO PV-1000"
14 #define CONFIG_NAME "pv1000"
16 // device informations for virtual machine
17 #define FRAMES_PER_SEC 60
18 #define LINES_PER_FRAME 67
19 #define CPU_CLOCKS 3579545
20 #define SCREEN_WIDTH 256
21 #define SCREEN_HEIGHT 192
22 #define LINES_PER_HBLANK 51
23 #define CLOCKS_PER_HBLANK 800
24 #define MEMORY_ADDR_MAX 0x10000
25 #define MEMORY_BANK_SIZE 0x800
27 // device informations for win32
28 #define SUPPORT_TV_RENDER
30 #define USE_SOUND_VOLUME 1
32 #define USE_JOY_BUTTON_CAPTIONS
37 #include "../../common.h"
38 #include "../../fileio.h"
40 #ifdef USE_SOUND_VOLUME
41 static const _TCHAR *sound_device_caption[] = {
46 #ifdef USE_JOY_BUTTON_CAPTIONS
47 static const _TCHAR *joy_button_captions[] = {
92 // ----------------------------------------
94 // ----------------------------------------
99 // ----------------------------------------
100 // for emulation class
101 // ----------------------------------------
103 // drive virtual machine
109 DEVICE *get_cpu(int index);
116 void initialize_sound(int rate, int samples);
117 uint16_t* create_sound(int* extra_frames);
118 int get_sound_buffer_ptr();
119 #ifdef USE_SOUND_VOLUME
120 void set_sound_device_volume(int ch, int decibel_l, int decibel_r);
124 void open_cart(int drv, const _TCHAR* file_path);
125 void close_cart(int drv);
126 bool is_cart_inserted(int drv);
127 bool is_frame_skippable();
129 void update_config();
130 void save_state(FILEIO* state_fio);
131 bool load_state(FILEIO* state_fio);
133 // ----------------------------------------
135 // ----------------------------------------
138 DEVICE* get_device(int id);
140 DEVICE* first_device;