#include <errno.h>#include <stdio.h>#include <string.h>#include <stdlib.h>#include <unistd.h>#include <stdint.h>#include <assert.h>#include "pd.h"#include "md.h"#include "system.h"#include "debug.h"#include "linenoise/linenoise.h"Classes | |
| class | md |
| List of commands. More... | |
Macros | |
| #define | CURRENT_DEBUG_CONTEXT_NAME debug_context_names[debug_context] |
| #define | REG0(id, idx) |
| #define | REG1(id) { # id, offsetof(m68k_state_t, id), sizeof(m68k_state.id) } |
| #define | REG2(id, idx, name) |
| #define | REG3(id) { # id, offsetof(z80_state_t, id), sizeof(z80_state.id) } |
| #define | PRINT_Z80_FLAGS(x) |
| #define | MAX_DISASM 128 |
Functions | |
| void | completion (const char *buf, linenoiseCompletions *lc) |
| Linenoise completion callback. | |
| static int | debug_strtou32 (const char *str, uint32_t *ret) |
| A simple wrapper around strtoul() with error check. | |
| static void | debug_print_hex_buf (unsigned char *buf, size_t len, size_t addr_label_start) |
| Pretty prints hex dump. | |
| static int | debug_parse_cpu (char *arg) |
| Convert a core name to a context ID. | |
Variables | |
| static const char * | debug_context_names [] |
| const char * | psg_aliases [] = { "sn", "sn76489", "psg", NULL } |
| Aliases for the various cores. | |
| const char * | fm_aliases [] = { "fm", "ym", "ym2612", NULL } |
| Aliases for YM2612 core. | |
| const char * | z80_aliases [] = { "z80", "z", NULL} |
| Aliases for Z80 core. | |
| const char * | m68k_aliases [] = { "m68k", "m", "68000", "m68000", NULL} |
| Aliases for M68K core. | |
| #define CURRENT_DEBUG_CONTEXT_NAME debug_context_names[debug_context] |
| #define MAX_DISASM 128 |
| #define PRINT_Z80_FLAGS | ( | x | ) |
| #define REG0 | ( | id, | |
| idx | |||
| ) |
| #define REG1 | ( | id | ) | { # id, offsetof(m68k_state_t, id), sizeof(m68k_state.id) } |
| #define REG3 | ( | id | ) | { # id, offsetof(z80_state_t, id), sizeof(z80_state.id) } |
| void completion | ( | const char * | buf, |
| linenoiseCompletions * | lc | ||
| ) |
Linenoise completion callback.
| buf | String so far. |
| lc | List of linenoise completions. |
|
static |
Convert a core name to a context ID.
| [in] | arg | NUL-terminated core name. |
|
static |
Pretty prints hex dump.
| [in] | buf | Buffer to pretty print. |
| len | Number of bytes to print. | |
| addr_label_start | The address of the first byte. |
|
static |
A simple wrapper around strtoul() with error check.
| [in] | str | String to convert to number. |
| [out] | ret | Number "str" represents. |
|
static |
| const char* fm_aliases[] = { "fm", "ym", "ym2612", NULL } |
Aliases for YM2612 core.
| const char* m68k_aliases[] = { "m68k", "m", "68000", "m68000", NULL} |
Aliases for M68K core.
| const char* psg_aliases[] = { "sn", "sn76489", "psg", NULL } |
Aliases for the various cores.
Aliases for SN76489 core.
| const char* z80_aliases[] = { "z80", "z", NULL} |
Aliases for Z80 core.
1.8.1.1