-
Notifications
You must be signed in to change notification settings - Fork 3
/
tap.h
59 lines (47 loc) · 966 Bytes
/
tap.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#ifndef INCLUDE_TAP_H
#define INCLUDE_TAP_H
// tap.h
// Revision 11-aug-2005
#include "pasmotypes.h"
namespace pasmo {
namespace tap {
class CodeHeader {
public:
CodeHeader (address init, address size, const string & filename);
void write (std::ostream & out) const;
address size () const { return sizeof (block); }
private:
byte block [21];
};
class CodeBlock {
public:
CodeBlock (address sizen, const byte * datan);
void write (std::ostream & out) const;
address size () const;
private:
address datasize;
const byte * data;
byte head [3];
byte check;
};
class BasicHeader {
public:
BasicHeader (const string & basic);
void write (std::ostream & out) const;
private:
byte block [21];
};
class BasicBlock {
public:
BasicBlock (const string & basicn);
void write (std::ostream & out) const;
private:
const string & basic;
address basicsize;
byte block [3];
byte check;
};
} // namespace tap
} // namespace pasmo
#endif
// End of tap.h