diff options
Diffstat (limited to 'ue3/mycpu/displays.h')
| -rw-r--r-- | ue3/mycpu/displays.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/ue3/mycpu/displays.h b/ue3/mycpu/displays.h new file mode 100644 index 0000000..f7adbdb --- /dev/null +++ b/ue3/mycpu/displays.h | |||
| @@ -0,0 +1,56 @@ | |||
| 1 | /** | ||
| 2 | * @module displays | ||
| 3 | * @author Guenther Neuwirth (0626638), Manuel Mausz (0728348) | ||
| 4 | * @brief TODO | ||
| 5 | * @date 10.05.2009 | ||
| 6 | */ | ||
| 7 | |||
| 8 | #ifndef DISPLAYS_H | ||
| 9 | #define DISPLAYS_H 1 | ||
| 10 | |||
| 11 | #include <iomanip> | ||
| 12 | #include "cdisplay.h" | ||
| 13 | |||
| 14 | /** | ||
| 15 | * @class CDisplayWDEZ | ||
| 16 | * | ||
| 17 | * TODO | ||
| 18 | */ | ||
| 19 | class CDisplayWDEZ | ||
| 20 | : public CDisplay | ||
| 21 | { | ||
| 22 | public: | ||
| 23 | CDisplayWDEZ() | ||
| 24 | : CDisplay("wdez") | ||
| 25 | {} | ||
| 26 | |||
| 27 | void display(const CDat &value) | ||
| 28 | { | ||
| 29 | std::cout << std::dec << value << std::endl; | ||
| 30 | } | ||
| 31 | }; | ||
| 32 | |||
| 33 | /*============================================================================*/ | ||
| 34 | |||
| 35 | /** | ||
| 36 | * @class CDisplayWHEX | ||
| 37 | * | ||
| 38 | * TODO | ||
| 39 | */ | ||
| 40 | class CDisplayWHEX | ||
| 41 | : public CDisplay | ||
| 42 | { | ||
| 43 | public: | ||
| 44 | CDisplayWHEX() | ||
| 45 | : CDisplay("whex") | ||
| 46 | {} | ||
| 47 | |||
| 48 | void display(const CDat &value) | ||
| 49 | { | ||
| 50 | std::cout << std::hex << value << std::endl; | ||
| 51 | } | ||
| 52 | }; | ||
| 53 | |||
| 54 | #endif | ||
| 55 | |||
| 56 | /* vim: set et sw=2 ts=2: */ | ||
