2 ASCII MSX1 Emulator 'yaMSX1'
3 ASCII MSX2 Emulator 'yaMSX2'
4 Pioneer PX-7 Emulator 'ePX-7'
9 modified by Takeda.Toshiya
19 #define DEVICE_NAME "PIONEER PX-7"
20 #define CONFIG_NAME "px7"
22 #define DEVICE_NAME "ASCII MSX1"
23 #define CONFIG_NAME "msx1"
25 #define DEVICE_NAME "ASCII MSX2"
26 #define CONFIG_NAME "msx2"
29 // device informations for virtual machine
30 #define FRAMES_PER_SEC 60
31 #define LINES_PER_FRAME 262
32 #define CPU_CLOCKS 3579545
34 #define SCREEN_WIDTH ((256 + 15)*2) // V99X8_WIDTH
35 #define SCREEN_HEIGHT ((212 + 15)*2) // V99X8_HEIGHT
37 #define SCREEN_WIDTH 512
38 #define SCREEN_HEIGHT 384
40 #define TMS9918A_VRAM_SIZE 0x4000
41 #define TMS9918A_LIMIT_SPRITES
43 #define TMS9918A_SUPER_IMPOSE
46 #define SUPPORT_MEDIA_TYPE_1DD
47 #define Z80_PSEUDO_BIOS
50 // for Flappy Limited '85
51 #define YM2203_PORT_MODE 0x80
53 #define SCREEN_WIDTH_ASPECT SCREEN_WIDTH
54 #define SCREEN_HEIGHT_ASPECT SCREEN_HEIGHT
55 #define WINDOW_WIDTH_ASPECT SCREEN_WIDTH
56 #define WINDOW_HEIGHT_ASPECT SCREEN_HEIGHT
58 // device informations for win32
64 #define USE_LASER_DISC
65 #define USE_MOVIE_PLAYER
70 #define USE_ALT_F10_KEY
71 #define USE_AUTO_KEY 6
72 #define USE_AUTO_KEY_RELEASE 10
76 #include "../../common.h"
77 #include "../../fileio.h"
148 // ----------------------------------------
150 // ----------------------------------------
155 // ----------------------------------------
156 // for emulation class
157 // ----------------------------------------
159 // drive virtual machine
165 DEVICE *get_cpu(int index);
172 void initialize_sound(int rate, int samples);
173 uint16* create_sound(int* extra_frames);
174 int sound_buffer_ptr();
176 void movie_sound_callback(uint8 *buffer, long size);
180 void open_cart(int drv, const _TCHAR* file_path);
181 void close_cart(int drv);
182 bool cart_inserted(int drv);
183 void play_tape(const _TCHAR* file_path);
184 void rec_tape(const _TCHAR* file_path);
186 bool tape_inserted();
188 bool tape_recording();
191 void open_laser_disc(const _TCHAR* file_path);
192 void close_laser_disc();
193 bool laser_disc_inserted();
195 void open_disk(int drv, const _TCHAR* file_path, int bank);
196 void close_disk(int drv);
197 bool disk_inserted(int drv);
198 void set_disk_protected(int drv, bool value);
199 bool get_disk_protected(int drv);
204 void update_config();
205 void save_state(FILEIO* state_fio);
206 bool load_state(FILEIO* state_fio);
208 // ----------------------------------------
210 // ----------------------------------------
213 DEVICE* get_device(int id);
215 DEVICE* first_device;