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 CasData[0x10000];
41 // const uint8* key_stat;
52 void update_keyboard();
55 PSUB(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {}
62 void write_io8(uint32 addr, uint32 data);
63 uint32 read_io8(uint32 addr);
65 void event_callback(int event_id, int err);
67 void save_state(FILEIO* state_fio);
68 bool load_state(FILEIO* state_fio);
71 void set_context_pio(DEVICE* device)
75 void set_context_timer(DEVICE* device)
79 bool play_tape(const _TCHAR* file_path);
80 bool rec_tape(const _TCHAR* file_path);
86 void key_down(int code);
87 void key_up(int code);