// $Id: Dasm.hh 5288 2006-03-26 21:14:23Z manuelbi $ #ifndef DASM_HH #define DASM_HH #include "openmsx.hh" #include class MSXCPUInterface; class EmuTime; namespace openmsx { /** Disassemble * @param interf The CPU interface, used to peek bytes from memory * @param pc The position (program counter) where to start disassembling * @param buf The bytes that form this opcode (max 4). The buffer is only * filled with the min required bytes (see return value) * @param dest String representation of the disassembled opcode * @param time TODO * @return Length of the disassembled opcode in bytes */ int dasm(const MSXCPUInterface& interf, word pc, byte buf[4], std::string& dest, const EmuTime& time); } // namespace openmsx #endif