Convert Commodore 64 BASIC to Apple II|TRS80|Atari|QB64
More details on random number generation
| task | apple | TRS80 | Atari | QB64 |
| Beep/bell | PRINT CHR$(7) | PRINT CHR$(7) | SOUND 0,121,10,8 | BEEP |
| Check keypress, no wait | PEEK(-16384) | A$=INKEY$ | GET #1 | A$=INKEY$ |
| clear screen | HOME | CLS | ?chr$(125) | CLS |
| clear variables | CLEAR | CLEAR | CLR | CLEAR |
| Cursor position | HTAB x: VTAB y | PRINT @ (row*64+col), | POSITION x,y | LOCATE row,col |
| Flashing text | FLASH | n/a | n/a | n/a |
| Inverse text | INVERSE / NORMAL | n/a | n/a | COLOR bg,fg |
| Simple beep | PRINT CHR$(7) or speaker PEEK | PRINT CHR$(7) | SOUND 0,121,10,8 | BEEP |
| Text color | n/a | n/a | SETCOLOR 2,hue,lum | COLOR fg,bg |
| Error trapping | ON ERROR GOTO label | n/a | ON ERROR GOTO line | TRAP line |
| Resume after error | RESUME | n/a | RESUME | n/a |
| Variable name uniqueness | first 2 chars significant | first 2 chars significant | first 2 chars significant | full names |
I didn’t include disk I/O, graphics, sound or commands that are exclusive to this BASIC.
PEEKS & POKES
Other Quirks
Commodore 64 | Commands | ASCII table
Thank you for stopping by.
home | my recipes | my photos | I’m high
