get cold start display looking okay

This commit is contained in:
Paul Gardner-Stephen committed 2019-04-23 00:23:47 +09:30
1 parent 97988f1c19
commit d4531592df
2 files changed
+23 -4

No files matched your search

+10
View File
@@ -43,6 +43,7 @@ char *error_list[]={
"VERIFYING",
"SAVING",
"ERROR", // #33
"BYTES FREE.\r\r", // #34
NULL};
// Token $FF is end of message, so we can have only 255 unique words
@@ -222,6 +223,15 @@ int main(void)
fprintf(stderr,"Space saving = %d bytes\n",raw_size-packed_len-token_count);
if (packed_len>255) {
fprintf(stderr,"ERROR: packed_len>255\n");
exit(-1);
}
if (token_count>255) {
fprintf(stderr,"ERROR: token_count>255\n");
exit(-1);
}
printf("packed_message_chars:\n");
for(int i=0;i<char_max;i++)
printf("\t.byte $%02X ; '%c'\n",char_freqs[i].c,char_freqs[i].c);