2 MITSUBISHI Electric MULTI8 Emulator 'EmuLTI8'
4 Author : Takeda.Toshiya
13 #define DEVICE_NAME "MITSUBISHI Electric MULTI 8"
14 #define CONFIG_NAME "multi8"
16 // device informations for virtual machine
17 #define FRAMES_PER_SEC 60.58
18 #define LINES_PER_FRAME 260
19 #define CHARS_PER_LINE 112
20 #define HD46505_HORIZ_FREQ 15750
21 #define CPU_CLOCKS 3993600
22 #define SCREEN_WIDTH 640
23 #define SCREEN_HEIGHT 400
24 #define WINDOW_HEIGHT_ASPECT 480
25 #define I8259_MAX_CHIPS 1
27 #define UPD765A_DONT_WAIT_SEEK
29 #define SUPPORT_VARIABLE_TIMING
31 // device informations for win32
32 #define SUPPORT_TV_RENDER
34 #define TAPE_BINARY_ONLY
35 #define USE_FLOPPY_DISK 2
36 #define USE_KEY_LOCKED
37 #define USE_SHIFT_NUMPAD_KEY
38 #define USE_ALT_F10_KEY
39 #define USE_AUTO_KEY 5
40 #define USE_AUTO_KEY_RELEASE 6
41 #define USE_AUTO_KEY_CAPS
42 #define USE_AUTO_KEY_NUMPAD
43 #define USE_SCREEN_FILTER
46 #define USE_SOUND_VOLUME 3
51 #include "../../common.h"
52 #include "../../fileio.h"
53 #include "../vm_template.h"
55 #ifdef USE_SOUND_VOLUME
56 static const _TCHAR *sound_device_caption[] = {
57 _T("PSG"), _T("Beep"), _T("Noise (FDD)"),
61 class csp_state_utils;
85 class VM : public VM_TEMPLATE
89 //csp_state_utils *state_entry;
114 // ----------------------------------------
116 // ----------------------------------------
121 // ----------------------------------------
122 // for emulation class
123 // ----------------------------------------
125 // drive virtual machine
128 double get_frame_rate();
132 DEVICE *get_cpu(int index);
139 void initialize_sound(int rate, int samples);
140 uint16_t* create_sound(int* extra_frames);
141 int get_sound_buffer_ptr();
142 #ifdef USE_SOUND_VOLUME
143 void set_sound_device_volume(int ch, int decibel_l, int decibel_r);
147 bool get_caps_locked();
148 bool get_kana_locked();
151 void open_floppy_disk(int drv, const _TCHAR* file_path, int bank);
152 void close_floppy_disk(int drv);
153 bool is_floppy_disk_inserted(int drv);
154 void is_floppy_disk_protected(int drv, bool value);
155 bool is_floppy_disk_protected(int drv);
156 uint32_t is_floppy_disk_accessed();
157 void play_tape(int drv, const _TCHAR* file_path);
158 void rec_tape(int drv, const _TCHAR* file_path);
159 void close_tape(int drv);
160 bool is_tape_inserted(int drv);
161 bool is_frame_skippable();
163 void update_config();
165 void save_state(FILEIO* state_fio);
166 bool load_state(FILEIO* state_fio);
168 // ----------------------------------------
170 // ----------------------------------------
173 DEVICE* get_device(int id);
175 //DEVICE* first_device;
176 //DEVICE* last_device;