MSX-BASIC in alphabetical order
This page was last modified 14:19, 10 October 2021 by Mars2000you. Based on work by Gdx and Rderooy and others.

On this page, you will find all the standard MSX-BASIC instructions, functions and operators in alphabetical order, without being classified to their purpose. For a listing by function including all the reserved words, see this page: MSX-BASIC Instructions.

Below is a list of all standard MSX-BASIC keywords, 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 usage of a program that adds specific new instructions.

All instructions corresponding to a MSX generation will also work on later generations, but there are few exceptions that may need special attention: For example, generally the instructions related to the data recorder will cause error messages when used on a MSX Turbo R.

Although the instructions added by MSX-BASIC 4.0 (MSX Turbo R) begin with CALL, they are listed here as standard MSX-BASIC instructions, even if they can be seen as extension from a technical point of view. For the other extended instructions there is a seperate MSX-BASIC Extensions category.

A few instructions are both standard instructions while 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 later) computers as a graphical instruction.

Instruction Generation Updates Related extensions / Remarks
- MSX1 Arithmetical operator - Subtraction
+ MSX1 Arithmetical operator - Addition
/ MSX1 Arithmetical operator - Division
\ or ¥ or ₩ MSX1 Arithmetical operator
Division without a digit after the decimal point in result
¥ is used on Japanese MSX instead of \
₩ is used on Korean MSX instead of \
* MSX1 Arithmetical operator - Multiplication
^ MSX1 Arithmetical operator - Root squared
< MSX1 Condition
Checks if the first argument is less to the second
Returns -1 or 0 if true or false.
> MSX1 Condition
Checks if the first argument is greater to the second
Returns -1 or 0 if true or false.
= MSX1 Condition
Checks if the first argument is equal to the second
Returns -1 or 0 if true or false.
>= or => MSX1 Condition
Checks if the first argument is greater than the second or equal
Returns -1 or 0 if true or false.
<= or =< MSX1 Condition
Checks if the first argument is less than the second or equal
Returns -1 or 0 if true or false.
<> or >< MSX1 Condition
Checks if the first argument is different than the second
Returns -1 or 0 if true or false.
 : 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
ATTR$() MSX1 Reserved word that can be diverted,
function for language machine experts
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 ADJUST MSX2 Short version: _ADJUST
Only on MSX2 computers manufactured by Daewoo
Maybe also available with the Sanyo MPC-X Graphic Expander Unit
and the Sanyo MPC-27 computer
Enables the V9938 light-pen interface
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 Delta BASIC
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
DEFDBL MSX1
DEF FN MSX1
DEFINT MSX1
DEFSNG MSX1
DEFSTR MSX1
DEF USR MSX1
DELETE MSX1 Instruction for programming
DIM MSX1
DRAW MSX1
END MSX1
ELSE MSX1
EOF() MSX1 Data input function
EQV MSX1 Logical operator
ERASE MSX1
ERL MSX1
ERR MSX1 Disk BASIC, Delta BASIC
ERROR MSX1 Disk BASIC, Delta BASIC
EXP() MSX1 Mathematical function
FILES MSX1 Disk BASIC required for a real working of this instruction
FIX() MSX1 Mathematical function
FN MSX1 Mathematical function
FOR...NEXT MSX1
FPOS() MSX1 Reserved word that can be diverted,
function for language machine experts
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 Delta BASIC
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 Data output function
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 Short version: ?
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 Data input function
WIDTH MSX1 MSX2 Hangul BASIC, Kanji BASIC
XOR MSX1 Logical operator