2 EPSON HC-40 Emulator 'eHC-40'
4 Author : Takeda.Toshiya
13 #define DEVICE_NAME "EPSON HC-40"
14 #define CONFIG_NAME "hc40"
16 // device informations for virtual machine
17 #define FRAMES_PER_SEC 72
18 #define LINES_PER_FRAME 64
19 #define CPU_CLOCKS 3686400
20 #define SCREEN_WIDTH 240
21 #define SCREEN_HEIGHT 64
24 // device informations for win32
25 #define WINDOW_WIDTH (SCREEN_WIDTH * 2)
26 #define WINDOW_HEIGHT (SCREEN_HEIGHT * 2)
28 #define USE_SPECIAL_RESET
34 #define NOTIFY_KEY_DOWN
35 #define USE_ALT_F10_KEY
36 #define USE_AUTO_KEY 6
37 #define USE_AUTO_KEY_RELEASE 10
38 #define USE_ACCESS_LAMP
41 #include "../../common.h"
72 // ----------------------------------------
74 // ----------------------------------------
79 // ----------------------------------------
80 // for emulation class
81 // ----------------------------------------
83 // drive virtual machine
90 DEVICE *get_cpu(int index);
98 void initialize_sound(int rate, int samples);
99 uint16* create_sound(int* extra_frames);
100 int sound_buffer_ptr();
103 void key_down(int code, bool repeat);
104 void key_up(int code);
107 void open_disk(int drv, _TCHAR* file_path, int offset);
108 void close_disk(int drv);
109 bool disk_inserted(int drv);
110 void play_tape(_TCHAR* file_path);
111 void rec_tape(_TCHAR* file_path);
113 bool tape_inserted();
116 void update_config();
118 // ----------------------------------------
120 // ----------------------------------------
123 DEVICE* get_device(int id);
125 DEVICE* first_device;