2 EPSON HC-80 Emulator 'eHC-80'
4 Author : Takeda.Toshiya
13 #define DEVICE_NAME "EPSON HC-80"
14 #define CONFIG_NAME "hc80"
16 // device informations for virtual machine
17 #define FRAMES_PER_SEC 64
18 #define LINES_PER_FRAME 64
19 #define CPU_CLOCKS 2457600
20 #define SCREEN_WIDTH 480
21 #define SCREEN_HEIGHT 64
24 // device informations for win32
25 #define USE_SPECIAL_RESET
26 #define USE_DEVICE_TYPE 3
31 #define NOTIFY_KEY_DOWN
32 #define USE_ALT_F10_KEY
33 #define USE_AUTO_KEY 6
34 #define USE_AUTO_KEY_RELEASE 10
35 #define USE_ACCESS_LAMP
38 #include "../../common.h"
69 // ----------------------------------------
71 // ----------------------------------------
76 // ----------------------------------------
77 // for emulation class
78 // ----------------------------------------
80 // drive virtual machine
87 DEVICE *get_cpu(int index);
95 void initialize_sound(int rate, int samples);
96 uint16* create_sound(int* extra_frames);
97 int sound_buffer_ptr();
100 void key_down(int code, bool repeat);
101 void key_up(int code);
104 void open_disk(int drv, _TCHAR* file_path, int bank);
105 void close_disk(int drv);
106 bool disk_inserted(int drv);
109 void update_config();
111 // ----------------------------------------
113 // ----------------------------------------
116 DEVICE* get_device(int id);
118 DEVICE* first_device;