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

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

More details on random number generation

taskappleC64AtariQB64
Beep/bellPRINT CHR$(7)PRINT CHR$(7)SOUND 0,121,10,8BEEP
Check keypress, no waitPEEK(-16384)GET A$GET #1A$=INKEY$
clear screenHOME?chr$(147)?chr$(125)CLS
clear variablesCLEARCLRCLRCLEAR
Cursor positionHTAB x: VTAB yPOKE 211,x: POKE 214,y: PRINTPOSITION x,yLOCATE row,col
Flashing textFLASHPRINT CHR$(15) (some ROMs)n/an/a
Inverse textINVERSE / NORMALPRINT CHR$(18) / CHR$(146)n/aCOLOR bg,fg
Simple beepPRINT CHR$(7) or speaker PEEKPRINT CHR$(7)SOUND 0,121,10,8BEEP
Text colorn/aPOKE 646,colorSETCOLOR 2,hue,lumCOLOR fg,bg
Error trappingON ERROR GOTO labelONERR GOTO lineON ERROR GOTO lineTRAP line
Resume after errorRESUMERESUMERESUMEn/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

TRS-80 | Commands | ASCII table


Thank you for stopping by.

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