⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 instruction_test.h

📁 浙江大学的悟空嵌入式系统模拟器
💻 H
字号:
#include <cppunit/extensions/HelperMacros.h>
#include "Instruction.h"

using namespace Core;

class MU0_Load_Store : public Instruction
{
public:

	virtual bool execute(void);

	DECLARE_SINGLETON(MU0_Load_Store)

};

class MU0_Add_Sub : public Instruction
{
public:

	virtual bool execute(void);

	DECLARE_SINGLETON(MU0_Add_Sub)

};

class MU0_Instruction_Set : public Instruction_Set
{
public:

	virtual void register_instructions();
	
	DECLARE_SINGLETON(MU0_Instruction_Set)

};

class Instruction_Test : public CppUnit::TestFixture
{
	CPPUNIT_TEST_SUITE(Instruction_Test);
	CPPUNIT_TEST( test_instruction );	
	CPPUNIT_TEST_SUITE_END();
public:
	void setUp();
	void tearDown();
	void test_instruction();

private:
	Instruction_Set * instr_set_;

};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -