2 SHARP MZ-80K 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"
26 #define CONFIG_NAME "mz80k"
30 #define SUPPORT_MZ80AIF
33 // device informations for virtual machine
34 #define FRAMES_PER_SEC 60
35 #define LINES_PER_FRAME 262
36 #define CPU_CLOCKS 2000000
37 #define SCREEN_WIDTH 320
38 #define SCREEN_HEIGHT 200
39 #ifdef SUPPORT_MZ80AIF
44 // device informations for win32
46 #define USE_TAPE_BUTTON
47 #define USE_SHIFT_NUMPAD_KEY
48 #define USE_ALT_F10_KEY
49 #define USE_AUTO_KEY 5
50 #define USE_AUTO_KEY_RELEASE 6
51 #define USE_AUTO_KEY_NO_CAPS
54 #ifdef SUPPORT_MZ80AIF
59 #define USE_ACCESS_LAMP
62 #include "../../common.h"
68 #if defined(_MZ1200) || defined(_MZ80A)
82 #ifdef SUPPORT_MZ80AIF
98 #if defined(_MZ1200) || defined(_MZ80A)
99 AND* l_and; // and is reserved word.
112 #ifdef SUPPORT_MZ80AIF
119 // ----------------------------------------
121 // ----------------------------------------
126 // ----------------------------------------
127 // for emulation class
128 // ----------------------------------------
130 // drive virtual machine
136 DEVICE *get_cpu(int index);
141 #ifdef SUPPORT_MZ80AIF
146 void initialize_sound(int rate, int samples);
147 uint16* create_sound(int* extra_frames);
148 int sound_buffer_ptr();
151 #ifdef SUPPORT_MZ80AIF
152 void open_disk(int drv, _TCHAR* file_path, int bank);
153 void close_disk(int drv);
154 bool disk_inserted(int drv);
155 void write_protect_fd(int drv, bool flag);
156 bool is_write_protect_fd(int drv);
158 void play_tape(_TCHAR* file_path);
159 void rec_tape(_TCHAR* file_path);
161 bool tape_inserted();
162 int get_tape_ptr(void);
163 bool get_tape_play(void);
168 void update_config();
169 void save_state(FILEIO* state_fio);
170 bool load_state(FILEIO* state_fio);
172 // ----------------------------------------
174 // ----------------------------------------
177 DEVICE* get_device(int id);
179 DEVICE* first_device;