Skip to content

Commit

Permalink
Fixes Issue digarok#105
Browse files Browse the repository at this point in the history
  • Loading branch information
applemu authored Jan 13, 2021
1 parent ef17666 commit 38074e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,8 @@ void handle_set_bytes(int address, char *bytes_data) {
while (sscanf(bytes_data, "%02x", &byte) == 1) {
printf("$%02x <---- BYTE @ $%06X\n", byte, address );
bytes_data += 2;
address++;
set_byte_at_address(address, byte & 0xFF);
address++;
}
}

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

case IMMED:
case IMMEDIATE:
sprintf(buf_disasm,"%s #$%0*x",out, args*2, val);
break;

Expand Down

0 comments on commit 38074e3

Please sign in to comment.