]> 4ch.mooo.com Git - 16.git/blob - 16/tweak16/REGEDIT.HPP
wwww
[16.git] / 16 / tweak16 / REGEDIT.HPP
1 #ifndef _REGEDIT_HPP\r
2 #define _REGEDIT_HPP\r
3 \r
4 #include "RegTable.hpp"\r
5 \r
6 class RegisterEditor : public RegisterTable\r
7         {\r
8         int select, prevSel;\r
9 public:\r
10         RegisterEditor(istream &);\r
11         int operator++()                        { return setSelect(select+1); }\r
12         int operator--()                        { return setSelect(select-1); }\r
13         NamedRegister& operator* (void) { return reg[select]; }\r
14         int getSelect()                         { return select; }\r
15         void printCon(int);\r
16         void printAllCon();\r
17         int updateSelect();\r
18         int setSelect(int s)            { select = s; return updateSelect(); }\r
19         void showBitMask();\r
20         };\r
21 \r
22 #endif