summaryrefslogtreecommitdiffstats
path: root/ue3/mycpu/displays.h
diff options
context:
space:
mode:
authormanuel <manuel@nc8430.lan>2009-05-13 04:09:39 +0200
committermanuel <manuel@nc8430.lan>2009-05-13 04:09:39 +0200
commit89e202f49b9857dcd3627fbc4e0262125d729bbc (patch)
treedbe69dd8498eb0a489bc7b7e24f2b73580c598d2 /ue3/mycpu/displays.h
parent45581d3d376e8deed84952cb838ae330549e5241 (diff)
downloadooprog-89e202f49b9857dcd3627fbc4e0262125d729bbc.tar.gz
ooprog-89e202f49b9857dcd3627fbc4e0262125d729bbc.tar.bz2
ooprog-89e202f49b9857dcd3627fbc4e0262125d729bbc.zip
adding all instructions and displays
Diffstat (limited to 'ue3/mycpu/displays.h')
-rw-r--r--ue3/mycpu/displays.h56
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 */
19class 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 */
40class 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: */