/** * @module instructions * @author Guenther Neuwirth (0626638), Manuel Mausz (0728348) * @brief TODO * @date 10.05.2009 */ #include "instructions.h" using namespace std; void CInstructionInc::compile(std::list& params) { if (params.size() != 1) throw runtime_error("Invalid paramater count - must be 1"); m_regidx1 = parseRegister(params.front()); } /*----------------------------------------------------------------------------*/ void CInstructionInc::execute(CCPU *cpu) { checkRegister(cpu, m_regidx1); cpu->getRegisters()[m_regidx1]++; } /* vim: set et sw=2 ts=2: */