Commit 6324b9c7bc9a4ace12aedaa2952b8176750dba2f
1 parent
0e767bc8
Corrected some memory prints to hex. Added teleporter save state
Showing
2 changed files
with
4 additions
and
4 deletions
data/teleporter.sav
0 → 100644
No preview for this file type
debug.c
... | ... | @@ -116,8 +116,8 @@ void query() |
116 | 116 | print_regs(); |
117 | 117 | break; |
118 | 118 | case 'm': |
119 | - sscanf(input,"m %d\n",&mempos); | |
120 | - fprintf(stderr,"%d: %02x\n",mempos,mem[mempos]); | |
119 | + sscanf(input,"m %X\n",&mempos); | |
120 | + fprintf(stderr,"%02X: %02x\n",mempos,mem[mempos]); | |
121 | 121 | break; |
122 | 122 | case 's': |
123 | 123 | sscanf(input,"s %s\n",filename); |
... | ... | @@ -131,8 +131,8 @@ void query() |
131 | 131 | break; |
132 | 132 | case 'w': |
133 | 133 | //FIXME ALREADY |
134 | - sscanf(input,"w %d %d\n",®,&value); | |
135 | - fprintf(stderr,"Setting register %d to %d",reg,value); | |
134 | + sscanf(input,"w r%d %d\n",®,&value); | |
135 | + fprintf(stderr,"Setting r%d = %02X",reg,value); | |
136 | 136 | regs[reg] = value; |
137 | 137 | break; |
138 | 138 | case 'q': | ... | ... |