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
37 #define USE_SOUND_VOLUME 2
41 #include "../../common.h"
42 #include "../../fileio.h"
44 #ifdef USE_SOUND_VOLUME
45 static const _TCHAR *sound_device_caption[] = {
48 static const bool sound_device_monophonic[] = {
92 // ----------------------------------------
94 // ----------------------------------------
99 // ----------------------------------------
100 // for emulation class
101 // ----------------------------------------
103 // drive virtual machine
110 DEVICE *get_cpu(int index);
117 void initialize_sound(int rate, int samples);
118 uint16* create_sound(int* extra_frames);
119 int sound_buffer_ptr();
120 #ifdef USE_SOUND_VOLUME
121 void set_sound_device_volume(int ch, int decibel_l, int decibel_r);
125 void key_down(int code, bool repeat);
126 void key_up(int code);
129 void play_tape(const _TCHAR* file_path);
130 void rec_tape(const _TCHAR* file_path);
132 bool tape_inserted();
134 bool tape_recording();
138 void update_config();
139 void save_state(FILEIO* state_fio);
140 bool load_state(FILEIO* state_fio);
142 // ----------------------------------------
144 // ----------------------------------------
147 DEVICE* get_device(int id);
149 DEVICE* first_device;