On Fri, 13 Jul 2001, John Phipps wrote: > Hi all, > > Just reading the discussion on control codes, reminded me of a strange bug > that happened on the PET set up I used to use at school. It was 4032 machine > linked to a 4040 disk drive and 4022 printer (I think), via an IEEE-488 > cable. I found out somehow, that if you included the graphic symbol '+' (not > '+' as in plus or minus, but a larger character - chr$(217) or chr$(219), I > forget which), in a REM statement, the PET would stop printing as soon as it > reached this, and 'syntax error' would be displayed on the screen. To carry > on printing, you had to list from the next line down. Never understood why > this should be. Anyone else come across it? Commodore computers store Basic programs in tokenized form. The Basic keywords are replaced by one character tokens. All the token characters are greater than character 127. When listed or run, any character greater than 127, not enclosed in quotes, is replaced with it's corresponding Basic command. This can cause some interesting effects. If you don't want the interesting effects, enclose your comments in quotes. Message was sent through the cbm-hackers mailing list
Archive generated by hypermail 2.1.1.