From 45581d3d376e8deed84952cb838ae330549e5241 Mon Sep 17 00:00:00 2001 From: manuel Date: Tue, 12 May 2009 23:18:17 +0200 Subject: my cpu design --- ue3/mycpu/instructions.h | 66 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 ue3/mycpu/instructions.h (limited to 'ue3/mycpu/instructions.h') diff --git a/ue3/mycpu/instructions.h b/ue3/mycpu/instructions.h new file mode 100644 index 0000000..ebd1533 --- /dev/null +++ b/ue3/mycpu/instructions.h @@ -0,0 +1,66 @@ +/** + * @module instructions + * @author Guenther Neuwirth (0626638), Manuel Mausz (0728348) + * @brief TODO + * @date 10.05.2009 + */ + +#ifndef INSTRUCTIONS_H +#define INSTRUCTIONS_H 1 + +#include "cinstruction.h" +#include "ccpu.h" + +/** + * @class CInstructionInc + * + * TODO + */ +class CInstructionInc + : public CInstruction +{ + public: + /** + * @method CInstruction + * @brief Default ctor + * @param - + * @return - + * @globalvars none + * @exception none + * @conditions none + */ + CInstructionInc() + : CInstruction("inc") + {}; + + /** + * @method ~CInstruction + * @brief Default dtor + * @param - + * @return - + * @globalvars none + * @exception none + * @conditions none + */ + ~CInstructionInc() + {}; + + /* TODO */ + CInstructionInc *factory() + { + return new CInstructionInc; + } + + /* TODO */ + void compile(std::list& params); + + /* TODO */ + void execute(CCPU *cpu); + + protected: + unsigned m_regidx1; +}; + +#endif + +/* vim: set et sw=2 ts=2: */ -- cgit v1.2.3