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"
39 #include "../vm_template.h"
41 #ifdef USE_SOUND_VOLUME
42 static const _TCHAR *sound_device_caption[] = {
47 #ifdef USE_JOY_BUTTON_CAPTIONS
48 static const _TCHAR *joy_button_captions[] = {
60 class csp_state_utils;
74 class VM : public VM_TEMPLATE
78 //csp_state_utils* state_entry;
96 // ----------------------------------------
98 // ----------------------------------------
103 // ----------------------------------------
104 // for emulation class
105 // ----------------------------------------
107 // drive virtual machine
113 DEVICE *get_cpu(int index);
120 void initialize_sound(int rate, int samples);
121 uint16_t* create_sound(int* extra_frames);
122 int get_sound_buffer_ptr();
123 #ifdef USE_SOUND_VOLUME
124 void set_sound_device_volume(int ch, int decibel_l, int decibel_r);
128 void open_cart(int drv, const _TCHAR* file_path);
129 void close_cart(int drv);
130 bool is_cart_inserted(int drv);
131 bool is_frame_skippable();
133 void update_config();
134 bool process_state(FILEIO* state_fio, bool loading);
136 // ----------------------------------------
138 // ----------------------------------------
141 DEVICE* get_device(int id);
143 //DEVICE* first_device;
144 //DEVICE* last_device;