blob: de6aa06238d2d2b727b11b288ce73af1c81da1b9 (
plain)
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
|
#include <sstream>
#include "Stop.h"
using namespace std;
Stop::Stop()
{}
Stop::Stop(unsigned char* byte)
{
Parse(byte);
}
bool Stop::IsValid(unsigned char* byte)
{
if(byte[0] == 0xFF)
{
error = false; // Unblock assembling
return true;
}
else
{
error = true; // Block assembling
return false;
}
}
string Stop::GenAsm()
{
string tmpRet = AbstractData::GenAsm();
if(tmpRet != "") return tmpRet;
stringstream tmpAsmOut;
tmpAsmOut << "mus_end";
return tmpAsmOut.str();
}
bool Stop::Parse(unsigned char* byte)
{
if(AbstractData::Parse(byte)) return false;
return true;
}
unsigned int Stop::Arguments()
{
// No Arguments
return 0;
}
|