Skip to content

Commit

Permalink
Add cmd "data"
Browse files Browse the repository at this point in the history
  • Loading branch information
kktos committed Dec 7, 2020
1 parent 739e1a7 commit 879fd7e
Show file tree
Hide file tree
Showing 5 changed files with 171 additions and 133 deletions.
13 changes: 11 additions & 2 deletions src/debugger/commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ command_t cmd_table[] = {
{ "symdump", cmd_symsave, 1, 0, "symdump symbolFilename\ndump in a file the symbol dictionary" },

{ "code", cmd_code, 0, 0, "code\nToggle the display in full page of code/disasm" },
{ "data", cmd_data, 0, 0, "data\nToggle the display in full page of data" },
{ "font", cmd_font, 0, 0, "font [Name|ID [Path]]\nDisplay loaded fonts or Set the debugger font or Load and Set the debugger font" },

{ "romdebug", cmd_romdebug, 0, 0, "romdebug\ntoggle ROM debug mode to allow editing" },
Expand Down Expand Up @@ -489,11 +490,19 @@ void cmd_symsave(int data, int argc, char* argv[]) {
}

/* ----------------------------------------------------------------------------
display the code in full page
display the code zone in full page
code
*/
void cmd_code(int data, int argc, char* argv[]) {
DEBUGupdateLayout(layoutID==0 ? 1 : 0);
DEBUGupdateLayout(layoutID != 1 ? 1 : 0);
}

/* ----------------------------------------------------------------------------
display the data zone in full page
data
*/
void cmd_data(int data, int argc, char* argv[]) {
DEBUGupdateLayout(layoutID != 2 ? 2 : 0);
}

/* ----------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions src/debugger/commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ void cmd_symload(int data, int argc, char* argv[]);
void cmd_symsave(int data, int argc, char* argv[]);

void cmd_code(int data, int argc, char* argv[]);
void cmd_data(int data, int argc, char* argv[]);
void cmd_font(int data, int argc, char* argv[]);

void cmd_romdebug(int data, int argc, char* argv[]);
Expand Down
Loading

0 comments on commit 879fd7e

Please sign in to comment.