From 064eaaed391835d0e0d057466f6f552e43e79bd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Neuwirth?= Date: Wed, 27 May 2009 16:43:43 +0200 Subject: add cdatset --- ue4/mycpu/ccpu.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'ue4/mycpu/ccpu.h') diff --git a/ue4/mycpu/ccpu.h b/ue4/mycpu/ccpu.h index 519cee9..545b870 100644 --- a/ue4/mycpu/ccpu.h +++ b/ue4/mycpu/ccpu.h @@ -22,7 +22,7 @@ #include "cprogram.h" /* forward declare CProgram */ -template +template , int width=0> class CProgram; /** @@ -31,7 +31,7 @@ class CProgram; * CPU implementation. Used as a container for memory and instructions. * Implements a run method to execute the program (= the instructions). */ -template +template, int width=0> class CCPU { typedef typename std::set *>::iterator displayiterator; @@ -250,8 +250,8 @@ class CCPU /*----------------------------------------------------------------------------*/ -template -CCPU::CCPU(const unsigned cnt) +template +CCPU::CCPU(const unsigned cnt) : m_regcnt(cnt), m_memory(NULL), m_program(NULL), m_flagzero(false), m_flagsign(false) { /* create registers */ @@ -266,7 +266,7 @@ CCPU::CCPU(const unsigned cnt) /*----------------------------------------------------------------------------*/ -template +template CCPU::~CCPU() { /* delete registers */ @@ -280,7 +280,7 @@ CCPU::~CCPU() /*----------------------------------------------------------------------------*/ -template +template void CCPU::run() { if (m_memory == NULL) @@ -312,7 +312,7 @@ void CCPU::run() /*----------------------------------------------------------------------------*/ #if DEBUG -template +template void CCPU::dumpRegisters(std::ostream& out) { out << "[REGISTER DUMP]" << std::endl; -- cgit v1.2.3