12 class IllegalInstruction
: public util::Exception
{
14 IllegalInstruction(word opcode
)
15 : Exception( util::format("Illegal Instruction: %x") % opcode
) {}
22 * An interface for all Instructions on the chip.
27 virtual ~Instruction() {}
30 virtual int operator()(Core
*core
) = 0;
31 virtual int trace(Core
*core
, std::ostream
& ostr
) = 0;
32 virtual bool is2Word() const { return false; }
37 #endif /*INSTRUCTION_H*/