823 |
|
fprintf(monout, "No variables defined\n"); |
824 |
|
else |
825 |
|
for (Variable *v=first_var; v; v=v->next) |
826 |
< |
fprintf(monout, "%s = %08lx\n", v->name, v->value); |
826 |
> |
fprintf(monout, "%s = %08x\n", v->name, v->value); |
827 |
|
|
828 |
|
} else if (mon_token == T_NAME) { |
829 |
|
char var_name[256]; |
916 |
|
} |
917 |
|
|
918 |
|
if (mon_token == T_END) { |
919 |
< |
fprintf(monerr, "Buffer size: %08lx bytes\n", mon_mem_size); |
919 |
> |
fprintf(monerr, "Buffer size: %08x bytes\n", mon_mem_size); |
920 |
|
return; |
921 |
|
} |
922 |
|
|
928 |
|
} |
929 |
|
|
930 |
|
if ((mem = (uint8 *)realloc(mem, size)) != NULL) |
931 |
< |
fprintf(monerr, "Buffer size: %08lx bytes\n", mon_mem_size = size); |
931 |
> |
fprintf(monerr, "Buffer size: %08x bytes\n", mon_mem_size = size); |
932 |
|
else |
933 |
|
fprintf(monerr, "Unable to reallocate buffer\n"); |
934 |
|
} |
970 |
|
read_func = mon_read_word; |
971 |
|
write_func = mon_write_word; |
972 |
|
break; |
973 |
+ |
default: |
974 |
+ |
abort(); |
975 |
+ |
break; |
976 |
|
} |
977 |
|
|
978 |
|
while (adr<=end_adr) { |
1142 |
|
while (!done) { |
1143 |
|
if (interactive) { |
1144 |
|
char prompt[16]; |
1145 |
< |
sprintf(prompt, "[%08lx]-> ", mon_dot_address); |
1145 |
> |
sprintf(prompt, "[%08x]-> ", mon_dot_address); |
1146 |
|
read_line(prompt); |
1147 |
|
} else { |
1148 |
|
if (argc == 0) { |