mirror of
https://github.com/jscrane/r65emu.git
synced 2024-11-16 06:05:53 +00:00
20 lines
274 B
C++
20 lines
274 B
C++
#ifndef __SDTAPE_H__
|
|
#define __SDTAPE_H__
|
|
|
|
class sdtape {
|
|
public:
|
|
const char *advance();
|
|
const char *rewind();
|
|
|
|
bool start(const char *);
|
|
void stop();
|
|
|
|
uint8_t read() { return _buf[_pos++]; }
|
|
bool more();
|
|
|
|
private:
|
|
unsigned _pos, _len;
|
|
uint8_t _buf[128];
|
|
};
|
|
#endif
|