yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::AsmFollowService Class Reference

Service that synchronizes Mesen's Program Counter with ASM source files. More...

#include <asm_follow_service.h>

Collaboration diagram for yaze::editor::AsmFollowService:

Public Types

using LocationCallback = std::function<void(const std::string&)>
 

Public Member Functions

 AsmFollowService (emu::debug::SymbolProvider *symbol_provider)
 
 ~AsmFollowService ()=default
 
void Update ()
 
void SetEnabled (bool enabled)
 
bool IsEnabled () const
 
void SetLocationCallback (LocationCallback callback)
 

Private Attributes

emu::debug::SymbolProvidersymbol_provider_
 
std::atomic< bool > enabled_ {false}
 
uint32_t last_pc_ = 0xFFFFFF
 
LocationCallback callback_
 
double last_poll_time_ = 0.0
 

Detailed Description

Service that synchronizes Mesen's Program Counter with ASM source files.

Definition at line 17 of file asm_follow_service.h.

Member Typedef Documentation

◆ LocationCallback

using yaze::editor::AsmFollowService::LocationCallback = std::function<void(const std::string&)>

Definition at line 29 of file asm_follow_service.h.

Constructor & Destructor Documentation

◆ AsmFollowService()

yaze::editor::AsmFollowService::AsmFollowService ( emu::debug::SymbolProvider * symbol_provider)

Definition at line 9 of file asm_follow_service.cc.

◆ ~AsmFollowService()

yaze::editor::AsmFollowService::~AsmFollowService ( )
default

Member Function Documentation

◆ Update()

void yaze::editor::AsmFollowService::Update ( )

◆ SetEnabled()

void yaze::editor::AsmFollowService::SetEnabled ( bool enabled)
inline

Definition at line 24 of file asm_follow_service.h.

References enabled_.

◆ IsEnabled()

bool yaze::editor::AsmFollowService::IsEnabled ( ) const
inline

Definition at line 25 of file asm_follow_service.h.

References enabled_.

◆ SetLocationCallback()

void yaze::editor::AsmFollowService::SetLocationCallback ( LocationCallback callback)
inline

Definition at line 30 of file asm_follow_service.h.

References callback_.

Member Data Documentation

◆ symbol_provider_

emu::debug::SymbolProvider* yaze::editor::AsmFollowService::symbol_provider_
private

Definition at line 33 of file asm_follow_service.h.

Referenced by Update().

◆ enabled_

std::atomic<bool> yaze::editor::AsmFollowService::enabled_ {false}
private

Definition at line 34 of file asm_follow_service.h.

Referenced by IsEnabled(), SetEnabled(), and Update().

◆ last_pc_

uint32_t yaze::editor::AsmFollowService::last_pc_ = 0xFFFFFF
private

Definition at line 35 of file asm_follow_service.h.

Referenced by Update().

◆ callback_

LocationCallback yaze::editor::AsmFollowService::callback_
private

Definition at line 36 of file asm_follow_service.h.

Referenced by SetLocationCallback(), and Update().

◆ last_poll_time_

double yaze::editor::AsmFollowService::last_poll_time_ = 0.0
private

Definition at line 37 of file asm_follow_service.h.

Referenced by Update().


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