// device informations for win32
#define USE_SPECIAL_RESET
#ifdef _X1TURBO_FEATURE
-#define USE_DEVICE_TYPE 2
+#define USE_KEYBOARD_TYPE 2
// Keyboard mode B
-#define DEVICE_TYPE_DEFAULT 1
-#define USE_DRIVE_TYPE 2
+#define KEYBOARD_TYPE_DEFAULT 1
+#define USE_DRIVE_TYPE 3
#endif
#define USE_FD1
#define USE_FD2
#define FD_BASE_NUMBER 0
-#define USE_TAPE
+#define USE_TAPE1
#define USE_TAPE_BUTTON
#ifdef _X1TWIN
#define USE_CART1
#endif
#define NOTIFY_KEY_DOWN
+#define USE_KEY_LOCKED
#define USE_SHIFT_NUMPAD_KEY
#define USE_ALT_F10_KEY
#define USE_AUTO_KEY 8
#define USE_AUTO_KEY_RELEASE 10
+#define USE_AUTO_KEY_NUMPAD
#define USE_MONITOR_TYPE 2
-#define USE_CRT_FILTER
+#define USE_SCREEN_FILTER
#define USE_SCANLINE
-#define USE_ACCESS_LAMP
-#define USE_SOUND_DEVICE_TYPE 3
+#define USE_SOUND_TYPE 3
// ToDo
-#define DATAREC_SOUND
-#define USE_SOUND_FILES 5
-#define USE_SOUND_FILES_FDD
-#define USE_SOUND_FILES_BUTTONS
-#define SUPPORT_ROMA_KANA_CONVERSION
+//#define DATAREC_SOUND
// CZ-8BS1 x1
-#define SOUND_DEVICE_TYPE_DEFAULT 1
-#if defined(USE_SOUND_FILES)
+#define SOUND_TYPE_DEFAULT 1
# if defined(_X1TWIN)
# define USE_SOUND_VOLUME 7
# else
# define USE_SOUND_VOLUME 6
# endif
-#else
-# if defined(_X1TWIN)
-# define USE_SOUND_VOLUME 5
-# else
-# define USE_SOUND_VOLUME 4
-# endif
-#endif
+#define SUPPORT_TV_RENDER
#define USE_JOYSTICK
+#ifdef _X1TWIN
+#define USE_JOYSTICK_TYPE 4
+#define JOYSTICK_TYPE_DEFAULT 0
+#endif
#define USE_JOY_BUTTON_CAPTIONS
#define USE_MOUSE
#define USE_PRINTER
#define USE_PRINTER_TYPE 4
#define USE_DEBUGGER
#define USE_STATE
+#define USE_CPU_Z80
+#define USE_CPU_MCS48
#include "../../common.h"
#include "../../fileio.h"
#ifdef USE_SOUND_VOLUME
static const _TCHAR *sound_device_caption[] = {
- _T("PSG"), _T("CZ-8BS1 #1"), _T("CZ-8BS1 #2"), _T("CMT"),
+ _T("PSG"), _T("CZ-8BS1 #1"), _T("CZ-8BS1 #2"), _T("CMT (Signal)"), _T("Noise (FDD)"), _T("Noise (CMT)"),
#if defined(_X1TWIN)
- _T("Voice"),
-#endif
-#if defined(USE_SOUND_FILES)
- _T("FDD SEEK"), _T("CMT BUTTONS"),
+ _T("PC Engine PSG"),
#endif
};
#endif
class IO;
class MB8877;
class YM2151;
-class YM2203;
+//class YM2203;
+class AY_3_891X;
class Z80;
class Z80CTC;
class Z80SIO;
#ifdef _X1TWIN
class HUC6280;
class PCE;
+#define USE_CPU_HUC6280
#endif
class VM
{
MB8877* fdc;
YM2151* opm1;
YM2151* opm2;
- YM2203* psg;
+// YM2203* psg;
+ AY_3_891X* psg;
Z80* cpu;
Z80CTC* ctc;
Z80SIO* sio;
KEYBOARD* kbd;
bool pseudo_sub_cpu;
- int sound_device_type;
+ int sound_type;
#ifdef _X1TWIN
// device for pce
// draw screen
void draw_screen();
- uint32_t get_access_lamp_status();
// sound generation
void initialize_sound(int rate, int samples);
// notify key
void key_down(int code, bool repeat);
void key_up(int code);
+ bool get_caps_locked();
+ bool get_kana_locked();
// user interface
void open_floppy_disk(int drv, const _TCHAR* file_path, int bank);
bool is_floppy_disk_inserted(int drv);
void is_floppy_disk_protected(int drv, bool value);
bool is_floppy_disk_protected(int drv);
- void play_tape(const _TCHAR* file_path);
- void rec_tape(const _TCHAR* file_path);
- void close_tape();
- bool is_tape_inserted();
- bool is_tape_playing();
- bool is_tape_recording();
- int get_tape_position();
- void push_play();
- void push_stop();
- void push_fast_forward();
- void push_fast_rewind();
- void push_apss_forward();
- void push_apss_rewind();
+ uint32_t is_floppy_disk_accessed();
+ void play_tape(int drv, const _TCHAR* file_path);
+ void rec_tape(int drv, const _TCHAR* file_path);
+ void close_tape(int drv);
+ bool is_tape_inserted(int drv);
+ bool is_tape_playing(int drv);
+ bool is_tape_recording(int drv);
+ int get_tape_position(int drv);
+ const _TCHAR* get_tape_message(int drv);
+ void push_play(int drv);
+ void push_stop(int drv);
+ void push_fast_forward(int drv);
+ void push_fast_rewind(int drv);
+ void push_apss_forward(int drv);
+ void push_apss_rewind(int drv);
bool is_frame_skippable();
#ifdef _X1TWIN
void open_cart(int drv, const _TCHAR* file_path);