summaryrefslogtreecommitdiffstats
path: root/ue4/mycpu/cinstruction.h
diff options
context:
space:
mode:
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);