Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/famicom-dumper.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2020-11-28 01:01:45 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2020-11-28 01:01:45 +0300
commit31f5919539efcccafd17c0a05b3e7b18a5fe904d (patch)
tree655b32bbe3ad24b1362eb372ef8b713b1ed5434b /dumper.c
parentbd3e8800ded9be7326c2a5422c19487b36053a7a (diff)
Refactoring
Diffstat (limited to 'dumper.c')
-rw-r--r--dumper.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dumper.c b/dumper.c
index 9340782..90326cd 100644
--- a/dumper.c
+++ b/dumper.c
@@ -913,10 +913,10 @@ int main (void)
case COMMAND_PRG_INIT:
comm_start(COMMAND_PRG_STARTED, 5);
comm_send_byte(PROTOCOL_VERSION);
- comm_send_byte(SEND_BUFFER & 0xFF);
- comm_send_byte((SEND_BUFFER >> 8) & 0xFF);
- comm_send_byte(RECV_BUFFER & 0xFF);
- comm_send_byte((RECV_BUFFER >> 8) & 0xFF);
+ comm_send_byte((SEND_BUFFER_SIZE - 4) & 0xFF);
+ comm_send_byte(((SEND_BUFFER_SIZE - 4) >> 8) & 0xFF);
+ comm_send_byte((RECV_BUFFER_SIZE - 4) & 0xFF);
+ comm_send_byte(((RECV_BUFFER_SIZE - 4) >> 8) & 0xFF);
break;
case COMMAND_PRG_READ_REQUEST: