2 SANYO PHC-25 Emulator 'ePHC-25'
3 SEIKO MAP-1010 Emulator 'eMAP-1010'
5 Author : Takeda.Toshiya
15 #define DEVICE_NAME "SEIKO MAP-1010"
16 #define CONFIG_NAME "map1010"
18 #define DEVICE_NAME "SANYO PHC-25"
19 #define CONFIG_NAME "phc25"
22 // device informations for virtual machine
23 #define FRAMES_PER_SEC 60
24 #define LINES_PER_FRAME 262
25 #define CPU_CLOCKS 4000000
26 #define SCREEN_WIDTH 256
27 #define SCREEN_HEIGHT 192
29 #define MC6847_ATTR_OFS 0x800
30 #define MC6847_ATTR_INV 0x01
31 #define MC6847_ATTR_AS 0x02
32 #define MC6847_ATTR_CSS 0x04
35 // device informations for win32
37 #define USE_ALT_F10_KEY
38 #define USE_AUTO_KEY 6
39 #define USE_AUTO_KEY_RELEASE 10
40 #define USE_AUTO_KEY_CAPS
41 #define USE_SOUND_FILES 2
42 #define USE_SOUND_FILES_RELAY
43 #if defined(USE_SOUND_FILES)
44 #define USE_SOUND_VOLUME 3
46 #define USE_SOUND_VOLUME 2
52 #include "../../common.h"
53 #include "../../fileio.h"
55 #ifdef USE_SOUND_VOLUME
56 static const _TCHAR *sound_device_caption[] = {
58 #if defined(USE_SOUND_FILES)
103 // ----------------------------------------
105 // ----------------------------------------
110 // ----------------------------------------
111 // for emulation class
112 // ----------------------------------------
114 // drive virtual machine
120 DEVICE *get_cpu(int index);
127 void initialize_sound(int rate, int samples);
128 uint16_t* create_sound(int* extra_frames);
129 int get_sound_buffer_ptr();
130 #ifdef USE_SOUND_VOLUME
131 void set_sound_device_volume(int ch, int decibel_l, int decibel_r);
135 void play_tape(const _TCHAR* file_path);
136 void rec_tape(const _TCHAR* file_path);
138 bool is_tape_inserted();
139 bool is_tape_playing();
140 bool is_tape_recording();
141 int get_tape_position();
142 bool is_frame_skippable();
144 void update_config();
145 void save_state(FILEIO* state_fio);
146 bool load_state(FILEIO* state_fio);
148 // ----------------------------------------
150 // ----------------------------------------
153 DEVICE* get_device(int id);
155 DEVICE* first_device;