2 SHARP MZ-80B Emulator 'EmuZ-80B'
3 SHARP MZ-2200 Emulator 'EmuZ-2200'
5 Author : Takeda.Toshiya
15 #define DEVICE_NAME "SHARP MZ-80B"
16 #define CONFIG_NAME "mz80b"
17 #elif defined(_MZ2000)
18 #define DEVICE_NAME "SHARP MZ-2000"
19 #define CONFIG_NAME "mz2000"
21 #define DEVICE_NAME "SHARP MZ-2200"
22 #define CONFIG_NAME "mz2200"
26 #define SUPPORT_QUICK_DISK
27 #define SUPPORT_16BIT_BOARD
30 // device informations for virtual machine
31 #define FRAMES_PER_SEC 60
32 #define LINES_PER_FRAME 262
33 #define CPU_CLOCKS 4000000
34 #define SCREEN_WIDTH 640
35 #define SCREEN_HEIGHT 400
38 #ifdef SUPPORT_QUICK_DISK
40 #ifdef SUPPORT_16BIT_BOARD
42 #define I8259_MAX_CHIPS 1
45 #define SCREEN_WIDTH_ASPECT SCREEN_WIDTH
46 #define SCREEN_HEIGHT_ASPECT SCREEN_HEIGHT
47 #define WINDOW_WIDTH_ASPECT 640
48 #define WINDOW_HEIGHT_ASPECT 480
51 #define Z80_MEMORY_WAIT
54 // device informations for win32
55 #define USE_SPECIAL_RESET
60 #ifdef SUPPORT_QUICK_DISK
64 #define USE_TAPE_BUTTON
65 #define USE_SHIFT_NUMPAD_KEY
66 #define USE_ALT_F10_KEY
67 #define USE_AUTO_KEY 5
68 #define USE_AUTO_KEY_RELEASE 6
69 #define USE_AUTO_KEY_CAPS
71 #define USE_MONITOR_TYPE 2
72 #define USE_CRT_FILTER
75 #define USE_ACCESS_LAMP
79 #include "../../common.h"
80 #include "../../fileio.h"
103 #ifdef SUPPORT_QUICK_DISK
108 #ifdef SUPPORT_16BIT_BOARD
139 #ifdef SUPPORT_QUICK_DISK
144 #ifdef SUPPORT_16BIT_BOARD
152 // ----------------------------------------
154 // ----------------------------------------
159 // ----------------------------------------
160 // for emulation class
161 // ----------------------------------------
163 // drive virtual machine
165 void special_reset();
170 DEVICE *get_cpu(int index);
178 void initialize_sound(int rate, int samples);
179 uint16* create_sound(int* extra_frames);
180 int sound_buffer_ptr();
183 void open_disk(int drv, _TCHAR* file_path, int bank);
184 void close_disk(int drv);
185 bool disk_inserted(int drv);
186 #ifdef SUPPORT_QUICK_DISK
187 void open_quickdisk(int drv, _TCHAR* file_path);
188 void close_quickdisk(int drv);
189 bool quickdisk_inserted(int drv);
191 void play_tape(_TCHAR* file_path);
192 void rec_tape(_TCHAR* file_path);
194 bool tape_inserted();
197 void push_fast_forward();
198 void push_fast_rewind();
199 void push_apss_forward() {}
200 void push_apss_rewind() {}
202 void update_config();
203 void save_state(FILEIO* state_fio);
204 bool load_state(FILEIO* state_fio);
205 bool get_tape_play();
206 // ----------------------------------------
208 // ----------------------------------------
211 DEVICE* get_device(int id);
213 DEVICE* first_device;