summaryrefslogtreecommitdiffstats
path: root/ue4/mycpu/cinstruction.h
diff options
context:
space:
mode:
authorGünther Neuwirth <e0626638@student.tuwien.ac.at>2009-05-27 16:43:43 +0200
committerGünther Neuwirth <e0626638@student.tuwien.ac.at>2009-05-27 16:43:43 +0200
commit064eaaed391835d0e0d057466f6f552e43e79bd8 (patch)
tree9dd40d61761624f10a83f001425bc35a1dfdfd00 /ue4/mycpu/cinstruction.h
parent26a97259f5a7b066cff2927e88c867fac2aaad87 (diff)
downloadooprog-064eaaed391835d0e0d057466f6f552e43e79bd8.tar.gz
ooprog-064eaaed391835d0e0d057466f6f552e43e79bd8.tar.bz2
ooprog-064eaaed391835d0e0d057466f6f552e43e79bd8.zip
add cdatset
Diffstat (limited to 'ue4/mycpu/cinstruction.h')
-rw-r--r--ue4/mycpu/cinstruction.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/ue4/mycpu/cinstruction.h b/ue4/mycpu/cinstruction.h
index 8c35d2c..a2e3743 100644
--- a/ue4/mycpu/cinstruction.h
+++ b/ue4/mycpu/cinstruction.h
@@ -17,7 +17,7 @@
17#include "ccpu.h" 17#include "ccpu.h"
18 18
19/* forward declare CCPU */ 19/* forward declare CCPU */
20template <class T> 20template<class T, int >
21class CCPU; 21class CCPU;
22 22
23/** 23/**
@@ -25,7 +25,7 @@ class CCPU;
25 * 25 *
26 * Abstract class for displays 26 * Abstract class for displays
27 */ 27 */
28template <class T> 28template<class T=CDat<int>, int width=0>
29class CInstruction 29class CInstruction
30{ 30{
31 public: 31 public:
@@ -193,7 +193,7 @@ class CInstruction
193 193
194/*----------------------------------------------------------------------------*/ 194/*----------------------------------------------------------------------------*/
195 195
196template<class T> 196template<class T=CDat<int>, int width=0>
197const unsigned CInstruction<T>::parseRegister(const std::string& str) 197const unsigned CInstruction<T>::parseRegister(const std::string& str)
198{ 198{
199 unsigned reg; 199 unsigned reg;
@@ -214,7 +214,7 @@ const unsigned CInstruction<T>::parseRegister(const std::string& str)
214 214
215/*----------------------------------------------------------------------------*/ 215/*----------------------------------------------------------------------------*/
216 216
217template<class T> 217template<class T=CDat<int>, int width=0>
218inline void CInstruction<T>::checkRegister(CCPU<T> *cpu, const unsigned regidx) 218inline void CInstruction<T>::checkRegister(CCPU<T> *cpu, const unsigned regidx)
219{ 219{
220 assert(cpu != NULL); 220 assert(cpu != NULL);