Debian Codegraph @

code.h

raw symbols SCIP
1 // File: code.hcxx . . $ `<file>/code.h`/
2 /*
3 Pep8-1 is a virtual machine for writing machine language and assembly
4 language programs.
5
6 Copyright (C) 2009 J. Stanley Warford, Pepperdine University
7
8 This program is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22 #ifndef CODE_H
23 #define CODE_Hcxx . . $ `code.h:23:9`!
24
25 #include "pep.h"cxx . . $ `<file>/pep.h`/
26 #include "enu.h"cxx . . $ `<file>/enu.h`/
27
28 class Argumentcxx . . $ Argument#; // Forward declaration for attributes of code classes.
29
30 // Abstract Code class
31 class Codecxx . . $ Code#
32 {
33 friend class Asmcxx . . $ Asm#;
34 public:
35 virtual ~cxx . . $ Code#`~Code`(ced63f7c635d850d).Codecxx . . $ Code#() { }
36 virtual void appendObjectCodecxx . . $ Code#appendObjectCode(e6c29c96e1964fe3).(QListcxx . . $ QList#<int> &objectCode) = 0;
37 virtual void appendSourceLinecxx . . $ Code#appendSourceLine(de6f90c2c92a4f05).(QStringListcxx . . $ QStringList# &assemblerListingList, QStringListcxx . . $ QStringList# &listingTraceList, QListcxx . . $ QList#<bool> &hasCheckBox) = 0;
38 void adjustMemAddresscxx . . $ Code#adjustMemAddress(d4f767463ce0a6b3).(int addressDelta) { memAddresscxx . . $ Code#memAddress. += addressDelta; }
39 virtual bool processFormatTraceTagscxx . . $ Code#processFormatTraceTags(4a42edfa3626ccba).(int &, QStringcxx . . $ QString# &) { return true; }
40 virtual bool processSymbolTraceTagscxx . . $ Code#processSymbolTraceTags(4a42edfa3626ccba).(int &, QStringcxx . . $ QString# &) { return true; }
41
42 protected:
43 int memAddresscxx . . $ Code#memAddress.;
44 int sourceCodeLinecxx . . $ Code#sourceCodeLine.;
45 QStringcxx . . $ QString# symbolDefcxx . . $ Code#symbolDef.;
46 QStringcxx . . $ QString# commentcxx . . $ Code#comment.;
47 };
48
49 // Concrete code classes
50 class UnaryInstructioncxx . . $ UnaryInstruction#: public Codecxx . . $ Code#
51 {
52 friend class Asmcxx . . $ Asm#;
53 private:
54 Enucxx . . $ Enu/::EMnemoniccxx . . $ Enu/EMnemonic# mnemoniccxx . . $ UnaryInstruction#mnemonic.;
55 public:
56 void appendObjectCodecxx . . $ UnaryInstruction#appendObjectCode(e6c29c96e1964fe3).(QListcxx . . $ QList#<int> &objectCode);
57 void appendSourceLinecxx . . $ UnaryInstruction#appendSourceLine(de6f90c2c92a4f05).(QStringListcxx . . $ QStringList# &assemblerListingList, QStringListcxx . . $ QStringList# &listingTraceList, QListcxx . . $ QList#<bool> &hasCheckBox);
58 bool processSymbolTraceTagscxx . . $ UnaryInstruction#processSymbolTraceTags(4a42edfa3626ccba).(int &sourceLine, QStringcxx . . $ QString# &errorString);
59 };
60
61 class NonUnaryInstructioncxx . . $ NonUnaryInstruction#: public Codecxx . . $ Code#
62 {
63 friend class Asmcxx . . $ Asm#;
64 private:
65 Enucxx . . $ Enu/::EMnemoniccxx . . $ Enu/EMnemonic# mnemoniccxx . . $ NonUnaryInstruction#mnemonic.;
66 Enucxx . . $ Enu/::EAddrModecxx . . $ Enu/EAddrMode# addressingModecxx . . $ NonUnaryInstruction#addressingMode.;
67 Argumentcxx . . $ Argument# *argumentcxx . . $ NonUnaryInstruction#argument.;
68 public:
69 // ~NonUnaryInstruction() { delete argument; }
70 void appendObjectCodecxx . . $ NonUnaryInstruction#appendObjectCode(e6c29c96e1964fe3).(QListcxx . . $ QList#<int> &objectCode);
71 void appendSourceLinecxx . . $ NonUnaryInstruction#appendSourceLine(de6f90c2c92a4f05).(QStringListcxx . . $ QStringList# &assemblerListingList, QStringListcxx . . $ QStringList# &listingTraceList, QListcxx . . $ QList#<bool> &hasCheckBox);
72 bool processSymbolTraceTagscxx . . $ NonUnaryInstruction#processSymbolTraceTags(4a42edfa3626ccba).(int &sourceLine, QStringcxx . . $ QString# &errorString);
73 };
74
75 class DotAddrsscxx . . $ DotAddrss#: public Codecxx . . $ Code#
76 {
77 friend class Asmcxx . . $ Asm#;
78 private:
79 Argumentcxx . . $ Argument# *argumentcxx . . $ DotAddrss#argument.;
80 public:
81 void appendObjectCodecxx . . $ DotAddrss#appendObjectCode(e6c29c96e1964fe3).(QListcxx . . $ QList#<int> &objectCode);
82 void appendSourceLinecxx . . $ DotAddrss#appendSourceLine(de6f90c2c92a4f05).(QStringListcxx . . $ QStringList# &assemblerListingList, QStringListcxx . . $ QStringList# &listingTraceList, QListcxx . . $ QList#<bool> &hasCheckBox);
83 };
84
85 class DotAsciicxx . . $ DotAscii#: public Codecxx . . $ Code#
86 {
87 friend class Asmcxx . . $ Asm#;
88 private:
89 Argumentcxx . . $ Argument# *argumentcxx . . $ DotAscii#argument.;
90 public:
91 void appendObjectCodecxx . . $ DotAscii#appendObjectCode(e6c29c96e1964fe3).(QListcxx . . $ QList#<int> &objectCode);
92 void appendSourceLinecxx . . $ DotAscii#appendSourceLine(de6f90c2c92a4f05).(QStringListcxx . . $ QStringList# &assemblerListingList, QStringListcxx . . $ QStringList# &listingTraceList, QListcxx . . $ QList#<bool> &hasCheckBox);
93 };
94
95 class DotBlockcxx . . $ DotBlock#: public Codecxx . . $ Code#
96 {
97 friend class Asmcxx . . $ Asm#;
98 private:
99 Argumentcxx . . $ Argument# *argumentcxx . . $ DotBlock#argument.;
100 public:
101 void appendObjectCodecxx . . $ DotBlock#appendObjectCode(e6c29c96e1964fe3).(QListcxx . . $ QList#<int> &objectCode);
102 void appendSourceLinecxx . . $ DotBlock#appendSourceLine(de6f90c2c92a4f05).(QStringListcxx . . $ QStringList# &assemblerListingList, QStringListcxx . . $ QStringList# &listingTraceList, QListcxx . . $ QList#<bool> &hasCheckBox);
103 bool processFormatTraceTagscxx . . $ DotBlock#processFormatTraceTags(4a42edfa3626ccba).(int &sourceLine, QStringcxx . . $ QString# &errorString);
104 bool processSymbolTraceTagscxx . . $ DotBlock#processSymbolTraceTags(4a42edfa3626ccba).(int &sourceLine, QStringcxx . . $ QString# &errorString);
105 };
106
107 class DotBurncxx . . $ DotBurn#: public Codecxx . . $ Code#
108 {
109 friend class Asmcxx . . $ Asm#;
110 private:
111 Argumentcxx . . $ Argument# *argumentcxx . . $ DotBurn#argument.;
112 public:
113 void appendObjectCodecxx . . $ DotBurn#appendObjectCode(e6c29c96e1964fe3).(QListcxx . . $ QList#<int> &objectCode);
114 void appendSourceLinecxx . . $ DotBurn#appendSourceLine(de6f90c2c92a4f05).(QStringListcxx . . $ QStringList# &assemblerListingList, QStringListcxx . . $ QStringList# &listingTraceList, QListcxx . . $ QList#<bool> &hasCheckBox);
115 };
116
117 class DotBytecxx . . $ DotByte#: public Codecxx . . $ Code#
118 {
119 friend class Asmcxx . . $ Asm#;
120 private:
121 Argumentcxx . . $ Argument# *argumentcxx . . $ DotByte#argument.;
122 public:
123 void appendObjectCodecxx . . $ DotByte#appendObjectCode(e6c29c96e1964fe3).(QListcxx . . $ QList#<int> &objectCode);
124 void appendSourceLinecxx . . $ DotByte#appendSourceLine(de6f90c2c92a4f05).(QStringListcxx . . $ QStringList# &assemblerListingList, QStringListcxx . . $ QStringList# &listingTraceList, QListcxx . . $ QList#<bool> &hasCheckBox);
125 };
126
127 class DotEndcxx . . $ DotEnd#: public Codecxx . . $ Code#
128 {
129 friend class Asmcxx . . $ Asm#;
130 public:
131 void appendObjectCodecxx . . $ DotEnd#appendObjectCode(e6c29c96e1964fe3).(QListcxx . . $ QList#<int> &objectCode);
132 void appendSourceLinecxx . . $ DotEnd#appendSourceLine(de6f90c2c92a4f05).(QStringListcxx . . $ QStringList# &assemblerListingList, QStringListcxx . . $ QStringList# &listingTraceList, QListcxx . . $ QList#<bool> &hasCheckBox);
133 };
134
135 class DotEquatecxx . . $ DotEquate#: public Codecxx . . $ Code#
136 {
137 friend class Asmcxx . . $ Asm#;
138 private:
139 Argumentcxx . . $ Argument# *argumentcxx . . $ DotEquate#argument.;
140 public:
141 void appendObjectCodecxx . . $ DotEquate#appendObjectCode(e6c29c96e1964fe3).(QListcxx . . $ QList#<int> &objectCode);
142 void appendSourceLinecxx . . $ DotEquate#appendSourceLine(de6f90c2c92a4f05).(QStringListcxx . . $ QStringList# &assemblerListingList, QStringListcxx . . $ QStringList# &listingTraceList, QListcxx . . $ QList#<bool> &hasCheckBox);
143 bool processFormatTraceTagscxx . . $ DotEquate#processFormatTraceTags(4a42edfa3626ccba).(int &sourceLine, QStringcxx . . $ QString# &errorString);
144 };
145
146 class DotWordcxx . . $ DotWord#: public Codecxx . . $ Code#
147 {
148 friend class Asmcxx . . $ Asm#;
149 private:
150 Argumentcxx . . $ Argument# *argumentcxx . . $ DotWord#argument.;
151 public:
152 void appendObjectCodecxx . . $ DotWord#appendObjectCode(e6c29c96e1964fe3).(QListcxx . . $ QList#<int> &objectCode);
153 void appendSourceLinecxx . . $ DotWord#appendSourceLine(de6f90c2c92a4f05).(QStringListcxx . . $ QStringList# &assemblerListingList, QStringListcxx . . $ QStringList# &listingTraceList, QListcxx . . $ QList#<bool> &hasCheckBox);
154 };
155
156 class CommentOnlycxx . . $ CommentOnly#: public Codecxx . . $ Code#
157 {
158 friend class Asmcxx . . $ Asm#;
159 public:
160 void appendObjectCodecxx . . $ CommentOnly#appendObjectCode(e6c29c96e1964fe3).(QListcxx . . $ QList#<int> &objectCode);
161 void appendSourceLinecxx . . $ CommentOnly#appendSourceLine(de6f90c2c92a4f05).(QStringListcxx . . $ QStringList# &assemblerListingList, QStringListcxx . . $ QStringList# &listingTraceList, QListcxx . . $ QList#<bool> &hasCheckBox);
162 };
163
164 class BlankLinecxx . . $ BlankLine#: public Codecxx . . $ Code#
165 {
166 friend class Asmcxx . . $ Asm#;
167 public:
168 void appendObjectCodecxx . . $ BlankLine#appendObjectCode(e6c29c96e1964fe3).(QListcxx . . $ QList#<int> &objectCode);
169 void appendSourceLinecxx . . $ BlankLine#appendSourceLine(de6f90c2c92a4f05).(QStringListcxx . . $ QStringList# &assemblerListingList, QStringListcxx . . $ QStringList# &listingTraceList, QListcxx . . $ QList#<bool> &hasCheckBox);
170 };
171
172 #endif // CODE_H