Convert Apple II BASIC to C64|TRS80|Atari|QB64

Convert Apple II BASIC to C64|TRS80|Atari|QB64

More details on random number generation

taskC64TRS80AtariQB64
Beep/bellPRINT CHR$(7)PRINT CHR$(7)SOUND 0,121,10,8BEEP
Check keypress, no waitGET A$A$=INKEY$GET #1A$=INKEY$
clear screen?chr$(147)CLS?chr$(125)CLS
clear variablesCLRCLEARCLRCLEAR
Cursor positionPOKE 211,x: POKE 214,y: PRINTPRINT @ (row*64+col),POSITION x,yLOCATE row,col
Flashing textPRINT CHR$(15) (some ROMs)n/an/an/a
Inverse textPRINT CHR$(18) / CHR$(146)n/an/aCOLOR bg,fg
Simple beepPRINT CHR$(7)PRINT CHR$(7)SOUND 0,121,10,8BEEP
Text colorPOKE 646,colorn/aSETCOLOR 2,hue,lumCOLOR fg,bg
Error trappingONERR GOTO linen/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

Apple][ | Commands | ASCII table


Thank you for stopping by.

home | my recipes | my photos | I’m high