mirror of
https://github.com/jscrane/r65emu.git
synced 2024-12-22 03:30:02 +00:00
22 lines
298 B
C
22 lines
298 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) {}
|
||
|
|
||
|
byte read() { return _buf[_pos++]; }
|
||
|
bool more();
|
||
|
|
||
|
private:
|
||
|
unsigned int _pos, _len;
|
||
|
byte _buf[128];
|
||
|
};
|
||
|
#endif
|