Advertisement
Guest User

Untitled

a guest
Aug 31st, 2015
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.74 KB | None | 0 0
  1. #pragma once
  2.  
  3. #ifndef SYMBOLS_H
  4. #define SYMBOLS_H
  5.  
  6. #include <string>
  7.  
  8. static const std::string INSTRUCTIONS[] = {"ADD", "NOT", "AND", "OR", "MOV", "LOD", "STO", "PIO", "B", "BEQ",
  9.     "SLL", "SLR", "MPY", "DIV", "CHHP", "CLHP", "CALL", "RET", "DAB", "CMS",
  10.  
  11.     "ADDEQ", "NOTEQ", "ANDEQ", "OREQ", "MOVEQ", "PIOEQ", "SLLEQ", "SLREQ", "MPYEQ", "DIVEQ", "STOEQ", "LODEQ",
  12.     "CHHPEQ", "CLHPEQ", "RETEQ",
  13.  
  14.     "ADDCY", "NOTCY", "ANDCY", "ORCY", "MOVCY", "PIOCY", "SLLCY", "SLRCY", "MPYCY", "DIVCY", "STOCY", "LODCY",
  15.     "CHHPCY", "CLHPCY", "RETCY"};
  16.  
  17. static const std::string KEYWORDS[] = {"CONSTANT"};
  18.  
  19. static const int INSTRUCTIONS_SIZE = sizeof(INSTRUCTIONS) / INSTRUCTIONS[0];
  20.  
  21. static const int KEYWORDS_SIZE = sizeof(KEYWORDS) / KEYWORDS[0];
  22.  
  23.  
  24. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement