Skip to content

Commit

Permalink
Add missing command "e" for VRAM
Browse files Browse the repository at this point in the history
  • Loading branch information
kktos committed Dec 9, 2020
1 parent a05de23 commit 3781601
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/debugger/commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@ void cmd_dump_videomem(int data, int argc, char* argv[]) {
*/
void cmd_edit_mem(int data, int argc, char* argv[]) {
int addr= cmd_eval_addr(argv[1]);
int value;
int idx= 2;

argc-= 2;
switch(dumpmode) {
case DDUMP_RAM:
{
int value;
int idx= 2;
int bank= addr >> 16;
while(argc--) {
value= (int)strtol(argv[idx++], NULL, 16);
Expand All @@ -165,6 +165,12 @@ void cmd_edit_mem(int data, int argc, char* argv[]) {
}

case DDUMP_VERA:
while(argc--) {
value= (int)strtol(argv[idx++], NULL, 16);
addr &= 0x1FFFF;
video_space_write(addr, value);
addr++;
}
break;

}
Expand Down

0 comments on commit 3781601

Please sign in to comment.