2 SANYO PHC-20 Emulator 'ePHC-20'
4 Author : Takeda.Toshiya
13 #define DEVICE_NAME "SANYO PHC-20"
14 #define CONFIG_NAME "phc20"
16 // device informations for virtual machine
17 #define FRAMES_PER_SEC 60
18 #define LINES_PER_FRAME 262
19 #define CPU_CLOCKS 4000000
20 #define SCREEN_WIDTH 256
21 #define SCREEN_HEIGHT 192
23 #define MC6847_VRAM_INV 0x40
25 // device informations for win32
27 #define USE_ALT_F10_KEY
28 #define USE_AUTO_KEY 6
29 #define USE_AUTO_KEY_RELEASE 10
30 #define USE_AUTO_KEY_NO_CAPS
34 #include "../../common.h"
63 // ----------------------------------------
65 // ----------------------------------------
70 // ----------------------------------------
71 // for emulation class
72 // ----------------------------------------
74 // drive virtual machine
80 DEVICE *get_cpu(int index);
87 void initialize_sound(int rate, int samples);
88 uint16* create_sound(int* extra_frames);
89 int sound_buffer_ptr();
92 void play_tape(_TCHAR* file_path);
93 void rec_tape(_TCHAR* file_path);
99 void save_state(FILEIO* state_fio);
100 bool load_state(FILEIO* state_fio);
102 // ----------------------------------------
104 // ----------------------------------------
107 DEVICE* get_device(int id);
109 DEVICE* first_device;