blob: 542922fefded099168528757d357d4112cecf6f1 (
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
|
#include "AbstractData.h"
using namespace std;
AbstractData::AbstractData()
{
error = false;
}
// This method must always return "" if true but can return
// any other value for false
string AbstractData::GenAsm()
{
if(error) return ";#Error";
else return "";
}
bool AbstractData::IsValid(unsigned char* byte)
{
return true;
}
bool AbstractData::Parse(unsigned char* byte)
{
// If it's not valid, don't even bother parsing
if(!IsValid(byte)) return false;
return true;
}
unsigned int AbstractData::Arguments()
{
return 0;
}
bool AbstractData::GetError()
{
return error;
}
|