From 431bbac5a99abbccf33500e22aa353ec792eff94 Mon Sep 17 00:00:00 2001 From: manuel Date: Wed, 13 May 2009 15:29:51 +0200 Subject: * adding -Wno-long-long to all Makefiles * adding execute operator to cinstruction * added labels map for better performance --- ue3/mycpu/instructions.h | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'ue3/mycpu/instructions.h') diff --git a/ue3/mycpu/instructions.h b/ue3/mycpu/instructions.h index 8c62e0b..0e4d99c 100644 --- a/ue3/mycpu/instructions.h +++ b/ue3/mycpu/instructions.h @@ -274,29 +274,19 @@ class CInstructionLabel { public: CInstructionLabel() - : CInstruction("label"), m_label("") + : CInstruction("label") {} - const bool isLabel() - { - return true; - } - - const std::string getLabelName() - { - return m_label; - } - CInstructionLabel *factory() { return new CInstructionLabel; } - void compile(std::list& params); - void execute(CCPU *cpu); + void compile(std::list& params) + {} - protected: - std::string m_label; + void execute(CCPU *cpu) + {} }; /*============================================================================*/ -- cgit v1.2.3