]> 4ch.mooo.com Git - 16.git/blob - 16/tweak16/REGTABLE.HPP
i need help with understanding how 16_rf.c works wwww
[16.git] / 16 / tweak16 / REGTABLE.HPP
1 /*\r
2         RegTable.HPP version 1.0\r
3         by Robert Schmidt of Ztiff Zox Softwear 1993\r
4 \r
5         Declares the RegisterTable class and its members, defined in\r
6                 RegTable.CPP.\r
7 */\r
8 \r
9 #ifndef _RegTable_HPP\r
10 #define _RegTable_HPP\r
11 \r
12 #include "Register.HPP"\r
13 \r
14 \r
15 class RegisterTable\r
16         {\r
17 protected:\r
18         NamedRegister *reg;\r
19         int registers;\r
20 public:\r
21         RegisterTable(istream &);\r
22         ~RegisterTable()                        { delete[] reg; }\r
23 \r
24         int getMaxReg()                         { return registers-1; }\r
25         void doEnable();\r
26         void doDisable();\r
27         void in();\r
28         void out();\r
29 \r
30     Register *getRegister(unsigned, unsigned char); \r
31 \r
32         friend istream& operator>> (istream&, RegisterTable&);\r
33         friend ostream& operator<< (ostream&, RegisterTable&);\r
34         };\r
35 \r
36 #endif