summaryrefslogtreecommitdiffstats
path: root/ue3/mycpu/ccpu.cpp
diff options
context:
space:
mode:
authormanuel <manuel@clan-server.at>2009-05-13 15:29:51 +0200
committermanuel <manuel@clan-server.at>2009-05-13 15:29:51 +0200
commit431bbac5a99abbccf33500e22aa353ec792eff94 (patch)
tree0649a2833c7ee5f6cbce145b719c104c7efe19df /ue3/mycpu/ccpu.cpp
parent89e202f49b9857dcd3627fbc4e0262125d729bbc (diff)
downloadooprog-431bbac5a99abbccf33500e22aa353ec792eff94.tar.gz
ooprog-431bbac5a99abbccf33500e22aa353ec792eff94.tar.bz2
ooprog-431bbac5a99abbccf33500e22aa353ec792eff94.zip
* adding -Wno-long-long to all Makefiles
* adding execute operator to cinstruction * added labels map for better performance
Diffstat (limited to 'ue3/mycpu/ccpu.cpp')
-rw-r--r--ue3/mycpu/ccpu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ue3/mycpu/ccpu.cpp b/ue3/mycpu/ccpu.cpp
index b1539a4..16209e2 100644
--- a/ue3/mycpu/ccpu.cpp
+++ b/ue3/mycpu/ccpu.cpp
@@ -66,7 +66,7 @@ void CCPU::run()
66 throw runtime_error("Programcounter is out of bound"); 66 throw runtime_error("Programcounter is out of bound");
67 67
68 /* execute instruction */ 68 /* execute instruction */
69 m_program->at(pc)->execute(this); 69 (*m_program->at(pc))(this);
70 ++m_registers[0]; 70 ++m_registers[0];
71 } 71 }
72} 72}