DEVICE* d_sio;
FILEIO* fio;
- int bufcnt;
- uint8 buffer[BUFFER_SIZE];
bool play, rec;
+ _TCHAR rec_file_path[_MAX_PATH];
+ int bufcnt;
+ uint8_t buffer[BUFFER_SIZE];
void release_tape();
void initialize();
void release();
void reset();
- void write_signal(int id, uint32 data, uint32 mask);
+ void write_signal(int id, uint32_t data, uint32_t mask);
+ void save_state(FILEIO* state_fio);
+ bool load_state(FILEIO* state_fio);
// unique functions
void play_tape(const _TCHAR* file_path);
void rec_tape(const _TCHAR* file_path);
void close_tape();
- bool tape_inserted()
+ bool is_tape_inserted()
{
return (play || rec);
}