Convert Atari BASIC to Apple II|C64|TRS80|QB64
More details on random number generation
| task | apple | C64 | TRS80 | QB64 |
| Beep/bell | PRINT CHR$(7) | PRINT CHR$(7) | PRINT CHR$(7) | BEEP |
| Check keypress, no wait | PEEK(-16384) | GET A$ | A$=INKEY$ | A$=INKEY$ |
| clear screen | HOME | ?chr$(147) | CLS | CLS |
| clear variables | CLEAR | CLR | CLEAR | CLEAR |
| Cursor position | HTAB x: VTAB y | POKE 211,x: POKE 214,y: PRINT | PRINT @ (row*64+col), | LOCATE row,col |
| Flashing text | FLASH | PRINT CHR$(15) (some ROMs) | n/a | n/a |
| Inverse text | INVERSE / NORMAL | PRINT CHR$(18) / CHR$(146) | n/a | COLOR bg,fg |
| Simple beep | PRINT CHR$(7) or speaker PEEK | PRINT CHR$(7) | PRINT CHR$(7) | BEEP |
| Text color | n/a | POKE 646,color | n/a | COLOR fg,bg |
| Error trapping | ON ERROR GOTO label | ONERR GOTO line | n/a | TRAP line |
| Resume after error | RESUME | RESUME | n/a | 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
Atari | Commands | ASCII table
Thank you for stopping by.
home | my recipes | my photos | I’m high
