only send one step command each time to clean up output

This commit is contained in:
Paul Gardner-Stephen committed 2019-04-17 11:29:27 +09:30
1 parent 1548632a07
commit 3097727bfd
1 file changed
+1 -1
+1 -1
View File
@@ -149,7 +149,7 @@ int main (int argc, char *argv[]) {
while(1) {
nBytes = read(sockfd, buffer, sizeof(buffer));
if (nBytes >= 1) {
write(sockfd,"step\rstep\rstep\rstep\r",5*4);
write(sockfd,"step\rstep\rstep\rstep\r",5*1);
// fprintf(stdout,"%d: %s\n",nBytes,buffer);
int pc,sp,cycles;
int nf=sscanf(buffer,".C:%x%*[^:]:%*x X:%*x Y:%*x SP:%x %*[^ ] %d",&pc,&sp,&cycles);