2 Japan Electronics College MYCOMZ-80A Emulator 'eMYCOMZ-80A'
\r
4 Author : Takeda.Toshiya
\r
10 #ifndef _MYCOMZ80A_H_
\r
11 #define _MYCOMZ80A_H_
\r
13 #define DEVICE_NAME "Japan Electronics College MYCOMZ-80A"
\r
14 #define CONFIG_NAME "mycomz80a"
\r
16 // device informations for virtual machine
\r
17 #define FRAMES_PER_SEC 60.58
\r
18 #define LINES_PER_FRAME 260
\r
19 #define CHARS_PER_LINE 64
\r
20 #define HD46505_HORIZ_FREQ 15750
\r
21 #define CPU_CLOCKS 2500000
\r
22 #define SCREEN_WIDTH 640
\r
23 #define SCREEN_HEIGHT 400
\r
24 #define SUPPORT_VARIABLE_TIMING
\r
27 // device informations for win32
\r
29 #define NOTIFY_KEY_DOWN
\r
30 #define USE_SHIFT_NUMPAD_KEY
\r
31 #define USE_ALT_F10_KEY
\r
32 #define USE_AUTO_KEY 5
\r
33 #define USE_AUTO_KEY_RELEASE 6
\r
34 #define USE_AUTO_KEY_CAPS
\r
35 #define USE_CRT_FILTER
\r
36 #define USE_SCANLINE
\r
37 #define USE_DEBUGGER
\r
39 #include "../../common.h"
\r
80 // ----------------------------------------
\r
82 // ----------------------------------------
\r
84 VM(EMU* parent_emu);
\r
87 // ----------------------------------------
\r
88 // for emulation class
\r
89 // ----------------------------------------
\r
91 // drive virtual machine
\r
94 double frame_rate();
\r
98 DEVICE *get_cpu(int index);
\r
102 void draw_screen();
\r
104 // sound generation
\r
105 void initialize_sound(int rate, int samples);
\r
106 uint16* create_sound(int* extra_frames);
\r
107 int sound_buffer_ptr();
\r
110 void key_down(int code, bool repeat);
\r
111 void key_up(int code);
\r
114 void play_tape(_TCHAR* file_path);
\r
115 void rec_tape(_TCHAR* file_path);
\r
117 bool tape_inserted();
\r
120 void update_config();
\r
122 // ----------------------------------------
\r
124 // ----------------------------------------
\r
127 DEVICE* get_device(int id);
\r
129 DEVICE* first_device;
\r
130 DEVICE* last_device;
\r