aboutsummaryrefslogtreecommitdiff
path: root/c/echo.c
diff options
context:
space:
mode:
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 246c6b6..3b081cb 100644
--- a/c/echo.c
+++ b/c/echo.c
@@ -46,7 +46,7 @@ void echo_init(const void *list) {
const uint8_t *src = echo_blob;
volatile uint8_t *dest = z80_ram;
int16_t count = sizeof(echo_blob)-1;
- while (count >= 0)
+ while (count-- >= 0)
*dest++ = *src++;
// Let Echo start running!