Download details |
PrintTok1 v001 - Super C Library | ||||||||||
The included disk image contains three versions of PrintTok1 for Super C on the Commodoe 64 and 128. The file printtok-001.c supports 64 one-byte tokens, printtok-001a.c adds 26 more one-byte tokens and printtok-001b.c adds up to 128 two-byte tokens. The first file treats literal values 0x80 to 0x9F and 0xE0 to 0xFF as tokens and will replace them with the indicated token. The former replaces the token with the indicated entry in the tokens01[] array, and the latter tokens02[]. Printtok-001a.c translates the range 0x61 to 0x7A to a token value in tokens03[]. Printtok-001b.c uses a percent character followed by a literal between 0x80 and 0xFF as a token in tokens04[]. You have to edit the previously indicated arrays and add the tokens your program needs. The modules also contain a main() function that demonstrates how to use the function and was used for testing purposes. It is recommended that you remove this function. To use the function, call printtok() with just the address of the string to print out. That's all you need. If you like this program, I ask you to e-mail me with your opinion. If you don't, still. If you have any ideas on improving this program, please, e-mail me. If you use it in one of your programs, I ask you to tell me about it. My e-mail address is rose.joseph12@yahoo.com. |
|