aboutsummaryrefslogtreecommitdiff
path: root/c/echo.c
diff options
context:
space:
mode:
authorJavier Degirolmo2012-07-20 23:14:19 -0300
committerJavier Degirolmo2012-07-20 23:14:19 -0300
commit91b9bde87fa4510c7cc2d55b5b369ebb6bb4c4c4 (patch)
treea71d1373cc22d9df355536a7a5f5cfbfd4df929c /c/echo.c
parentc7cf8a2eb4178f59a5dfe2c3ad6bf1a39eeca523 (diff)
Fixed an issue with echo_send_command_ex in the C Echo API
Diffstat (limited to 'c/echo.c')
-rw-r--r--c/echo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/echo.c b/c/echo.c
index 249ea92..aac7941 100644
--- a/c/echo.c
+++ b/c/echo.c
@@ -126,7 +126,7 @@ void echo_send_command_ex(unsigned char cmd, const void *addr) {
z80_ram[0x1FFD] = param;
param >>= 8;
z80_ram[0x1FFE] = param | 0x80;
- param >>= 8;
+ param >>= 7;
param = (param & 0x7F) | (param >> 1 & 0x80);
z80_ram[0x1FFC] = param;