2 EPSON HC-20 Emulator 'eHC-20'
4 Author : Takeda.Toshiya
13 #define DEVICE_NAME "EPSON HC-20"
14 #define CONFIG_NAME "hc20"
16 // device informations for virtual machine
17 #define FRAMES_PER_SEC 72
18 #define LINES_PER_FRAME 64
19 #define CPU_CLOCKS 614400
20 #define SCREEN_WIDTH 120
21 #define SCREEN_HEIGHT 32
26 // device informations for win32
27 #define WINDOW_WIDTH (SCREEN_WIDTH * 3)
28 #define WINDOW_HEIGHT (SCREEN_HEIGHT * 3)
31 #define DIPSWITCH_DEFAULT 0x0f
35 #define TAPE_BINARY_ONLY
36 #define NOTIFY_KEY_DOWN
37 #define USE_ALT_F10_KEY
38 #define USE_AUTO_KEY 6
39 #define USE_AUTO_KEY_RELEASE 12
40 #define USE_AUTO_KEY_CAPS
41 #define DONT_KEEEP_KEY_PRESSED
43 #define USE_ACCESS_LAMP
46 #include "../../common.h"
84 // ----------------------------------------
86 // ----------------------------------------
91 // ----------------------------------------
92 // for emulation class
93 // ----------------------------------------
95 // drive virtual machine
97 void notify_power_off();
102 DEVICE *get_cpu(int index);
110 void initialize_sound(int rate, int samples);
111 uint16* create_sound(int* extra_frames);
112 int sound_buffer_ptr();
115 void key_down(int code, bool repeat);
116 void key_up(int code);
119 void open_disk(int drv, _TCHAR* file_path, int bank);
120 void close_disk(int drv);
121 bool disk_inserted(int drv);
122 bool is_write_protect_fd(int drv);
123 void write_protect_fd(int drv, bool flag);
124 void play_tape(_TCHAR* file_path);
125 void rec_tape(_TCHAR* file_path);
127 bool tape_inserted();
128 int get_tape_ptr(void);
132 void update_config();
134 // ----------------------------------------
136 // ----------------------------------------
139 DEVICE* get_device(int id);
141 DEVICE* first_device;