From a66c93c55bbe60bb43513ecf5ddbfa8eee5b8a35 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stephan=20M=C3=BChlstrasser?= Date: Wed, 26 Nov 2014 19:01:15 +0100 Subject: [PATCH] Use CR instead of LF, because this works better over the serial port of a real C1P. --- src/c1p65/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/c1p65/main.c b/src/c1p65/main.c index 5edc525eb..3d6cdbe8b 100644 --- a/src/c1p65/main.c +++ b/src/c1p65/main.c @@ -100,7 +100,7 @@ static void Transform (unsigned long StartAddress, FILE *In, FILE *Out, /* Loop over all input bytes and enter them one by one */ for (c = getc(In); c != EOF; c = getc(In)) { - fprintf(Out, "%02.2X\n", (unsigned int) c & 0xFF); + fprintf(Out, "%02.2X\r", (unsigned int) c & 0xFF); } if (AutoStart) { @@ -111,7 +111,7 @@ static void Transform (unsigned long StartAddress, FILE *In, FILE *Out, } else { /* Store 00 to 0x00FB to enable keyboard input at the end */ - fprintf(Out, "%c%04.4X%c%02.2X\n", ADDRESS_MODE_CMD, + fprintf(Out, "%c%04.4X%c%02.2X", ADDRESS_MODE_CMD, 0x00FB, DATA_MODE_CMD, 0x00); } } -- 2.39.5