2 CANON X-07 Emulator 'eX-07'
4 Author : Takeda.Toshiya
13 #define DEVICE_NAME "CANON X-07"
14 #define CONFIG_NAME "x07"
16 // device informations for virtual machine
17 #define FRAMES_PER_SEC 60
18 #define LINES_PER_FRAME 262
19 #define CPU_CLOCKS 3840000
20 #define CPU_START_ADDR 0xc3c3
21 #define SCREEN_WIDTH 120
22 #define SCREEN_HEIGHT 32
23 #define TV_SCREEN_WIDTH 256
24 #define TV_SCREEN_HEIGHT 192
26 #define MEMORY_ADDR_MAX 0x10000
27 #define MEMORY_BANK_SIZE 0x800
29 // device informations for win32
30 #define WINDOW_WIDTH (SCREEN_WIDTH * 2)
31 #define WINDOW_HEIGHT (SCREEN_HEIGHT * 2)
32 #define TV_WINDOW_WIDTH TV_SCREEN_WIDTH
33 #define TV_WINDOW_HEIGHT TV_SCREEN_HEIGHT
36 #define TAPE_BINARY_ONLY
37 #define NOTIFY_KEY_DOWN
38 #define USE_ALT_F10_KEY
39 #define USE_AUTO_KEY 6
40 #define USE_AUTO_KEY_RELEASE 10
41 #define USE_AUTO_KEY_CAPS
45 #include "../../common.h"
57 #include "../../fileio.h"
82 // ----------------------------------------
84 // ----------------------------------------
89 // ----------------------------------------
90 // for emulation class
91 // ----------------------------------------
93 // drive virtual machine
99 DEVICE *get_cpu(int index);
106 void initialize_sound(int rate, int samples);
107 uint16* create_sound(int* extra_frames);
108 int sound_buffer_ptr();
111 void key_down(int code, bool repeat);
112 void key_up(int code);
115 void play_tape(_TCHAR* file_path);
116 void rec_tape(_TCHAR* file_path);
118 bool tape_inserted();
121 void update_config();
122 void save_state(FILEIO* state_fio);
123 bool load_state(FILEIO* state_fio);
125 // ----------------------------------------
127 // ----------------------------------------
130 DEVICE* get_device(int id);
132 DEVICE* first_device;