add READY and other messages to message table
This commit is contained in:
1 parent
9b1b11a04c
commit
12a20d0962
1 file changed
+9
-3
@@ -37,6 +37,12 @@ char *error_list[]={
|
|||||||
"UNDEF\'D FUNCTION",
|
"UNDEF\'D FUNCTION",
|
||||||
"VERIFY",
|
"VERIFY",
|
||||||
"LOAD",
|
"LOAD",
|
||||||
|
// Non-error messages
|
||||||
|
"READY.",
|
||||||
|
"LOADING",
|
||||||
|
"VERIFYING",
|
||||||
|
"SAVING",
|
||||||
|
|
||||||
NULL};
|
NULL};
|
||||||
|
|
||||||
// Token $FF is end of message, so we can have only 255 unique words
|
// Token $FF is end of message, so we can have only 255 unique words
|
||||||
@@ -167,15 +173,15 @@ int main(void)
|
|||||||
if (char_num<14) {
|
if (char_num<14) {
|
||||||
if (nybl_waiting) {
|
if (nybl_waiting) {
|
||||||
// We have a nybl already waiting, so join them up
|
// We have a nybl already waiting, so join them up
|
||||||
int byte=(nybl_val<<4)+char_num;
|
int byte=(nybl_val<<4)+(char_num+1);
|
||||||
packed_words[packed_len++]=byte;
|
packed_words[packed_len++]=byte;
|
||||||
nybl_waiting=0;
|
nybl_waiting=0;
|
||||||
fprintf(stderr," M[$%02x]",byte);
|
fprintf(stderr," M[$%02x]",byte);
|
||||||
} else {
|
} else {
|
||||||
// Queue this nybl to pack in a byte
|
// Queue this nybl to pack in a byte
|
||||||
nybl_waiting=1;
|
nybl_waiting=1;
|
||||||
nybl_val=char_num;
|
nybl_val=char_num+1;
|
||||||
fprintf(stderr," Q[$%x]",char_num);
|
fprintf(stderr," Q[$%x]",char_num+1);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// It's a less frequent letter that we have to encode
|
// It's a less frequent letter that we have to encode
|
||||||
|
|||||||
Reference in new issue
Block a user