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
25 // device informations for win32
26 #define WINDOW_WIDTH (SCREEN_WIDTH * 3)
27 #define WINDOW_HEIGHT (SCREEN_HEIGHT * 3)
30 #define DIPSWITCH_DEFAULT 0x07
34 #define TAPE_BINARY_ONLY
35 #define NOTIFY_KEY_DOWN
36 #define USE_ALT_F10_KEY
37 #define USE_AUTO_KEY 6
38 #define USE_AUTO_KEY_RELEASE 12
39 #define USE_AUTO_KEY_CAPS
40 #define DONT_KEEEP_KEY_PRESSED
42 #define USE_ACCESS_LAMP
45 #include "../../common.h"
74 // ----------------------------------------
76 // ----------------------------------------
81 // ----------------------------------------
82 // for emulation class
83 // ----------------------------------------
85 // drive virtual machine
87 void notify_power_off();
92 DEVICE *get_cpu(int index);
100 void initialize_sound(int rate, int samples);
101 uint16* create_sound(int* extra_frames);
102 int sound_buffer_ptr();
105 void key_down(int code, bool repeat);
106 void key_up(int code);
109 void open_disk(int drv, _TCHAR* file_path, int bank);
110 void close_disk(int drv);
111 bool disk_inserted(int drv);
112 bool is_write_protect_fd(int drv);
113 void write_protect_fd(int drv, bool flag);
114 void play_tape(_TCHAR* file_path);
115 void rec_tape(_TCHAR* file_path);
117 bool tape_inserted();
118 int get_tape_ptr(void);
122 void update_config();
124 // ----------------------------------------
126 // ----------------------------------------
129 DEVICE* get_device(int id);
131 DEVICE* first_device;