Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
PDP8-Simulator - myLib.h

myLib.h

Caricato da: Matthew
Scarica il programma completo

  1. /*
  2.  * myLib.h
  3.  *
  4.  *  Created on: Mar 17, 2010
  5.  *      Author: matthew
  6.  */
  7.  
  8.  
  9. #ifndef MYLIB_H_
  10. #define MYLIB_H_
  11.  
  12. #include <string>
  13. #include <vector>
  14. #include <iostream>
  15. using namespace std;
  16.  
  17. struct message
  18. {
  19.         int line;
  20.         string text;
  21. };
  22.  
  23. struct instruction
  24. {
  25.         vector<string>word;
  26.         int line;
  27. };
  28.  
  29. void show_report(vector<message> &);
  30. void debug_message(string);
  31. void error(string);
  32. void c_error(vector<message> &, int, string);
  33. int bit_4(int, int);
  34. string binary(int);
  35.  
  36.  
  37. #endif /* MYLIB_H_ */