-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathspectrum.h
48 lines (33 loc) · 916 Bytes
/
spectrum.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
#ifndef INCLUDE_SPECTRUM_H
#define INCLUDE_SPECTRUM_H
// spectrum.h
// Revision 5-dec-2004
#include "pasmotypes.h"
#include <string>
namespace spectrum {
class Plus3Head {
public:
Plus3Head ();
void setsize (address size);
void setstart (address start);
void write (std::ostream & out);
private:
static const size_t headsize= 128;
byte plus3 [headsize];
};
// Spectrum Basic generation.
extern const std::string tokNumPrefix;
extern const std::string tokEndLine;
extern const std::string tokCODE;
extern const std::string tokUSR;
extern const std::string tokLOAD;
extern const std::string tokPOKE;
extern const std::string tokRANDOMIZE;
extern const std::string tokCLEAR;
std::string number (address n);
std::string linenumber (address n);
std::string linelength (address n);
std::string basicline (address linenum, const std::string & line);
} // namespace spectrum
#endif
// End of spectrum.h