ComSquare
Public Attributes | List of all members
ComSquare::Debugger::CPU::DisassemblyContext Struct Reference

Struct used to emulate the state of the processor during the disassembly since instructions take a different amount of space depending on some flags. More...

#include <CPUDebug.hpp>

Collaboration diagram for ComSquare::Debugger::CPU::DisassemblyContext:

Public Attributes

bool mFlag = true
 The accumulator and Memory width flag (in native mode only) - 0 = 16 bits mode, 1 = 8 bits mode. @info If this flag is set to false, instructions that have the ImmediateByA addressing mode take 1 more bit of space. More...
 
bool xFlag = true
 The indeX register width flag (in native mode only) - 0 = 16 bits mode, 1 = 8 bits mode OR the Break flag (in emulation mode only) @info If this flag is set to false, instructions that have the ImmediateByX addressing mode take 1 more bit of space. More...
 
bool isEmulationMode = true
 Is the CPU emulating a 6502? If yes, some instructions don't change flags the same way. More...
 
TrustLevel level = Safe
 Sometimes, the flags can't be tracked correctly after an instruction so the next instructions may not be correctly disassembled. More...
 

Detailed Description

Struct used to emulate the state of the processor during the disassembly since instructions take a different amount of space depending on some flags.

Member Data Documentation

◆ isEmulationMode

bool ComSquare::Debugger::CPU::DisassemblyContext::isEmulationMode = true

Is the CPU emulating a 6502? If yes, some instructions don't change flags the same way.

◆ level

TrustLevel ComSquare::Debugger::CPU::DisassemblyContext::level = Safe

Sometimes, the flags can't be tracked correctly after an instruction so the next instructions may not be correctly disassembled.

◆ mFlag

bool ComSquare::Debugger::CPU::DisassemblyContext::mFlag = true

The accumulator and Memory width flag (in native mode only) - 0 = 16 bits mode, 1 = 8 bits mode. @info If this flag is set to false, instructions that have the ImmediateByA addressing mode take 1 more bit of space.

◆ xFlag

bool ComSquare::Debugger::CPU::DisassemblyContext::xFlag = true

The indeX register width flag (in native mode only) - 0 = 16 bits mode, 1 = 8 bits mode OR the Break flag (in emulation mode only) @info If this flag is set to false, instructions that have the ImmediateByX addressing mode take 1 more bit of space.


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