2 CASIO PV-2000 Emulator 'EmuGaki'
4 Author : Takeda.Toshiya
13 #define DEVICE_NAME "CASIO PV-2000"
14 #define CONFIG_NAME "pv2000"
16 // device informations for virtual machine
17 #define FRAMES_PER_SEC 60
18 #define LINES_PER_FRAME 262
19 #define CPU_CLOCKS 3579545
20 #define SCREEN_WIDTH 256
21 #define SCREEN_HEIGHT 192
22 #define TMS9918A_VRAM_SIZE 0x4000
23 //#define TMS9918A_LIMIT_SPRITES
24 #define MEMORY_ADDR_MAX 0x10000
25 #define MEMORY_BANK_SIZE 0x1000
27 // device informations for win32
30 #define TAPE_BINARY_ONLY
31 #define NOTIFY_KEY_DOWN
32 #define USE_ALT_F10_KEY
33 #define USE_AUTO_KEY 5
34 #define USE_AUTO_KEY_RELEASE 6
35 #define USE_AUTO_KEY_CAPS
39 #include "../../common.h"
76 uint8 ipl[0x4000]; // ipl (16k)
77 uint8 ram[0x1000]; // ram (4k)
78 uint8 ext[0x4000]; // ext ram/rom (16k)
79 uint8 cart[0x4000]; // cartridge (16k)
83 // ----------------------------------------
85 // ----------------------------------------
90 // ----------------------------------------
91 // for emulation class
92 // ----------------------------------------
94 // drive virtual machine
100 DEVICE *get_cpu(int index);
107 void initialize_sound(int rate, int samples);
108 uint16* create_sound(int* extra_frames);
109 int sound_buffer_ptr();
112 void key_down(int code, bool repeat);
113 void key_up(int code);
116 void open_cart(int drv, _TCHAR* file_path);
117 void close_cart(int drv);
118 bool cart_inserted(int drv);
119 void play_tape(_TCHAR* file_path);
120 void rec_tape(_TCHAR* file_path);
122 bool tape_inserted();
125 void update_config();
126 void save_state(FILEIO* state_fio);
127 bool load_state(FILEIO* state_fio);
129 // ----------------------------------------
131 // ----------------------------------------
134 DEVICE* get_device(int id);
136 DEVICE* first_device;