ComSquare
Public Member Functions | Public Attributes | List of all members
ComSquare::Debugger::CPU::DisassembledInstruction Struct Reference

Struct representing an instruction in an human readable way (created by disassembling the rom). More...

#include <CPUDebug.hpp>

Inheritance diagram for ComSquare::Debugger::CPU::DisassembledInstruction:
Collaboration diagram for ComSquare::Debugger::CPU::DisassembledInstruction:

Public Member Functions

 DisassembledInstruction (const ComSquare::CPU::Instruction &instruction, uint24_t address, std::string argument, uint8_t opcode)
 
 DisassembledInstruction (const DisassembledInstruction &)=default
 
DisassembledInstructionoperator= (const DisassembledInstruction &)=default
 
 ~DisassembledInstruction ()=default
 

Public Attributes

uint24_t address
 The address of the instruction. More...
 
std::string argument
 A string representing the argument with the right addressing mode. More...
 
uint8_t opcode
 The opcode of the instruction. More...
 
TrustLevel level
 Are we sure that this instruction has been correctly disassembled? More...
 
- Public Attributes inherited from ComSquare::CPU::Instruction
int(CPU::* call )(uint24_t valueAddr, AddressingMode mode) = nullptr
 
int cycleCount = 0
 
std::string name
 
AddressingMode addressingMode = Implied
 
int size = 0
 

Detailed Description

Struct representing an instruction in an human readable way (created by disassembling the rom).

Constructor & Destructor Documentation

◆ DisassembledInstruction() [1/2]

ComSquare::Debugger::CPU::DisassembledInstruction::DisassembledInstruction ( const ComSquare::CPU::Instruction instruction,
uint24_t  address,
std::string  argument,
uint8_t  opcode 
)

◆ DisassembledInstruction() [2/2]

ComSquare::Debugger::CPU::DisassembledInstruction::DisassembledInstruction ( const DisassembledInstruction )
default

◆ ~DisassembledInstruction()

ComSquare::Debugger::CPU::DisassembledInstruction::~DisassembledInstruction ( )
default

Member Function Documentation

◆ operator=()

DisassembledInstruction& ComSquare::Debugger::CPU::DisassembledInstruction::operator= ( const DisassembledInstruction )
default

Member Data Documentation

◆ address

uint24_t ComSquare::Debugger::CPU::DisassembledInstruction::address

The address of the instruction.

◆ argument

std::string ComSquare::Debugger::CPU::DisassembledInstruction::argument

A string representing the argument with the right addressing mode.

◆ level

TrustLevel ComSquare::Debugger::CPU::DisassembledInstruction::level

Are we sure that this instruction has been correctly disassembled?

◆ opcode

uint8_t ComSquare::Debugger::CPU::DisassembledInstruction::opcode

The opcode of the instruction.


The documentation for this struct was generated from the following files: