Commit 6324b9c7bc9a4ace12aedaa2952b8176750dba2f

Authored by Imanol-Mikel Barba Sabariego
1 parent 0e767bc8

Corrected some memory prints to hex. Added teleporter save state

data/teleporter.sav 0 → 100644
No preview for this file type
@@ -116,8 +116,8 @@ void query() @@ -116,8 +116,8 @@ void query()
116 print_regs(); 116 print_regs();
117 break; 117 break;
118 case 'm': 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 break; 121 break;
122 case 's': 122 case 's':
123 sscanf(input,"s %s\n",filename); 123 sscanf(input,"s %s\n",filename);
@@ -131,8 +131,8 @@ void query() @@ -131,8 +131,8 @@ void query()
131 break; 131 break;
132 case 'w': 132 case 'w':
133 //FIXME ALREADY 133 //FIXME ALREADY
134 - sscanf(input,"w %d %d\n",&reg,&value);  
135 - fprintf(stderr,"Setting register %d to %d",reg,value); 134 + sscanf(input,"w r%d %d\n",&reg,&value);
  135 + fprintf(stderr,"Setting r%d = %02X",reg,value);
136 regs[reg] = value; 136 regs[reg] = value;
137 break; 137 break;
138 case 'q': 138 case 'q':