]> git.sur5r.net Git - cc65/commitdiff
Use CR instead of LF, because this works better over the serial port of a real C1P.
authorStephan Mühlstrasser <stephan.muehlstrasser@web.de>
Wed, 26 Nov 2014 18:01:15 +0000 (19:01 +0100)
committerStephan Mühlstrasser <stephan.muehlstrasser@web.de>
Wed, 26 Nov 2014 18:01:15 +0000 (19:01 +0100)
src/c1p65/main.c

index 5edc525eb717bdd2ce97604b53c3dbcc11503005..3d6cdbe8b4417e4aaf0b73635e8865b2c340fd75 100644 (file)
@@ -100,7 +100,7 @@ static void Transform (unsigned long StartAddress, FILE *In, FILE *Out,
 \r
        /* Loop over all input bytes and enter them one by one */\r
        for (c = getc(In); c != EOF; c = getc(In)) {\r
-               fprintf(Out, "%02.2X\n", (unsigned int) c & 0xFF);\r
+               fprintf(Out, "%02.2X\r", (unsigned int) c & 0xFF);\r
        }\r
 \r
        if (AutoStart) {\r
@@ -111,7 +111,7 @@ static void Transform (unsigned long StartAddress, FILE *In, FILE *Out,
        }\r
        else {\r
                /* Store 00 to 0x00FB to enable keyboard input at the end */\r
-               fprintf(Out, "%c%04.4X%c%02.2X\n", ADDRESS_MODE_CMD,\r
+               fprintf(Out, "%c%04.4X%c%02.2X", ADDRESS_MODE_CMD,\r
                        0x00FB, DATA_MODE_CMD, 0x00);\r
        }\r
 } \r