From 89e202f49b9857dcd3627fbc4e0262125d729bbc Mon Sep 17 00:00:00 2001 From: manuel Date: Wed, 13 May 2009 04:09:39 +0200 Subject: adding all instructions and displays --- ue3/mycpu/cinstruction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ue3/mycpu/cinstruction.cpp') diff --git a/ue3/mycpu/cinstruction.cpp b/ue3/mycpu/cinstruction.cpp index 32bdd2f..57acd5f 100644 --- a/ue3/mycpu/cinstruction.cpp +++ b/ue3/mycpu/cinstruction.cpp @@ -16,7 +16,7 @@ using namespace std; const unsigned CInstruction::parseRegister(const std::string& str) { unsigned reg; - if (str.length() < 2 || str[0] != 'R') + if (str.length() < 2 || str[0] != 'r') throw runtime_error("Invalid syntax of register"); try @@ -33,7 +33,7 @@ const unsigned CInstruction::parseRegister(const std::string& str) /*----------------------------------------------------------------------------*/ -inline void CInstruction::checkRegister(CCPU *cpu, unsigned regidx) +inline void CInstruction::checkRegister(CCPU *cpu, const unsigned regidx) { if (regidx >= cpu->getRegisterCount()) { -- cgit v1.2.3