Sharp logo
MZ-800 S-Basic 2Z-046 
( Token and entry point list )  
General


The following tables show all commands, functions, variables, and operators available in the BASIC interpreter Sharp 2Z-046 and its associated tokens and entry point addresses within the BASIC interpreter program.

A token is 1 or 2 bytes in length and is used by the interpreter to build a BASIC command line in the command line area. A BASIC command, for example PRINT is not stored with its 5 MZ-ASCII bytes P R I N T, it is stored with its associated token $8F ( see the table below ).

The entry point address is the associated and internally entry to the routine interpreting and executing the command within the BASIC interpreter.

Commands

Commands with tokens one byte in length

Command
Token
Entry point
in BASIC
AUTO
$8B
$60CA
AXIS
$B3
$A1D7
BYE
$C4
$6A59
CHAIN
$B7
$7053
CLOSE
$CF
$6F8A
CLS
$9B
$7972
CONT
$9A
$6499
CONSOLE
$B8
$6A61
DATA
$94
$67FE
DEF
$C7
$6C31
DEFAULT
$AC
$6F41
DELETE
$89
$620C
DIM
$96
$8DCC
DIR
$D5
$7424
EDIT
$8C
$6125
END
$98
$60B9
ELSE
$C2
$69E4
ERROR
$C1
$63F8
FOR
$8D
$6602
GET
$AD
$686C
GOSUB
$81
$692A
GOTO
$80
$69AF
GPRINT
$B1
$A16F
HSET
$B0
$A164
IF
$93
$69C2
INIT
$DC
$6F47
INPUT
$91
$6DD4
INP@
$AB
$681F
KEY
$B2
$6B84
KILL
$D9
$6F8B
LABEL
$CA
$67FE
LET
$9E
$650D
LIST
$87
$6A9D
LOAD
$B4
$6FFD
LOCK
$DA
$7418
MERGE
$B6
$7068
NEW
$9F
$618E
NEXT
$8E
$6699
OFF
$A1
$6364
ON
$9D
$6952
OUT@
$BA
$680A
PAGE
$BD
$A3F3
PCIRCLE
$BB
$A217
PCOLOR
$AE
$A12C
PHOME
$AF
$A161
PLINE
$A5
$A0BE
PLOT
$A4
$A42A
PMODE
$A2
$A017
PMOVE
$A7
$A0C4
POKE
$A0
$68A1
PRINT
$8F
$6C9F
PSKIP
$A3
$A07C
PTEST
$BC
$A3E5
READ
$95
$6DCD
REM
$97
$67FE
RENAME
$D8
$744B
RENUM
$8A
$62AB
RESTORE
$85
$6E9E
RESUME
$86
$64B6
RETURN
$84
$68F9
RLINE
$A6
$A0C1
RMOVE
$A8
$A0C7
ROPEN
$D0
$6F56
RUN
$83
$606E
SAVE
$B5
$73C0
SEARCH
$B9
$6A9B
STOP
$99
$6468
SWAP
$BF
$74A6
TROFF
$AA
$61DF
TRON
$A9
$61CC
UNLOCK
$DB
$7416
USR
$C3
$67A4
WAIT
$BE
$67EE
WOPEN
$CE
$6F59
XOPEN
$D1
$6F5C

Commands with tokens two byte in length

Command
Tokens
Entry point
in Basic
BEEP $FE8D $6A56
BLINE $FE95 $75A2
BOOT
$FEAE
$6A95
BOX $FE98 $7648
CCOLOR
$FE83
$6364
CIRCLE $FE97 $774C
CLR
$FEA6
$619B
COLOR $FE90 $7675
CURSOR
$FEA4
$683B
CRESET
$FE82
$6364
CSET
$FE81
$6364
HCOPY $FE9C $7968
LIMIT
$FEA7
$68B5
LINE $FE94 $75A1
MUSIC
$FEA2
$9BE6
NOISE $FE8C $9BE3
PAINT $FE99 $76FD
PAL $FE96 $7619
PATTERN $FE9B $75C4
POSITION $FE9A $75F5
RESET $FE93 $7593
SET $FE92 $7592
SOUND $FE8A $9BAC
SYMBOL $FEA0 $790F
TEMPO
$FEA3
$9BD9
VERIFY
$FEA5
$73A9

Functions

Function
Tokens
Entry point
in BASIC
ABS
$FF81
$95BD
ASC
$FFAB
$8992
ATN
$FF8A
$963D
CHR$
$FFA0
$6364
COS
$FF83
$96F9
EXP
$FF86
$992B
FN
$FFC7
$8FBF
FRAC $FF8D $7BC0
HEX$
$FFA2
$88F0
INT
$FF80
$95C2
LEFT$
$FFBA
$89B6
LEN
$FFAC
$899C
LN
$FF85
$9A4F
LOG
$FF8C
$9A43
MID$
$FFBC
$89F0
PAI
$FF8E
$98B8
PEEK
$FF89
$98DA
RAD
$FF8F
$98B3
RIGHT$
$FFBB
$89D3
RND
$FF88
$98E6
SGN
$FF8B
$98A0
SIN
$FF82
$9709
SIZE
$FFB5
$8852
SPACE$ $FFA8 $8913
SQR
$FF87
$961F
STICK $FF9C $9060
STR$
$FFA1
$8931
STRIG $FF9D $907F
TAN
$FF84
$97E8
VAL
$FFAD
$89A4

Variables

Variable
Tokens
Entry point
in BASIC
CSRH $FFB6 $8864
CSRV $FFB7 $8869
EOF
$FFC6
$893F
ERL
$FFB4
$8888
ERN
$FFB3
$887A
POINT $FFC5 $896C
POSH $FFB8 $886E
POSV $FFB9 $8874
TI$
$FFC4
$8A46

Operators

Operator
Token
Entry point
in BASIC
.AND
$EC
-
.NOT
$ED
-
.OR
$EB
-
.XOR
$EA
-
ALL
$E5
-
SPC
$E7
-
STEP
$E1
-
TAB
$E6
-
THEN
$E2
-
TO
$E0
-
USING
$E3
-
π ( pi )
$E4
-
><
$EE
-
<>
$EF
-
=<
$F0
-
<=
$F1
-
=>
$F2
-
>=
$F3
-
=
$F4
-
>
$F5
-
<
$F6
.
+
$F7
-
-
$F8
-
DIV
$F9
-
.MOD
$FA
-
/
$FB
-
*
$FC
-

( exponential function,
power of x )
$FD
-


Go to the top of this page Home

last updated January 7, 2014
sharpmz@sharpmz.org