Skip to content

Commit 38074e3

Browse files
authored
1 parent ef17666 commit 38074e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/debug.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -527,8 +527,8 @@ void handle_set_bytes(int address, char *bytes_data) {
527527
while (sscanf(bytes_data, "%02x", &byte) == 1) {
528528
printf("$%02x <---- BYTE @ $%06X\n", byte, address );
529529
bytes_data += 2;
530-
address++;
531530
set_byte_at_address(address, byte & 0xFF);
531+
address++;
532532
}
533533
}
534534

@@ -1027,7 +1027,7 @@ void debug_server_poll() {
10271027
/* failure occurs, we will close the */
10281028
/* connection. */
10291029
/*****************************************************/
1030-
rc = recv(fds[i].fd, buffer, sizeof(buffer), 0);
1030+
rc = recv(fds[i].fd, buffer, sizeof(buffer), MSG_DONTWAIT);
10311031
if (rc < 0) {
10321032
if (errno != EWOULDBLOCK) {
10331033
perror("recv() failed");
@@ -1313,7 +1313,7 @@ int do_dis_json(char *buf, word32 kpc, int accsize, int xsize, int op_provided,
13131313
sprintf(buf_disasm,"%s [$%0*x],Y",out,args*2,val);
13141314
break;
13151315

1316-
case IMMED:
1316+
case IMMEDIATE:
13171317
sprintf(buf_disasm,"%s #$%0*x",out, args*2, val);
13181318
break;
13191319

0 commit comments

Comments
 (0)