Convert Apple II BASIC to C64|TRS80|Atari|QB64
More details on random number generation
| task | C64 | TRS80 | Atari | QB64 |
| Beep/bell | PRINT CHR$(7) | PRINT CHR$(7) | SOUND 0,121,10,8 | BEEP |
| Check keypress, no wait | GET A$ | A$=INKEY$ | GET #1 | A$=INKEY$ |
| clear screen | ?chr$(147) | CLS | ?chr$(125) | CLS |
| clear variables | CLR | CLEAR | CLR | CLEAR |
| Cursor position | POKE 211,x: POKE 214,y: PRINT | PRINT @ (row*64+col), | POSITION x,y | LOCATE row,col |
| Flashing text | PRINT CHR$(15) (some ROMs) | n/a | n/a | n/a |
| Inverse text | PRINT CHR$(18) / CHR$(146) | n/a | n/a | COLOR bg,fg |
| Simple beep | PRINT CHR$(7) | PRINT CHR$(7) | SOUND 0,121,10,8 | BEEP |
| Text color | POKE 646,color | n/a | SETCOLOR 2,hue,lum | COLOR fg,bg |
| Error trapping | ONERR GOTO line | 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
Apple][ | Commands | ASCII table
Thank you for stopping by.
home | my recipes | my photos | I’m high
