1
0
mirror of https://github.com/cc65/cc65.git synced 2025-08-08 22:25:28 +00:00

Use CR instead of LF, because this works better over the serial port of a real C1P.

This commit is contained in:
Stephan Mühlstrasser
2014-11-26 19:01:15 +01:00
parent 16bdb10bfe
commit a66c93c55b

View File

@@ -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 */ /* Loop over all input bytes and enter them one by one */
for (c = getc(In); c != EOF; c = getc(In)) { 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) { if (AutoStart) {
@@ -111,7 +111,7 @@ static void Transform (unsigned long StartAddress, FILE *In, FILE *Out,
} }
else { else {
/* Store 00 to 0x00FB to enable keyboard input at the end */ /* 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); 0x00FB, DATA_MODE_CMD, 0x00);
} }
} }