Corso Basic, Elenco comandi Basic V7 Commodore 128, C128, Basic v 7.0, Basic V7.0, lista comandi, lista completa comandi Basic V7 Commodore 128

Elenco comandi Basic V7 del Commodore 128

Ecco la lista dei comandi del Basic V7 del Commodore 128, con una semplice spiegazione. Questo è un semplice compendio per ricordare tutti i comandi, le istruzioni e le funzioni, quando già si sa come utilizzarli! Il BASIC V7 del Commodore 128 ha molti più comandi rispetto a quello del Commodore 64.

Iscriviti al mio canale YouTube: ValorosoIT. Retro tecnologia, impianti stereo vintage, retro computer, esperimenti e prove. Retroprogrammazione, Basic. Commodore, IBM, Atari, Apple, Texas Instruments, Amstrad, MSX.

InstructionDescriptionType
ABSReturns the absolute value of a numberFunction, numerical
ANDReturns true if both conditions are trueOperator, logical
APPENDOpens the file having the specified filename, and positions the pointer at the end of the fileInstruction/command
ASCReturns the numerical value of a charFunction, numerical
ATNReturns the arctangent of a numberFunction, numerical
AUTOTurns on automatic line numbering when writing a programCommand
BACKUPCopies an entire diskette to another on a dual drive systemInstruction/command
BANKSpecifies the bank number and corresponding memory configuration for the Commodore 128 memoryInstruction/command
BEGINAllows a conditional statement like IF…THEN:ELSE so that you can include several program lines between the start (BEGIN) and end (BEND) of the structure.Instruction/command
BENDAllows a conditional statement like IF…THEN:ELSE so that you can include several program lines between the start (BEGIN) and end (BEND) of the structure.Instruction/command
BLOADLoads a binary file starting at the specified memory locationInstruction/command
BOOTLoads and runs a program which was saved as a binary fileInstruction/command
BOXDraws a box, parallelogram or rectangle at specified position on screenInstruction/command
BSAVESaves a memory address range to a binary fileInstruction/command

BUMPReturns sprite collision informationFunction, numerical
CATALOGDisplays the disk directoryInstruction/command
CHARPositions the text cursor and displays characters on the bitmap screenInstruction/command
CHR$Returns the character corresponding to the numberFunction, string
CIRCLEDraws a circle, ellipse or a regular polygon on the bitmap screenInstruction/command
CLOSECloses a fileInstruction/command
CLRDeletes variables arrays, data, …Instruction/command
CMDChanges the data output to other peripheralInstruction/command
COLLECTChecks and repairs the file system of a disk, frees inaccessible disk spaceInstruction/command
COLLISIONDefines handling for sprite collision interruptInstruction/command
COLORSelects colors for screen border, foreground, background and charactersInstruction/command
CONCATConcatenates two data filesInstruction/command
CONTResumes execution of a BASIC programCommand
COPYCopies files from one drive to another in a dual disk drive or within a single driveInstruction/command
COSReturns the cosine of an angle (rad)Function, numerical

DATAStores constant information in the program codeInstruction/command
DCLEARCloses and clears all open channels on the specified device
number
Instruction/command
DCLOSECloses disk fileInstruction/command
DECReturns the decimal value of a number specified as hexadecimalFunction, numerical
DEF FNDefines a user-defined functionInstruction
DELETEDeletes lines of a BASIC program in the specified rangeCommand
DIMAllocates space in array memory for a new arrayInstruction/command
DIRECTORYDisplays the contents of the disk directory on the screenInstruction/command
DLOADLoads a BASIC program from diskInstruction/command
DOProgam loop start (DO/LOOP/WHILE/UNTIL/EXIT)Instruction/command
DOPENOpens a disk file for a read and/or write operationInstruction/command
DRAWDisplays lines and points on the bitmap screenInstruction/command
DSGets the numeric code from the current diskStatus_stringReserved variable
DS$Gets the most recent error/status code from a disk deviceReserved variable
DSAVESaves a BASIC program to a disk fileInstruction/command
Iscriviti al gruppo Facebook. Retro tecnologia, Commodore, impianti stereo vintage, retro computer, esperimenti e prove. Commodore, IBM, Atari, Apple, Texas Instruments, Amstrad, MSX.

DVERIFYVerifies the program in memory against the one on diskInstruction/command
ELReturns the line number of the most recent errorReserved variable
ELSETests a condition IF … THEN … ELSE (if not true)Instruction/command, special
ENDEnds the processing of the current programInstruction/command
ENVELOPEDefines a musical instrument envelopeInstruction/command
ERReturns the most recent error numberReserved variable
ERR$Returns the error message corresponding to an error numberReserved variable
EXITProgam loop escape (DO/LOOP/WHILE/UNTIL/EXIT)Instruction/command, special
EXP“e” with the power given by the argumentFunction, numerical
FASTPuts machine in 2 Mhz mode of operationInstruction/command
FETCHGets data from expansion (RAM module) memoryInstruction/command
FILTERDefines sound (SID chip) filter parametersInstruction/command
FNExecutes a function defined by DEF FNFunction, numerical, special
FORProgram loop start (FOR … TO … STEP … NEXT)Instruction/command
FREReturns the number of unused bytes of BASIC RAMFunction, numerical, special

GETReads one or more chars from the keyboardInstruction
GET#Reads single characters from the specified deviceInstruction/command, special
GETKEYReceives input data from the keyboard, one character at a timeInstruction
GO TOJumps to a line numberInstruction/command
GO64Switches to C64 (Commodore 64) modeInstruction/command
GOSUBJumps to a subroutine … RETURNInstruction/command
GOTOJumps to a line numberInstruction/command
GRAPHICSelects a screen display (text, bitmap or split-screen bitmap)Instruction/command
GSHAPERetrieves the text-string variable stored by SSHAPEFunction, string
HEADERFormats a disketteInstruction/command
HELPHighlights the line where the error occurredInstruction/command
HEX$Returns a string containing a hexadecimal represention of a given numberFunction, string
IFTests a condition IF … THEN … ELSE or IF … GOTOInstruction/command
INPUTReads data from the keyboardInstruction
INPUT#Reads data from a file stored on peripheral deviceInstruction

INSTRFinds the location of a substring in a stringFunction, numerical
INTRounds a numberFunction, numerical
JOYReturns a value indicating the state of a joystickFunction, numerical
KEYLists or redefines the string assigned to a function keyInstruction/command
LEFT$Left chars of a stringFunction, string
LENReturns the number of characters in a stringFunction, numerical
LETAssigns values in a variableInstruction/command
LISTDisplays the BASIC program in memoryInstruction/command
LOADLoads a programInstruction/command
LOCATEPositions the bitmap pixel cursor on the screenInstruction/command
LOGNatural logarithm with the basis eFunction, numerical
LOOPProgam loop end (DO/LOOP/WHILE/UNTIL/EXIT)Instruction/command, special
MID$Inner chars of a stringFunction, string
MONITOREnters the Commodore 128 machine language monitorCommand
MOVSPRPositions or moves sprites on screenInstruction/command

NEWClears RAM and programInstruction/command
NEXTProgram loop end (FOR … TO … STEP … NEXT)Instruction/command
NOTReverses true to falseOperator, logical
ONContruct ON … GOTO, ON … GOSUBInstruction/command
OPENOpens a file or a channelInstruction/command
ORReturns true if one or both conditions are trueOperator, logical
PAINTFills area on the bitmap screen with colorInstruction/command
PEEKReturns the memory contentFunction, numerical
PENReturns a value about the latched state of a light pen or light gunFunction, numerical
PLAYDefines and plays musical notes and elementsInstruction/command
POINTERFinds the address in RAM where a variable is storedFunction, numerical
POKEChanges the content of any memory addressInstruction/command
POSDetermines the actual position of the cursorFunction, numerical, special
POTReturn a value indicating the state of a paddleFunction, numerical
PRINTPrints data to the current output deviceInstruction/command

PRINT USINGPrints an expression with a specific formatInstruction/command
PRINT#Stores data in a fileInstruction/command
PUDEFRedefines symbols in PRINT USING statementsInstruction/command
RCLRReturns the color assigned to a graphic screen elementFunction, numerical
RDOTReturns information about the pixel cursorFunction, numerical
READReads constant values from DATAInstruction
RECORDPositions relative file pointersInstruction/command
REMCommentsInstruction/command
RENAMEChanges the name of a file on diskInstruction/command
RENUMBERRenumber lines of a BASIC programCommand
RESTOREClears the pointer of the next DATA valueInstruction/command
RESUMEDefines where the program will continue after an error has been trappedInstruction/command
RETURNFinishes a subroutine: GOSUB …  RETURNInstruction/command
RGRReturns a value indicating the current graphic modeFunction, numerical
RIGHT$Right chars of a stringFunction, string
Iscriviti al gruppo Facebook. Retro tecnologia, Commodore, impianti stereo vintage, retro computer, esperimenti e prove. Commodore, IBM, Atari, Apple, Texas Instruments, Amstrad, MSX.

RNDGenerates a random floating point numberFunction, numerical
RREGAfter a SYS command, reads the contents of the accumulator AC, X register XR, Y register YR and Status register SRInstruction/command
RSPCOLORReturns one of the colors shared by all multi-color spritesFunction, numerical
RSPPOSReturns information about the position and movement of a spriteFunction, numerical
RSPRITEReturns information about a spriteFunction, numerical
RUNStarts a programInstruction/command
RWINDOWReturns information about the active text windowFunction, numerical
SAVESaves a programInstruction/command
SCALESets the relative size of the images on the bitmap screenInstruction/command
SCNCLRClears the screenInstruction/command
SCRATCHDeletes a file from the disk directoryInstruction/command
SGNReturns the sign of a number (-1, 0, 1)Function, numerical
SINReturns the sine of an angle (rad)Function, numerical
SLEEPDelays program for a specific period of time (seconds)Instruction/command
SLOWReturns the Commodore 128 to 1 Mhz operationInstruction/command

SOUNDOutputs sound effects and musical notesInstruction/command
SPC(Sets a number of spaces into a PRINT outputFunction, string
SPRCOLORSets multicolor 1 and/or multicolor 2 colors for all spritesInstruction/command
SPRDEFEnters sprite definition mode to edit spritesInstruction/command
SPRITEEnables, colors, sets sprite screen priorities, and expands a spriteInstruction/command
SPRSAVCopies a sprite data from a text string variable into a sprite storage area or vice versaInstruction/command
SQRCalculates square root of a numberFunction, numerical
SSHAPESaves a a shape (a rectangular region of the bitmap screen) to a string variableInstruction/command
STGets I/O status byteReserved variable
STASHMoves contents of system memory to expansion RAMInstruction/command
STEPProgram loop increment/decrement (FOR … TO … STEP … NEXT)Instruction/command, special
STOPBreaks a programInstruction/command
STR$Converts numerical values or variables into a stringFunction, string
SWAPSwaps contents of system RAM with contents of expansion RAMInstruction/command
SYSCalls an assembly language subroutineInstruction/command

TAB(Sets the cursor column into a PRINT outputFunction, string
TANReturns the tangent for a given angle (rad)Function, numerical
TEMPODefines the speed of the song being playedInstruction/command
THENTests a condition IF … THEN … ELSE (if true)Instruction/command, special
TIGets the system time (seconds/60)Reserved variable
TI$Gets or Sets the system time (HHMMSS)Reserved variable
TOProgram loop target (FOR … TO … STEP … NEXT)Instruction/command, special
TRAPDetects and handles program errors while a BASIC program is runningInstruction
TROFFTurns off error tracing mode, while debuggingInstruction/command
TRONTurns on error tracing mode, while debuggingInstruction/command
UNTILProgam loop condition (DO/LOOP/WHILE/UNTIL/EXIT)Instruction/command, special
USINGSee PRINT USINGInstruction/command, special
USRCalls an assembly language subroutine with argumentFunction, numerical/string
VALReturns the numerical value of a stringFunction, numerical
VERIFYVerifies a saved programInstruction/command

VOLDefines output level of soundInstruction/command
WAITWaits for a memory location to assume specific valuesInstruction/command
WHILEProgam loop condition (DO/LOOP/WHILE/UNTIL/EXIT)Instruction/command, special
WIDTHSets the width of drawn linesInstruction/command
WINDOWDefines a text window within the 40 or 80 column textInstruction/command
XOREvaluates a bit-wise boolean operationOperator, logical
+SumOperator, numerical/string
SubtractionOperator, numerical
*MultiplicationOperator, numerical
/DivisionOperator, numerical
^ExponentOperator, numerical
GreaterOperator, logical
=EqualOperator, logical
LessOperator, logical
π (pi)3.1415926…Function, numerical, special

Sul sito www.valoroso.it e sul canale YouTube ValorosoIT, sto pubblicando diverse puntate per imparare a programmare in Basic, con il Comodore 64, Commodore 128, GwBasic, QuickBasic, QB64, Atari, ecc…

YouTube: https://www.youtube.com/c/ValorosoIT
Instagram: https://www.instagram.com/valorosoit/

Iscriviti al mio canale YouTube: ValorosoIT. Retro tecnologia, impianti stereo vintage, retro computer, esperimenti e prove. Retroprogrammazione, Basic. Commodore, IBM, Atari, Apple, Texas Instruments, Amstrad, MSX.

Ti piace questa pagina? Condividila:

Pubblicato in Retro Computer, Retro Tecnologia ed Elettronica Vintage, Tutti gli articoli.

4 Commenti

  1. I am really impressed with your blog.
    Anyway keep up the exellent quality writing!

  2. Buon giorno.ho visto tutto molto interessante..sono Daniele Bemporad di FIRENZE..Pisseggo da molti anni un EXECUTIVE 64….L’ho acceso per vederd se funziona..lo schermo e’ a posto ma il lettore interno dei floppy disk mi sa che non sia a posto..Sono un giovane nato nel 1948..quando i compiuter erano un sogno..quindi capirete la mia problematica..vorrei falo rifunzionare..mi dice. Disk error..ho provato von un nuovo disco per ruallineare la testina ma non trova nulla..MI SAPETE DIRE COME FARE..GRAZIE..non ho sito web..

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *