Re:BBC Basic Editor
by mattgodbolt on Monday November 30, 2020 @11:36PM
(#25262340)
...and it should now be fixed!
[ Parent
| on HN ]
Hey, this is awesome. Such a throwback!
I noticed that some of the characters aren't what I'd expect, any reason?
PRINT ASC("\") " " CHR$(92) : PRINT ASC("/") " " CHR$(47)
47 prints fine, but 92 reveals a symbol "12" in super/subscript.
Some of the others are also off, e.g. the arrow sequence revealed by 10 FOR A= 1 TO 255 STEP 1 : PRINT CHR$(A) ;: NEXT
shows down arrow suffering the same.
Thanks, can't wait to see where this goes next!
Oh, discovered from the other comments here that if I do a
`MODE 0` then the character set changes to what I'd expect. Will look into that. So this one works for me now, cheers :D
5 MODE 1
10 IF RND(1) > 0.5 THEN PRINT CHR$(92) ;: ELSE PRINT CHR$(47) ;:
20 GOTO 10