-
Notifications
You must be signed in to change notification settings - Fork 3
/
asm.cpp
71 lines (55 loc) · 962 Bytes
/
asm.cpp
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
60
61
62
63
64
65
66
67
68
69
70
71
// asm.cpp
// Revision 14-dec-2006
#include "asm.h"
#include "asmimpl.h"
namespace pasmo {
AsmOptions::AsmOptions () :
asmmode (AsmZ80),
nocase (false),
autolocal (false),
bracketonly (false),
objecttype (ObjectBin),
linkbase (0),
mode86 (false),
warn8080 (false),
redirecterr (false),
verbose (false),
common_after_abs (false),
debugtype (NoDebug),
lines_to_skip (0),
numerr (1)
{
}
ObjectType AsmOptions::getObjectType () const
{
return objecttype;
}
void AsmOptions::setObjectType (ObjectType type)
{
objecttype= type;
if (objecttype == ObjectCom || objecttype == ObjectCmd)
linkbase= 0x100;
}
address AsmOptions::getLinkBase () const
{
return linkbase;
}
void AsmOptions::setLinkBase (address base)
{
linkbase= base;
}
Asm::Asm ()
{
}
Asm::Asm (const Asm &)
{
}
Asm::~Asm ()
{
}
Asm * Asm::create (const AsmOptions & options_n)
{
return pasmo::impl::AsmImpl::create (options_n);
}
} // namespace pasmo
// End of asm.cpp