mist64 / cbmbasic

cbmbasic, a portable version of Commodore's version of Microsoft BASIC 6502 as found on the Commodore 64
446 stars 66 forks source link

Encoding problems? #1

Closed ff6347 closed 9 years ago

ff6347 commented 9 years ago

Hi,

a friend of mine gave me this book 10print. So I took a look around if I could find some basic compiler. I can run .bas files and the code

10 PRINT CHR$(205.5+RND(1)); : GOTO 10

but it looks like the characters are not supported. So the output is this:
����������������������������������������������

When I lower the CHR$ value to something like 100 it works. Any idea how I can fix this?

ff6347 commented 9 years ago

Okay. Got it. Because the c64 uses PETSCII codes link