- tweak ^D newlins

- %d was incorrect
- template pointers were 16-bit.
This commit is contained in:
Kelvin Sherlock 2019-03-19 00:38:33 -04:00
parent d7a92f4441
commit 7aea2e56f2
2 changed files with 4 additions and 5 deletions

View File

@ -1244,7 +1244,7 @@ static int parse_command(const char *cp) {
goto indir;
}
"%d" {
addr = engine.dbank;
addr = engine.direct;
has_addr = 1;
has_bank = 1;
goto indir;
@ -1471,10 +1471,9 @@ int debug_shell(int code) {
for(;;) {
cp = x_readline("> ");
if (!cp) {
if (++control_d_count < 2) {
fputs("\n", stdout);
fputs("\n", stdout);
if (++control_d_count < 2)
continue;
}
return 0;
}
control_d_count = 0;

View File

@ -338,7 +338,7 @@ word32 debug_apply_template(word32 address, const char *name) {
case 5: /* cstring */
case 6: /* pstring */
case 7: /* gs/os string */
value = get_memory16_c(address, 0);
value = get_memory24_c(address, 0);
address += 4;
printf("%08x ", value);
break;