r65emu/sdtape.h

22 lines
310 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();
void start(const char *);
void stop();
sdtape(): _pos(0), _len(0) {}
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:
unsigned int _pos, _len;
2018-08-13 13:41:23 +00:00
uint8_t _buf[128];
2014-10-26 17:54:01 +00:00
};
#endif