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