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"
25 class PSUB : public DEVICE
28 DEVICE *d_pio, *d_timer;
32 bool play, rec, is_wav, is_p6t;
33 _TCHAR rec_file_path[_MAX_PATH];
38 int CasBaud, FileBaud;
39 uint8_t CasData[0x10000];
43 // const uint8_t* key_stat;
44 uint8_t key_stat[256];
54 void update_keyboard();
57 PSUB(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
59 set_device_name(_T("Pseudo Sub System"));
67 void write_io8(uint32_t addr, uint32_t data);
68 uint32_t read_io8(uint32_t addr);
70 void event_callback(int event_id, int err);
71 uint32_t get_intr_ack();
72 bool process_state(FILEIO* state_fio, bool loading);
75 void set_context_pio(DEVICE* device)
79 void set_context_timer(DEVICE* device)
83 bool play_tape(const _TCHAR* file_path);
84 bool rec_tape(const _TCHAR* file_path);
86 bool is_tape_inserted()
90 void key_down(int code);
91 void key_up(int code);