1
0
mirror of https://github.com/jscrane/r65emu.git synced 2024-06-07 16:34:44 +00:00
r65emu/sdtape.h
2018-08-13 14:41:23 +01:00

22 lines
310 B
C++

#ifndef __SDTAPE_H__
#define __SDTAPE_H__
class sdtape {
public:
const char *advance();
const char *rewind();
void start(const char *);
void stop();
sdtape(): _pos(0), _len(0) {}
uint8_t read() { return _buf[_pos++]; }
bool more();
private:
unsigned int _pos, _len;
uint8_t _buf[128];
};
#endif