From: Stephan Mühlstrasser Date: Wed, 26 Nov 2014 18:01:15 +0000 (+0100) Subject: Use CR instead of LF, because this works better over the serial port of a real C1P. X-Git-Tag: V2.15~22^2~41 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a66c93c55bbe60bb43513ecf5ddbfa8eee5b8a35;p=cc65 Use CR instead of LF, because this works better over the serial port of a real C1P. --- 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); } }