2 TOSHIBA J-3100GT Emulator 'eJ-3100GT'
3 TOSHIBA J-3100SL Emulator 'eJ-3100SL'
5 Author : Takeda.Toshiya
15 #define DEVICE_NAME "TOSHIBA J-3100GT"
16 #define CONFIG_NAME "j3100gt"
17 #elif defined(_J3100SL)
18 #define DEVICE_NAME "TOSHIBA J-3100SL"
19 #define CONFIG_NAME "j3100sl"
22 // device informations for virtual machine
24 #if defined(_J3100SL) || defined(_J3100SS) || defined(_J3100SE)
28 // TODO: check refresh rate
29 #define FRAMES_PER_SEC 59.9
31 #define LINES_PER_FRAME 440
32 #define CHARS_PER_LINE 54
33 #define CPU_CLOCKS 9545456
34 #define SCREEN_WIDTH 640
35 #define SCREEN_HEIGHT 400
37 #define UPD765A_SENCE_INTSTAT_RESULT
38 #define UPD765A_EXT_DRVSEL
41 #define I8259_MAX_CHIPS 1
44 #define I8259_MAX_CHIPS 2
46 #if !(defined(_J3100SS) || defined(_J3100SE))
49 #define SINGLE_MODE_DMA
50 #define IO_ADDR_MAX 0x10000
52 // device informations for win32
55 #define NOTIFY_KEY_DOWN
56 #define USE_ALT_F10_KEY
57 #define USE_AUTO_KEY 5
58 #define USE_AUTO_KEY_RELEASE 6
59 #define USE_ACCESS_LAMP
61 #include "../../common.h"
62 #include "../../fileio.h"
124 // ----------------------------------------
126 // ----------------------------------------
131 // ----------------------------------------
132 // for emulation class
133 // ----------------------------------------
135 // drive virtual machine
137 void notify_power_off();
145 void initialize_sound(int rate, int samples);
146 uint16* create_sound(int* extra_frames);
147 int sound_buffer_ptr();
150 void key_down(int code, bool repeat);
151 void key_up(int code);
154 void open_disk(int drv, _TCHAR* file_path, int bank);
155 void close_disk(int drv);
156 bool disk_inserted(int drv);
159 void update_config();
160 void register_frame_event(DEVICE* dev);
162 // ----------------------------------------
164 // ----------------------------------------
167 DEVICE* get_device(int id);
169 DEVICE* first_device;