2 Japan Electronics College MYCOMZ-80A Emulator 'eMYCOMZ-80A'
4 Author : Takeda.Toshiya
13 #define DEVICE_NAME "Japan Electronics College MYCOMZ-80A"
14 #define CONFIG_NAME "mycomz80a"
16 // device informations for virtual machine
17 #define FRAMES_PER_SEC 60.58
18 #define LINES_PER_FRAME 260
19 #define CHARS_PER_LINE 64
20 #define HD46505_HORIZ_FREQ 15750
21 #define CPU_CLOCKS 2500000
22 #define SCREEN_WIDTH 640
23 #define SCREEN_HEIGHT 400
24 #define SUPPORT_VARIABLE_TIMING
27 // device informations for win32
29 #define NOTIFY_KEY_DOWN
30 #define USE_SHIFT_NUMPAD_KEY
31 #define USE_ALT_F10_KEY
32 #define USE_AUTO_KEY 5
33 #define USE_AUTO_KEY_RELEASE 6
34 #define USE_AUTO_KEY_CAPS
35 #define USE_CRT_FILTER
40 #include "../../common.h"
41 #include "../../fileio.h"
82 // ----------------------------------------
84 // ----------------------------------------
89 // ----------------------------------------
90 // for emulation class
91 // ----------------------------------------
93 // drive virtual machine
100 DEVICE *get_cpu(int index);
107 void initialize_sound(int rate, int samples);
108 uint16* create_sound(int* extra_frames);
109 int sound_buffer_ptr();
112 void key_down(int code, bool repeat);
113 void key_up(int code);
116 void play_tape(_TCHAR* file_path);
117 void rec_tape(_TCHAR* file_path);
119 bool tape_inserted();
122 void update_config();
123 void save_state(FILEIO* state_fio);
124 bool load_state(FILEIO* state_fio);
126 // ----------------------------------------
128 // ----------------------------------------
131 DEVICE* get_device(int id);
133 DEVICE* first_device;