diff options
| author | Günther Neuwirth <e0626638@student.tuwien.ac.at> | 2009-05-27 16:43:43 +0200 |
|---|---|---|
| committer | Günther Neuwirth <e0626638@student.tuwien.ac.at> | 2009-05-27 16:43:43 +0200 |
| commit | 064eaaed391835d0e0d057466f6f552e43e79bd8 (patch) | |
| tree | 9dd40d61761624f10a83f001425bc35a1dfdfd00 /ue4/mycpu/cinstruction.h | |
| parent | 26a97259f5a7b066cff2927e88c867fac2aaad87 (diff) | |
| download | ooprog-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.h | 8 |
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 */ |
| 20 | template <class T> | 20 | template<class T, int > |
| 21 | class CCPU; | 21 | class 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 | */ |
| 28 | template <class T> | 28 | template<class T=CDat<int>, int width=0> |
| 29 | class CInstruction | 29 | class CInstruction |
| 30 | { | 30 | { |
| 31 | public: | 31 | public: |
| @@ -193,7 +193,7 @@ class CInstruction | |||
| 193 | 193 | ||
| 194 | /*----------------------------------------------------------------------------*/ | 194 | /*----------------------------------------------------------------------------*/ |
| 195 | 195 | ||
| 196 | template<class T> | 196 | template<class T=CDat<int>, int width=0> |
| 197 | const unsigned CInstruction<T>::parseRegister(const std::string& str) | 197 | const 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 | ||
| 217 | template<class T> | 217 | template<class T=CDat<int>, int width=0> |
| 218 | inline void CInstruction<T>::checkRegister(CCPU<T> *cpu, const unsigned regidx) | 218 | inline void CInstruction<T>::checkRegister(CCPU<T> *cpu, const unsigned regidx) |
| 219 | { | 219 | { |
| 220 | assert(cpu != NULL); | 220 | assert(cpu != NULL); |
