2 CASIO PV-1000 Emulator 'ePV-1000'
\r
4 Author : Takeda.Toshiya
\r
13 #define DEVICE_NAME "CASIO PV-1000"
\r
14 #define CONFIG_NAME "pv1000"
\r
16 // device informations for virtual machine
\r
17 #define FRAMES_PER_SEC 60
\r
18 #define LINES_PER_FRAME 67
\r
19 #define CPU_CLOCKS 3579545
\r
20 #define SCREEN_WIDTH 256
\r
21 #define SCREEN_HEIGHT 192
\r
22 #define LINES_PER_HBLANK 51
\r
23 #define CLOCKS_PER_HBLANK 800
\r
24 #define MEMORY_ADDR_MAX 0x10000
\r
25 #define MEMORY_BANK_SIZE 0x800
\r
27 // device informations for win32
\r
29 #define USE_KEY_TO_JOY
\r
30 #define KEY_TO_JOY_BUTTON_1 0x5a
\r
31 #define KEY_TO_JOY_BUTTON_2 0x58
\r
32 #define KEY_TO_JOY_BUTTON_3 0x41
\r
33 #define KEY_TO_JOY_BUTTON_4 0x53
\r
34 #define USE_DEBUGGER
\r
36 #include "../../common.h"
\r
71 // ----------------------------------------
\r
73 // ----------------------------------------
\r
75 VM(EMU* parent_emu);
\r
78 // ----------------------------------------
\r
79 // for emulation class
\r
80 // ----------------------------------------
\r
82 // drive virtual machine
\r
88 DEVICE *get_cpu(int index);
\r
95 void initialize_sound(int rate, int samples);
\r
96 uint16* create_sound(int* extra_frames);
\r
97 int sound_buffer_ptr();
\r
100 void open_cart(int drv, _TCHAR* file_path);
\r
101 void close_cart(int drv);
\r
102 bool cart_inserted(int drv);
\r
105 void update_config();
\r
107 // ----------------------------------------
\r
109 // ----------------------------------------
\r
112 DEVICE* get_device(int id);
\r
114 DEVICE* first_device;
\r
115 DEVICE* last_device;
\r