summaryrefslogtreecommitdiffstats
path: root/ue3/mycpu/instructions.h
diff options
context:
space:
mode:
authormanuel <manuel@nc8430.lan>2009-05-12 23:18:17 +0200
committermanuel <manuel@nc8430.lan>2009-05-12 23:18:17 +0200
commit45581d3d376e8deed84952cb838ae330549e5241 (patch)
treeab23bd5cc1f2e32e95faa372b3b46e69ccb6a3c3 /ue3/mycpu/instructions.h
parentfe1ef6b47f59899e8687bb1dcc92eba1d103a08f (diff)
downloadooprog-45581d3d376e8deed84952cb838ae330549e5241.tar.gz
ooprog-45581d3d376e8deed84952cb838ae330549e5241.tar.bz2
ooprog-45581d3d376e8deed84952cb838ae330549e5241.zip
my cpu design
Diffstat (limited to 'ue3/mycpu/instructions.h')
-rw-r--r--ue3/mycpu/instructions.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/ue3/mycpu/instructions.h b/ue3/mycpu/instructions.h
new file mode 100644
index 0000000..ebd1533
--- /dev/null
+++ b/ue3/mycpu/instructions.h
@@ -0,0 +1,66 @@
1/**
2 * @module instructions
3 * @author Guenther Neuwirth (0626638), Manuel Mausz (0728348)
4 * @brief TODO
5 * @date 10.05.2009
6 */
7
8#ifndef INSTRUCTIONS_H
9#define INSTRUCTIONS_H 1
10
11#include "cinstruction.h"
12#include "ccpu.h"
13
14/**
15 * @class CInstructionInc
16 *
17 * TODO
18 */
19class CInstructionInc
20 : public CInstruction
21{
22 public:
23 /**
24 * @method CInstruction
25 * @brief Default ctor
26 * @param -
27 * @return -
28 * @globalvars none
29 * @exception none
30 * @conditions none
31 */
32 CInstructionInc()
33 : CInstruction("inc")
34 {};
35
36 /**
37 * @method ~CInstruction
38 * @brief Default dtor
39 * @param -
40 * @return -
41 * @globalvars none
42 * @exception none
43 * @conditions none
44 */
45 ~CInstructionInc()
46 {};
47
48 /* TODO */
49 CInstructionInc *factory()
50 {
51 return new CInstructionInc;
52 }
53
54 /* TODO */
55 void compile(std::list<std::string>& params);
56
57 /* TODO */
58 void execute(CCPU *cpu);
59
60 protected:
61 unsigned m_regidx1;
62};
63
64#endif
65
66/* vim: set et sw=2 ts=2: */