| 1 | // File: enu.hcxx . . $ `<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_Hcxx . . $ `enu.h:23:9`! |
| 24 | |
| 25 | namespace Enucxx . . $ Enu/ |
| 26 | { |
| 27 | // Instruction mnemonics |
| 28 | enum EMnemoniccxx . . $ Enu/EMnemonic# |
| 29 | { |
| 30 | ADDAcxx . . $ Enu/ADDA., ADDSPcxx . . $ Enu/ADDSP., ADDXcxx . . $ Enu/ADDX., ANDAcxx . . $ Enu/ANDA., ANDXcxx . . $ Enu/ANDX., ASLAcxx . . $ Enu/ASLA., ASLXcxx . . $ Enu/ASLX., ASRAcxx . . $ Enu/ASRA., ASRXcxx . . $ Enu/ASRX., |
| 31 | BRcxx . . $ Enu/BR., BRCcxx . . $ Enu/BRC., BREQcxx . . $ Enu/BREQ., BRGEcxx . . $ Enu/BRGE., BRGTcxx . . $ Enu/BRGT., BRLEcxx . . $ Enu/BRLE., BRLTcxx . . $ Enu/BRLT., BRNEcxx . . $ Enu/BRNE., BRVcxx . . $ Enu/BRV., |
| 32 | CALLcxx . . $ Enu/CALL., CHARIcxx . . $ Enu/CHARI., CHAROcxx . . $ Enu/CHARO., CPAcxx . . $ Enu/CPA., CPXcxx . . $ Enu/CPX., |
| 33 | DECIcxx . . $ Enu/DECI., DECOcxx . . $ Enu/DECO., |
| 34 | LDAcxx . . $ Enu/LDA., LDBYTEAcxx . . $ Enu/LDBYTEA., LDBYTEXcxx . . $ Enu/LDBYTEX., LDXcxx . . $ Enu/LDX., |
| 35 | MOVFLGAcxx . . $ Enu/MOVFLGA., MOVSPAcxx . . $ Enu/MOVSPA., |
| 36 | NEGAcxx . . $ Enu/NEGA., NEGXcxx . . $ Enu/NEGX., NOPcxx . . $ Enu/NOP., NOP0cxx . . $ Enu/NOP0., NOP1cxx . . $ Enu/NOP1., NOP2cxx . . $ Enu/NOP2., NOP3cxx . . $ Enu/NOP3., NOTAcxx . . $ Enu/NOTA., NOTXcxx . . $ Enu/NOTX., |
| 37 | ORAcxx . . $ Enu/ORA., ORXcxx . . $ Enu/ORX., |
| 38 | RET0cxx . . $ Enu/RET0., RET1cxx . . $ Enu/RET1., RET2cxx . . $ Enu/RET2., RET3cxx . . $ Enu/RET3., RET4cxx . . $ Enu/RET4., RET5cxx . . $ Enu/RET5., RET6cxx . . $ Enu/RET6., RET7cxx . . $ Enu/RET7., RETTRcxx . . $ Enu/RETTR., ROLAcxx . . $ Enu/ROLA., ROLXcxx . . $ Enu/ROLX., RORAcxx . . $ Enu/RORA., RORXcxx . . $ Enu/RORX., |
| 39 | STAcxx . . $ Enu/STA., STBYTEAcxx . . $ Enu/STBYTEA., STBYTEXcxx . . $ Enu/STBYTEX., STOPcxx . . $ Enu/STOP., STROcxx . . $ Enu/STRO., STXcxx . . $ Enu/STX., SUBAcxx . . $ Enu/SUBA., SUBSPcxx . . $ Enu/SUBSP., SUBXcxx . . $ Enu/SUBX. |
| 40 | }; |
| 41 | |
| 42 | // Addressing modes for instructions |
| 43 | enum EAddrModecxx . . $ Enu/EAddrMode# |
| 44 | { |
| 45 | NONEcxx . . $ Enu/NONE. = 0, |
| 46 | Icxx . . $ Enu/I. = 1, |
| 47 | Dcxx . . $ Enu/D. = 2, |
| 48 | Ncxx . . $ Enu/N. = 4, |
| 49 | Scxx . . $ Enu/S. = 8, |
| 50 | SFcxx . . $ Enu/SF. = 16, |
| 51 | Xcxx . . $ Enu/X. = 32, |
| 52 | SXcxx . . $ Enu/SX. = 64, |
| 53 | SXFcxx . . $ Enu/SXF. = 128, |
| 54 | ALLcxx . . $ Enu/ALL. = 255 |
| 55 | }; |
| 56 | |
| 57 | // Format for symbols |
| 58 | enum ESymbolFormatcxx . . $ Enu/ESymbolFormat# |
| 59 | { |
| 60 | F_NONEcxx . . $ Enu/F_NONE., F_1Ccxx . . $ Enu/F_1C., F_1Dcxx . . $ Enu/F_1D., F_2Dcxx . . $ Enu/F_2D., F_1Hcxx . . $ Enu/F_1H., F_2Hcxx . . $ Enu/F_2H. |
| 61 | }; |
| 62 | |
| 63 | enum EExecStatecxx . . $ Enu/EExecState# |
| 64 | { |
| 65 | EStartcxx . . $ Enu/EStart., |
| 66 | ERuncxx . . $ Enu/ERun., ERunAwaitIOcxx . . $ Enu/ERunAwaitIO., |
| 67 | EDebugAwaitIOcxx . . $ Enu/EDebugAwaitIO., EDebugAwaitClickcxx . . $ Enu/EDebugAwaitClick., EDebugRunToBPcxx . . $ Enu/EDebugRunToBP., EDebugSingleStepcxx . . $ Enu/EDebugSingleStep. |
| 68 | }; |
| 69 | |
| 70 | enum EWaitingcxx . . $ Enu/EWaiting# |
| 71 | { |
| 72 | ERunWaitingcxx . . $ Enu/ERunWaiting., |
| 73 | EDebugSSWaitingcxx . . $ Enu/EDebugSSWaiting., |
| 74 | EDebugResumeWaitingcxx . . $ Enu/EDebugResumeWaiting., |
| 75 | }; |
| 76 | |
| 77 | enum EPanecxx . . $ Enu/EPane# |
| 78 | { |
| 79 | ESourcecxx . . $ Enu/ESource., |
| 80 | EObjectcxx . . $ Enu/EObject., |
| 81 | EListingcxx . . $ Enu/EListing., |
| 82 | EListingTracecxx . . $ Enu/EListingTrace., |
| 83 | EMemoryTracecxx . . $ Enu/EMemoryTrace., |
| 84 | EBatchIOcxx . . $ Enu/EBatchIO., |
| 85 | ETerminalcxx . . $ Enu/ETerminal., |
| 86 | }; |
| 87 | |
| 88 | } |
| 89 | |
| 90 | #endif // ENU_H |