26 #ifndef v6502_debugger_h 27 #define v6502_debugger_h unsigned char v6502_completeDebuggerCommand(EditLine *e, int ch)
An editline compatible function for tab-completion.
Definition: debugger.c:156
Virtual CPU Object.
Definition: cpu.h:35
void v6502_runDebuggerScript(v6502_cpu *cpu, FILE *file, v6502_breakpoint_list *breakpoint_list, as6502_symbol_table *table, v6502_debuggerRunCallback runCallback, int *verbose)
Runs all debugger commands contained in a FILE pointer.
Definition: debugger.c:118
int v6502_handleDebuggerCommand(v6502_cpu *cpu, char *command, size_t len, v6502_breakpoint_list *breakpoint_list, as6502_symbol_table *table, v6502_debuggerRunCallback runCallback, int *verbose)
Handle a command given by an external debugger line editor on a given v6502_cpu.
Definition: debugger.c:195
The assembler's per-object symbol table structure, which holds all symbols.
Definition: symbols.h:71
void() v6502_debuggerRunCallback(v6502_cpu *cpu)
This callback is used when v6502_handleDebuggerCommand recieves a run command.
Definition: debugger.h:36
Breakpoint List Object.
Definition: breakpoint.h:34
int v6502_compareDebuggerCommand(const char *command, size_t len, const char *literal)
This is the exact function used by v6502_handleDebuggerCommand to do fuzzy string comparisons...
Definition: debugger.c:141
Virtual Memory Object.
Definition: mem.h:119
int v6502_loadFileAtAddress(v6502_memory *mem, const char *fname, uint16_t address)
Loads the binary data from file at fname into memory mem at given starting address.
Definition: debugger.c:96