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'
8 Author : Takeda.Toshiya
18 #include "../../emu.h"
19 #include "../device.h"
21 #define SIG_SUB_DATAREC 0
22 #define SIG_SUB_RXRDY 1
26 class SUB : public DEVICE
29 DEVICE *d_pio, *d_drec, *d_timer;
32 bool drec_in, rxrdy_in;
36 bool rec, is_wav, is_p6t;
37 int prev_command, baud, index;
39 uint8 buffer[0x10000];
42 SUB(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {}
49 void write_io8(uint32 addr, uint32 data);
50 uint32 read_io8(uint32 addr);
53 void event_callback(int event_id, int err);
54 void write_signal(int id, uint32 data, uint32 mask);
57 void set_context_pio(DEVICE* device)
61 void set_context_drec(DEVICE* device)
65 void set_context_timer(DEVICE* device)
69 bool rec_tape(_TCHAR* file_path);