2 NEC PC-9801 Emulator 'ePC-9801'
3 NEC PC-9801E/F/M Emulator 'ePC-9801E'
5 Author : Takeda.Toshiya
15 #include "../../emu.h"
16 #include "../device.h"
19 #define SIG_CMT_TXRDY 1
20 #define SIG_CMT_RXRDY 2
21 #define SIG_CMT_TXEMP 3
24 #define BUFFER_SIZE 0x40000
28 class CMT : public DEVICE
35 uint8_t buffer[BUFFER_SIZE];
36 bool play, rec, remote;
41 CMT(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
43 set_device_name(_T("CMT I/F"));
51 void write_io8(uint32_t addr, uint32_t data);
52 void write_signal(int id, uint32_t data, uint32_t mask);
53 bool process_state(FILEIO* state_fio, bool loading);
56 void set_context_sio(DEVICE* device)
60 void play_tape(const _TCHAR* file_path);
61 void rec_tape(const _TCHAR* file_path);
63 bool is_tape_inserted()