Service that synchronizes Mesen's Program Counter with ASM source files. More...
#include <asm_follow_service.h>

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::SymbolProvider * | symbol_provider_ |
| std::atomic< bool > | enabled_ {false} |
| uint32_t | last_pc_ = 0xFFFFFF |
| LocationCallback | callback_ |
| double | last_poll_time_ = 0.0 |
Service that synchronizes Mesen's Program Counter with ASM source files.
Definition at line 17 of file asm_follow_service.h.
| using yaze::editor::AsmFollowService::LocationCallback = std::function<void(const std::string&)> |
Definition at line 29 of file asm_follow_service.h.
| yaze::editor::AsmFollowService::AsmFollowService | ( | emu::debug::SymbolProvider * | symbol_provider | ) |
Definition at line 9 of file asm_follow_service.cc.
|
default |
| void yaze::editor::AsmFollowService::Update | ( | ) |
Definition at line 12 of file asm_follow_service.cc.
References callback_, enabled_, yaze::emu::mesen::MesenClientRegistry::GetOrCreate(), yaze::emu::debug::SymbolProvider::GetSourceLocation(), last_pc_, last_poll_time_, and symbol_provider_.

|
inline |
Definition at line 24 of file asm_follow_service.h.
References enabled_.
|
inline |
Definition at line 25 of file asm_follow_service.h.
References enabled_.
|
inline |
Definition at line 30 of file asm_follow_service.h.
References callback_.
|
private |
Definition at line 33 of file asm_follow_service.h.
Referenced by Update().
|
private |
Definition at line 34 of file asm_follow_service.h.
Referenced by IsEnabled(), SetEnabled(), and Update().
|
private |
Definition at line 35 of file asm_follow_service.h.
Referenced by Update().
|
private |
Definition at line 36 of file asm_follow_service.h.
Referenced by SetLocationCallback(), and Update().
|
private |
Definition at line 37 of file asm_follow_service.h.
Referenced by Update().