2 NEC PC-6001 Emulator 'yaPC-6001'
3 NEC PC-6001mkII Emulator 'yaPC-6201'
4 NEC PC-6001mkIISR Emulator 'yaPC-6401'
5 NEC PC-6601 Emulator 'yaPC-6601'
6 NEC PC-6601SR Emulator 'yaPC-6801'
18 #include "../../emu.h"
19 #include "../device.h"
23 class PSUB : public DEVICE
26 DEVICE *d_pio, *d_timer;
30 bool play, rec, is_wav, is_p6t;
31 _TCHAR rec_file_path[_MAX_PATH];
36 int CasBaud, FileBaud;
37 uint8_t CasData[0x10000];
41 // const uint8_t* key_stat;
42 uint8_t key_stat[256];
52 void update_keyboard();
55 PSUB(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
57 set_device_name(_T("Pseudo Sub System"));
65 void write_io8(uint32_t addr, uint32_t data);
66 uint32_t read_io8(uint32_t addr);
68 void event_callback(int event_id, int err);
69 uint32_t get_intr_ack();
70 bool process_state(FILEIO* state_fio, bool loading);
73 void set_context_pio(DEVICE* device)
77 void set_context_timer(DEVICE* device)
81 bool play_tape(const _TCHAR* file_path);
82 bool rec_tape(const _TCHAR* file_path);
84 bool is_tape_inserted()
88 void key_down(int code);
89 void key_up(int code);