STPC serial and parallel support

This commit is contained in:
RichardG867
2020-07-14 22:24:22 -03:00
parent 639807cd3e
commit a1e273b13b
5 changed files with 259 additions and 19 deletions

View File

@@ -76,11 +76,7 @@ postcard_setui(void)
if (postcard_do_log) {
/* log same string sent to the UI */
int len = strlen(postcard_str);
postcard_str[len + 1] = '\0';
postcard_str[len] = '\n';
postcard_log("[%04X:%08X] ", CS, cpu_state.pc);
postcard_log(postcard_str);
postcard_log("[%04X:%08X] %s\n", CS, cpu_state.pc, postcard_str);
}
}