Namespaces | Functions
Dasm.hh File Reference
#include "EmuTime.hh"
#include "function_ref.hh"
#include <cstdint>
#include <functional>
#include <span>
#include <string>
Include dependency graph for Dasm.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


namespace  openmsx
 This file implemented 3 utility functions:


void openmsx::appendAddrAsHex (std::string &output, uint16_t addr)
unsigned openmsx::dasm (const MSXCPUInterface &interface, uint16_t pc, std::span< uint8_t, 4 > buf, std::string &dest, EmuTime::param time, function_ref< void(std::string &, uint16_t)> appendAddr=&appendAddrAsHex)
unsigned openmsx::instructionLength (const MSXCPUInterface &interface, uint16_t pc, EmuTime::param time)
 Calculate the length of the instruction at the given address.
uint16_t openmsx::instructionBoundary (const MSXCPUInterface &interface, uint16_t addr, EmuTime::param time)
 This is only an heuristic to display instructions in a debugger disassembly view.
uint16_t openmsx::nInstructionsBefore (const MSXCPUInterface &interface, uint16_t addr, EmuTime::param time, int n)
 Get the start address of the 'n'th instruction before the instruction containing the byte at the given address 'addr'.