2 SHARP MZ-80K/C Emulator 'EmuZ-80K'
3 SHARP MZ-1200 Emulator 'EmuZ-1200'
5 Author : Takeda.Toshiya
8 SHARP MZ-80A Emulator 'EmuZ-80A'
19 #define DEVICE_NAME "SHARP MZ-1200"
20 #define CONFIG_NAME "mz1200"
22 #define DEVICE_NAME "SHARP MZ-80A"
23 #define CONFIG_NAME "mz80a"
25 #define DEVICE_NAME "SHARP MZ-80K/C"
26 #define CONFIG_NAME "mz80k"
30 #define SUPPORT_MZ80AIF
32 #define SUPPORT_MZ80FIO
35 // device informations for virtual machine
36 #define FRAMES_PER_SEC 60
37 #define LINES_PER_FRAME 262
38 #define CPU_CLOCKS 2000000
39 #define SCREEN_WIDTH 320
40 #define SCREEN_HEIGHT 200
41 #if defined(SUPPORT_MZ80AIF)
44 #elif defined(SUPPORT_MZ80FIO)
49 #define SCREEN_WIDTH_ASPECT SCREEN_WIDTH
50 #define SCREEN_HEIGHT_ASPECT SCREEN_HEIGHT
51 #define WINDOW_WIDTH_ASPECT 640
52 #define WINDOW_HEIGHT_ASPECT 480
54 // device informations for win32
57 #define USE_TAPE_BUTTON
58 #define NOTIFY_KEY_DOWN
59 #define USE_SHIFT_NUMPAD_KEY
60 #define USE_ALT_F10_KEY
61 #define USE_AUTO_KEY 5
62 #define USE_AUTO_KEY_RELEASE 6
63 #define USE_AUTO_KEY_NO_CAPS
66 #if defined(SUPPORT_MZ80AIF) || defined(SUPPORT_MZ80FIO)
71 #define USE_ACCESS_LAMP
72 #define USE_DISK_WRITE_PROTECT
75 #define USE_MONITOR_TYPE 2
78 #include "../../common.h"
79 #include "../../fileio.h"
85 #if defined(_MZ1200) || defined(_MZ80A)
99 #if defined(SUPPORT_MZ80AIF)
103 #elif defined(SUPPORT_MZ80FIO)
117 #if defined(_MZ1200) || defined(_MZ80A)
118 AND* l_and; // and is reserved word.
131 #if defined(SUPPORT_MZ80AIF)
135 #elif defined(SUPPORT_MZ80FIO)
142 // ----------------------------------------
144 // ----------------------------------------
149 // ----------------------------------------
150 // for emulation class
151 // ----------------------------------------
153 // drive virtual machine
159 DEVICE *get_cpu(int index);
164 #if defined(SUPPORT_MZ80AIF) || defined(SUPPORT_MZ80FIO)
169 void initialize_sound(int rate, int samples);
170 uint16* create_sound(int* extra_frames);
171 int sound_buffer_ptr();
174 void key_down(int code, bool repeat);
175 void key_up(int code);
178 #if defined(SUPPORT_MZ80AIF) || defined(SUPPORT_MZ80FIO)
179 void open_disk(int drv, const _TCHAR* file_path, int bank);
180 void close_disk(int drv);
181 bool disk_inserted(int drv);
182 void set_disk_protected(int drv, bool value);
183 bool get_disk_protected(int drv);
185 void play_tape(const _TCHAR* file_path);
186 void rec_tape(const _TCHAR* file_path);
188 bool tape_inserted();
189 #if defined(USE_TAPE_PTR)
190 int get_tape_ptr(void);
192 bool get_tape_play(void);
195 void push_fast_forward();
196 void push_fast_rewind();
197 void push_apss_forward() {}
198 void push_apss_rewind() {}
201 void update_config();
202 void save_state(FILEIO* state_fio);
203 bool load_state(FILEIO* state_fio);
205 // ----------------------------------------
207 // ----------------------------------------
210 DEVICE* get_device(int id);
212 DEVICE* first_device;