Convert Commodore 64 BASIC to Apple II|TRS80|Atari|QB64

Convert Commodore 64 BASIC to Apple II|TRS80|Atari|QB64

More details on random number generation

taskappleTRS80AtariQB64
Beep/bellPRINT CHR$(7)PRINT CHR$(7)SOUND 0,121,10,8BEEP
Check keypress, no waitPEEK(-16384)A$=INKEY$GET #1A$=INKEY$
clear screenHOMECLS?chr$(125)CLS
clear variablesCLEARCLEARCLRCLEAR
Cursor positionHTAB x: VTAB yPRINT @ (row*64+col),POSITION x,yLOCATE row,col
Flashing textFLASHn/an/an/a
Inverse textINVERSE / NORMALn/an/aCOLOR bg,fg
Simple beepPRINT CHR$(7) or speaker PEEKPRINT CHR$(7)SOUND 0,121,10,8BEEP
Text colorn/an/aSETCOLOR 2,hue,lumCOLOR fg,bg
Error trappingON ERROR GOTO labeln/aON ERROR GOTO lineTRAP line
Resume after errorRESUMEn/aRESUMEn/a
Variable name uniquenessfirst 2 chars significantfirst 2 chars significantfirst 2 chars significantfull 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