1
0
mirror of https://github.com/jscrane/r65emu.git synced 2024-06-01 22:41:30 +00:00
r65emu/sdtape.h

20 lines
274 B
C
Raw Normal View History

2014-11-10 14:16:45 +00:00
#ifndef __SDTAPE_H__
#define __SDTAPE_H__
2014-10-26 17:54:01 +00:00
class sdtape {
public:
const char *advance();
const char *rewind();
2018-09-06 13:21:17 +00:00
bool start(const char *);
2014-10-26 17:54:01 +00:00
void stop();
2018-08-13 13:41:23 +00:00
uint8_t read() { return _buf[_pos++]; }
2014-10-26 17:54:01 +00:00
bool more();
private:
2018-09-06 13:21:17 +00:00
unsigned _pos, _len;
2018-08-13 13:41:23 +00:00
uint8_t _buf[128];
2014-10-26 17:54:01 +00:00
};
#endif