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 // device informations for win32
59 #define USE_LASER_DISC
64 #define USE_ALT_F10_KEY
65 #define USE_AUTO_KEY 6
66 #define USE_AUTO_KEY_RELEASE 10
70 #include "../../common.h"
71 #include "../../fileio.h"
142 // ----------------------------------------
144 // ----------------------------------------
149 // ----------------------------------------
150 // for emulation class
151 // ----------------------------------------
153 // drive virtual machine
159 DEVICE *get_cpu(int index);
166 void initialize_sound(int rate, int samples);
167 uint16* create_sound(int* extra_frames);
168 int sound_buffer_ptr();
170 void movie_sound_callback(uint8 *buffer, long size);
174 void open_cart(int drv, _TCHAR* file_path);
175 void close_cart(int drv);
176 bool cart_inserted(int drv);
177 void play_tape(_TCHAR* file_path);
178 void rec_tape(_TCHAR* file_path);
180 bool tape_inserted();
183 void open_laser_disc(_TCHAR* file_path);
184 void close_laser_disc();
185 bool laser_disc_inserted();
187 void open_disk(int drv, _TCHAR* file_path, int bank);
188 void close_disk(int drv);
189 bool disk_inserted(int drv);
190 void write_protect_fd(int drv, bool flag);
191 bool is_write_protect_fd(int drv);
196 void update_config();
197 void save_state(FILEIO* state_fio);
198 bool load_state(FILEIO* state_fio);
200 // ----------------------------------------
202 // ----------------------------------------
205 DEVICE* get_device(int id);
207 DEVICE* first_device;