Hi,
(I asked the question on Lemon but nobody replied until now...)
I try to tokenize a BASIC text file containing a special character, for example :
10 a$="hello{095}"
{095} is the back arrow (this is the TOK64 syntax).
But the output basic v2 file contains garbage after the back arrow character (the last double quote is missing).
What is the proper syntax to generate special characters with PETCAT ?
Thanks
PETCAT and special characters in basic
Moderator: Moderators
- majikeyric
- Vic 20 Afficionado
- Posts: 350
- Joined: Fri Oct 24, 2014 2:08 pm
- Website: http://majikeyric.free.fr
- Location: France
Re: PETCAT and special characters in basic
One thing you could do is create a program in VICE, using the characters that you're unsure of, then use petcat to convert the prg into text.
By doing that I discovered that the PETSCII back-arrow character is converted to a "_" underscore character.
Other than that, you might try and study the source code.
By doing that I discovered that the PETSCII back-arrow character is converted to a "_" underscore character.
Other than that, you might try and study the source code.
Ray..
- majikeyric
- Vic 20 Afficionado
- Posts: 350
- Joined: Fri Oct 24, 2014 2:08 pm
- Website: http://majikeyric.free.fr
- Location: France
Re: PETCAT and special characters in basic
Thanks buzbard !
I really wonder why I haven't thought about this solution
I have found that Petcat uses this kind of syntax for special characters : {CBM-Q} , {SHIFT-A} ... etc
I really wonder why I haven't thought about this solution
I have found that Petcat uses this kind of syntax for special characters : {CBM-Q} , {SHIFT-A} ... etc