MSX-BASIC Instructions
This page was last modified 19:58, 10 February 2017 by Mars2000you.

On this page, you will find all the MSX-BASIC instructions in alphabetical order, without being classified to their purpose. For another approach of these instructions, see this page: Category:MSX-BASIC Instructions.

Below is a list of all standard MSX-BASIC instructions, that are not linked to a localisation (Arabic, Japanese, Korean), the presence or addition of a device such as a disk drive or a RS-232C interface, or the using of a program that adds specific new instructions.

Generally, all instructions corresponding to a MSX generation will also work on the higher generations, but there are some exceptions, especially the instructions related to the data recorder will not work on MSX Turbo R.

Although the instructions added by MSX-BASIC 4.0 (MSX Turbo R) begin with CALL, they need to be included in the standard MSX-BASIC instructions, even if they have the typical syntax of an extension.

For all the instructions that are not part of the standard MSX-BASIC instructions, first check this page: MSX-BASIC Extensions.

A few instructions are standard instructions while being at the same time linked to a specific MSX-BASIC extension. The most obvious case is COPY added by the Disk BASIC extension and also present on all MSX2 (and higher) computers as a graphic instruction.

Instruction Generation Updates Related extensions / Remarks
- MSX1 Arithmetical operator - Subtraction
+ MSX1 Arithmetical operator - Addition
/ MSX1 Arithmetical operator - Division
\ or ¥ MSX1 Arithmetical operator - Division without a digit after the decimal point in result -
\ must be replaced by ¥ on a Japanese MSX
* MSX1 Arithmetical operator - Multiplication
^ MSX1 Arithmetical operator - Root squared
< MSX1 Condition - Checks if the first argument is inferior to the second
> MSX1 Condition - Checks if the first argument is superior to the second
= MSX1 Condition - Checks if the first argument is equal to the second
 : MSX1 Separator between two instructions
= MSX1 Defines a variable - see LET
ABS() MSX1 Mathematical function
AND MSX1 Logical operator
ASC() MSX1 Conversion function
ATN() MSX1 Trigonometric function
AUTO MSX1 Instruction for programming
BASE MSX1 MSX2, MSX2+ Instruction for VDP experts
BEEP MSX1 MSX2
BIN$() MSX1 Conversion function
BLOAD MSX1 Disk BASIC
BSAVE MSX1 Disk BASIC
CALL MSX1 Instruction for language machine experts - Short version: _
CALL PAUSE MSX Turbo R Short version: _PAUSE
CALL PCMPLAY MSX Turbo R Short version: _PCMPLAY
CALL PCMREC MSX Turbo R Short version: _PCMREC
CDBL() MSX1 Mathematical function
CHR$() MSX1 Conversion function
CINT() MSX1 Mathematical function
CIRCLE MSX1
CLEAR MSX1
CLOAD MSX1 Not for MSX Turbo R
CLOAD? MSX1 Not for MSX Turbo R
CLOSE MSX1 Disk BASIC, QuickDisk BASIC, MemoryDisk BASIC, RS-232C BASIC
CLS MSX1
CMD MSX1 Reserved word that can be diverted, instruction for language machine experts
COLOR MSX1 MSX2, MSX2+ Kanji BASIC, Hangul BASIC
COLOR= MSX2
COLOR SPRITE() MSX2
COLOR SPRITE$() MSX2
CONT MSX1
COPY MSX2 Disk BASIC also for MSX1
COPY SCREEN MSX2 Optional, can be used only on machines with an internal or external digitizer
COS() MSX1 Trigonometric function
CSAVE MSX1 Not for MSX Turbo R
CSNG() MSX1 Mathematical function
CSRLIN MSX1 Data input function
DATA MSX1
DEF DBL MSX1
DEF FN MSX1
DEF INT MSX1
DEF SNG MSX1
DEF STR MSX1
DEF USR MSX1
DELETE MSX1 Instruction for programming
DIM MSX1
DRAW MSX1
END MSX1
EOF() MSX1 Data input function
EQV MSX1 Logical operator
ERASE MSX1
ERL MSX1
ERR MSX1 Disk BASIC
ERROR MSX1 Disk BASIC
EXP() MSX1 Mathematical function
FIX() MSX1 Mathematical function
FOR...NEXT MSX1
FRE() MSX1 Data input function
GET DATE MSX2 Related to Real Time Clock (RTC)
GET TIME MSX2 Related to Real Time Clock (RTC)
GOSUB MSX1
GOTO MSX1
HEX$() MSX1 Conversion function
IF...GOTO...ELSE MSX1
IF...THEN...ELSE MSX1
IMP MSX1 Logical operator
INKEY$ MSX1 Data input function
INP() MSX1 Data input function
INPUT MSX1
INPUT$() MSX1 Data input function
INSTR MSX1 Conversion function
INT() MSX1 Mathematical function
INTERVAL MSX1
IPL MSX1 Reserved word that can be diverted, instruction for language machine experts
KEY MSX1 Instruction for programming
KEY() MSX1
LEFT$() MSX1 String function
LEN() MSX1 Conversion function
LET MSX1 Optional instruction, can be omitted
LINE MSX1 MSX2
LINE INPUT MSX1
LIST MSX1 Instruction for programming
LLIST MSX1 Instruction for programming
LOAD MSX1 Disk BASIC, MemoryDisk BASIC, RS-232C BASIC
LOCATE MSX1
LOG() MSX1 Mathematical function
LPOS() MSX1 Data input function
LPRINT MSX1
MAXFILES MSX1
MERGE MSX1 Disk BASIC, MemoryDisk BASIC, RS-232C BASIC
MID$() MSX1 String function
MOD MSX1 Arithmetical operator - Rest resulting of a division
MOTOR MSX1 Not for MSX Turbo R
NEW MSX1 Instruction for programming
NOT MSX1 Logical operator
OCT$() MSX1 Conversion function
ON...GOSUB MSX1
ON...GOTO MSX1
ON ERROR GOTO MSX1
ON INTERVAL GOSUB MSX1
ON KEY GOSUB MSX1
ON SPRITE GOSUB MSX1
ON STOP GOSUB MSX1
ON STRIG GOSUB MSX1
OPEN MSX1 Disk BASIC, QuickDisk BASIC, MemoryDisk BASIC, RS-232C BASIC
OR MSX1 Logical operator
OUT MSX1
PAD() MSX1 MSX2 Data input function, Light Pen support removed on MSX Turbo R
PAINT MSX1
PDL() MSX1 Data input function, Paddle controllers support removed on MSX Turbo R, these devices are unused on MSXPLAYer.
PEEK() MSX1 Data input function
PLAY MSX1 MSX-AUDIO BASIC, MSX-MUSIC BASIC
PLAY() MSX1 Musical function
POINT MSX1 Data input function
POKE MSX1
POS() MSX1 Data input function
PRESET MSX1 MSX2
PRINT MSX1
PSET MSX1 MSX2
PUT KANJI MSX2 Related to Kanji BASIC
PUT SPRITE MSX1 MSX2
READ MSX1
REM MSX1 Instruction for programming - Short version: '
RENUM MSX1 Instruction for programming
RESTORE MSX1
RESUME MSX1
RETURN MSX1
RIGHT$() MSX1 String function
RND() MSX1 Mathematical function
RUN MSX1 Disk BASIC, MemoryDisk BASIC
SAVE MSX1 Disk BASIC, MemoryDisk BASIC, RS-232C BASIC
SCREEN MSX1 MSX2, MSX2+ Hangul BASIC, Kanji BASIC
SET ADJUST MSX2 Related to Real Time Clock (RTC)
SET BEEP MSX2 Related to Real Time Clock (RTC)
SET DATE MSX2 Related to Real Time Clock (RTC)
SET PAGE MSX2
SET PASSWORD MSX2 Related to Real Time Clock (RTC)
SET PROMPT MSX2 Related to Real Time Clock (RTC)
SET SCREEN MSX2 Related to Real Time Clock (RTC)
SET SCROLL MSX2+
SET TIME MSX2 Related to Real Time Clock (RTC)
SET TITLE MSX2 Related to Real Time Clock (RTC)
SET VIDEO MSX2 Optional, can be used only on machines with an internal or external digitizer
SGN() MSX1 Mathematical function
SIN() MSX1 Trigonometric function
SOUND MSX1 Instruction for PSG experts
SPACE$() MSX1 String function
SPC() MSX1 String function
SPRITE MSX1
SPRITE$() MSX1
SQR() MSX1 Mathematical function
STICK() MSX1 Data input function
STOP MSX1
STR$() MSX1 Conversion function
STRIG() MSX1 Data input function
STRING$() MSX1 String function
SWAP MSX1
TAB() MSX1 String function
TAN() MSX1 Trigonometric function
TIME MSX1
TROFF MSX1
TRON MSX1
USR() MSX1 Data input function
VAL() MSX1 Conversion function
VARPTR() MSX1 Data input function
VDP() MSX1 MSX2, MSX2+ Instruction for VDP experts
VPEEK() MSX1 MSX2 Data input function
VPOKE MSX1 MSX2
WAIT MSX1
WIDTH MSX1 MSX2 Hangul BASIC, Kanji BASIC
XOR MSX1 Logical operator