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
39 #include "../../common.h"
40 #include "../../fileio.h"
71 // ----------------------------------------
73 // ----------------------------------------
78 // ----------------------------------------
79 // for emulation class
80 // ----------------------------------------
82 // drive virtual machine
89 DEVICE *get_cpu(int index);
97 void initialize_sound(int rate, int samples);
98 uint16* create_sound(int* extra_frames);
99 int sound_buffer_ptr();
102 void key_down(int code, bool repeat);
103 void key_up(int code);
106 void open_disk(int drv, _TCHAR* file_path, int bank);
107 void close_disk(int drv);
108 bool disk_inserted(int drv);
111 void update_config();
112 void save_state(FILEIO* state_fio);
113 bool load_state(FILEIO* state_fio);
115 // ----------------------------------------
117 // ----------------------------------------
120 DEVICE* get_device(int id);
122 DEVICE* first_device;