Debian Codegraph @

enu.h

raw symbols SCIP
1 // File: enu.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 ENU_H
23 #define ENU_H
24
25 namespace Enu
26 {
27 // Instruction mnemonics
28 enum EMnemonic
29 {
30 ADDA, ADDSP, ADDX, ANDA, ANDX, ASLA, ASLX, ASRA, ASRX,
31 BR, BRC, BREQ, BRGE, BRGT, BRLE, BRLT, BRNE, BRV,
32 CALL, CHARI, CHARO, CPA, CPX,
33 DECI, DECO,
34 LDA, LDBYTEA, LDBYTEX, LDX,
35 MOVFLGA, MOVSPA,
36 NEGA, NEGX, NOP, NOP0, NOP1, NOP2, NOP3, NOTA, NOTX,
37 ORA, ORX,
38 RET0, RET1, RET2, RET3, RET4, RET5, RET6, RET7, RETTR, ROLA, ROLX, RORA, RORX,
39 STA, STBYTEA, STBYTEX, STOP, STRO, STX, SUBA, SUBSP, SUBX
40 };
41
42 // Addressing modes for instructions
43 enum EAddrMode
44 {
45 NONE = 0,
46 I = 1,
47 D = 2,
48 N = 4,
49 S = 8,
50 SF = 16,
51 X = 32,
52 SX = 64,
53 SXF = 128,
54 ALL = 255
55 };
56
57 // Format for symbols
58 enum ESymbolFormat
59 {
60 F_NONE, F_1C, F_1D, F_2D, F_1H, F_2H
61 };
62
63 enum EExecState
64 {
65 EStart,
66 ERun, ERunAwaitIO,
67 EDebugAwaitIO, EDebugAwaitClick, EDebugRunToBP, EDebugSingleStep
68 };
69
70 enum EWaiting
71 {
72 ERunWaiting,
73 EDebugSSWaiting,
74 EDebugResumeWaiting,
75 };
76
77 enum EPane
78 {
79 ESource,
80 EObject,
81 EListing,
82 EListingTrace,
83 EMemoryTrace,
84 EBatchIO,
85 ETerminal,
86 };
87
88 }
89
90 #endif // ENU_H