Wikia

Petit Computer Wiki

List of Commands

Comment1
679pages on
this wiki

The following is a list of built-in commands, adapted from the help file:

A-DEdit

ACLS

APPEND string

BEEP [sound effect[, pitch[, volume[, balance] ] ] ]

BGCLIP x start point, y start point, x end point, y end point

BGCLR [Layer]

BGCOPY layer, start point x, start point y, end point x, end point y, transfer destination x, transfer destination y

BGFILL layer, start point x, start point y, end point x, end point y, character number, palette number, horizontal rotation, vertical rotation

BGFILL layer, start point x, start point y, end point x, end point y, screen data

BGFILL layer, start point x, start point y, end point x, end point y, screen data string

BGMCLEAR [song number]

BGMPLAY song number

BGMPLAY track number, song number[, track volume]

BGMPLAY MML string[, MML string...]

BGMPRG waveform number, A, D, S, R, waveform string

BGMSET song number, MML string[, MML string...]

BGMSETD song number, @label

BGMSETD song number, string

BGMSETV track number, variable number, value

BGMSTOP [track number[, fade time] ]

BGMVOL [track number,] volume

BGOFS layer, x, y[, interpolation time]

BGPAGE screen

BGPUT layer, x, y, character number, palette number, horizontal rotation, vertical rotation

BGPUT layer, x, y, screen data

BGPUT layer, x, y, screen data string

BGREAD (layer, x, y), CHR, PAL, H, V

BGREAD (layer, x, y), SC

BGREAD (layer, x, y), SC$

BREPEAT button ID[, start time, interval]

CHRINIT character name

CHRREAD (character name, character number), C$

CHRSET character name, character number, graphic string

CLEAR

CLS

COLINIT [color bank name[, color number] ]

COLOR palette number

COLREAD (color bank name, color number), variableR, variableG, variableB

COLSET color bank name, color number, color data string

CONT

DATA data[, data...]

DELETE string

DIM variable1(dimension 1[, dimension 2])[, variable2(dimension3[, dimension4])...]

DTREAD (string), variableY, variableM, variableD

E-HEdit

END

EXEC string

FILES [resource name[, resource name...] ]

FOR numerical variable = numerical value TO numerical value [STEP numerical value]

GBOX x1, y1, x2, y2[, color]

GCIRCLE x, y, radius[, color[, initial angle, final angle] ]

GCLS [color]

GCOLOR color number

GCOPY [transfer page,] start point x, start point y, end point x, end point y, transfer destination x, transfer destination y, copy mode

GDRAWMD status

GFILL x1, y1, x2, y2[, color]

GLINE x1, y1, x2, y2[, color]

GOSUB @label

GOSUB string

GOTO @label

GOTO string

GPAGE screen[, drawing page, display screen]

GPAINT x, y[, color[, border color] ]

GPRIO number

GPSET x, y[, color]

GPUTCHR x, y, character name, number, palette number, scale

I-LEdit

ICONCLR [icon position]

ICONSET icon position, icon number

IF numerical value GOSUB label [ELSE command(s)]

IF numerical value GOTO label [ELSE command(s)]

IF numerical value THEN label [ELSE command(s)]

IF numerical value THEN command(s) [ELSE command(s)]

INPUT [string;] variable[, variable...]

KEY number, string

LINPUT [string;] string variable

LIST [line number]

LIST @label

LOAD string[, display control]

LOCATE x,y

M-PEdit

NEW

NEXT [variable]

ON numerical value GOTO label[, label...]

ON numerical value GOSUB label[, label...]

PNLSTR x coordinate, y coordinate, string[, palette number]

PNLTYPE panel name

PRINT value[; value[, value...] ]

Q-TEdit

READ variable 1[, variable 2...]

REBOOT

RECVFILE string

REM [comment]

RENAME string 1, string 2

RESTORE @label

RESTORE string

RETURN

RSORT start point, number of elements, array 1[, array 2...]

RUN

SAVE string

SENDFILE string

SORT start point, number of elements, array 1[, array 2...]

SPANGLE control number, angle[, interpolation time, change direction]

SPANIM control number, number of frames, time[, loop]

SPCHR control number, sprite character number[, palette number, horizontal rotation, vertical rotation, order of precedence]

SPCLR [control number]

SPCOL control number, x, y, w, h, scale adjustment[, group]

SPCOLVEC control number[, displacement x, displacement y]

SPHOME control number, x, y

SPOFS control number, x, y[, interpolation time]

SPPAGE screen

SPREAD (control number), X, Y[, A, S, C]

SPSCALE control number, scale[, interpolation time]

SPSET control number, sprite character number, palette number, horizontal rotation, vertical rotation, order of precedence[, width, height]

SPSETV control number, variable number, value

STOP

SWAP variable, variable

TALK string[, string... ]

TALKSTOP

TMREAD (string), variableH, variableM, variableS

U-ZEdit

VISIBLE console, panel, BG0, BG1, SPRITE, 256 color graphics

VSYNC frame number

WAIT frame number

OtherEdit

Assignment

? (PRINT)

' (REM)

List of TermsEdit

Control Number - Control numbers are identification numbers that are used to refer to the sprite after it is created with SPSET.

Start a Discussion Discussions about List of Commands

Around Wikia's network

Random Wiki