Sharp logo
MZ-700 Disk Basic 2Z009 
( Token and entry point list )  
General


The following tables show all commands, functions, variables, and operators available in the Disk BASIC interpreter Sharp 2Z009 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 text table starts at $4167;
address table at $43F4.

Command
Tokens
Entry point in BASIC
AUTO
$8B
$4861
AXIS
$B3
$6BE2
BYE
$C4
$524E
CHAIN
$B7
$59D5
CIRCLE
$BB
$6C22
CLOSE
$CF
$5913
CLS
$9B
$552D
CONT
$9A
$4C11
CONSOLE
$B8
$5256
DATA
$94
$4F80
DEF
$C7
$544C
DEFAULT
$AC
$58CA
DELETE
$89
$4999
DIM
$96
$76A5
DIR
$D5
$5CE1
EDIT
$8C
$48B9
END
$98
$4850
ELSE
$C2
$5172
ERROR
$C1
$4B70
FOR
$8D
$4D84
GET
$AD
$4FE5
GOSUB
$81
$50B8
GOTO
$80
$513D
GPRINT
$B1
$6B7D
HSET
$B0
$6B73
IF
$93
$5150
INIT
$DC
$58D0
INPUT
$91
$575B
INP@
$AB
$4FA1
KEY
$B2
$539F
KILL
$D9
$5194
LABEL
$CA
$4F80
LET
$9E
$4C8F
LINE
$A5
$6ACC
LIST
$87
$52B8
LOAD
$B4
$5986
LOCK
$DA
$5CD5
MERGE
$B6
$59EA
MODE
$A2
$6A1C
MOVE
$A7
$6AD2
NEW
$9F
$4922
NEXT
$8E
$4E1B
OFF
$A1
$4AE6
ON
$9D
$50E0
OUT@
$BA
$4F8C
PAGE
$BD
$6DFB
PCOLOR
$AE
$6B37
PHOME
$AF
$6B69
PLOT
$A4
$6EA1
POKE
$A0
$501A
PRINT
$8F
$561E
READ
$95
$5754
REM
$97
$4F80
RENAME
$D8
$5D08
RENUM
$8A
4A38
RESTORE
$85
$5828
RESUME
$86
$4C2E
RETURN
$84
$5087
RLINE
$A6
$6ACF
RMOVE
$A8
$6AD5
ROPEN
$D0
$58DF
RUN
$83
$4802
SAVE
$B5
$5C86
SEARCH
$B9
$52B6
SKIP
$A3
$6A7F
STOP
$99
$4BE0
SWAP
$BF
$5D63
TEST
$BC
$6DF0
TROFF
$AA
$496C
TRON
$A9
$4959
UNLOCK
$DB
$5CD3
USR
$C3
$4F26
WAIT
$BE
$4F70
WOPEN
$CE
$58E2
XOPEN
$D1
$58E5

unused tokens are:
$82, $88, $90, $92, $9C, $C0, $C5, $C6, $C8, $C9, $CB, $CC, $CD, $D2, $D3, $D4, $D6, $D7, $DD, $DE, $DF, $E4, $E5, $E8, $E9, $F9, $FA. They go to $4AE6 ( Syntax error ).
Tokens $FE and $FF are impossible.



Commands with tokens two byte in length
Command text table starts at $42FE;
address table at $44B6.

Command
Tokens
Entry point
in Basic
BEEP $FE8D $524B
BOOT
$FEAE
$52B0
COLOR
$FE83
$549C
CLR
$FEA6
$4928
CURSOR
$FEA4
$4FBD
LIMIT
$FEA7
$5043
MUSIC
$FEA2
$54F3
RESET
$FE82
$51E5
SET
$FE81
$51E4
TEMPO
$FEA3
$5515
VERIFY
$FEA5
$5C6F
unused tokens are:
$84-$8C, $8E-$A1, $A8-$AD. They go to $4AE6 ( Syntax error ).
Tokens $AF-$FF are impossible.

Functions


Command text table starts at $4356;
address table at $4512.

Function
Tokens
Entry point
in BASIC
ABS
$FF81
$7E7F
ASC
$FFAB
$726B
ATN
$FF8A
$7EFF
CHR$
$FFA0
$4AE6
COS
$FF83
$7FBB
EXP
$FF86
$81F5
FN
$FFC7
$7898
FRAC $FF8D $608B
HEX$
$FFA2
$71EF
INT
$FF80
$7E84
JOY
$FF9E
$7925
LEFT$
$FFBA
$728F
LEN
$FFAC
$7275
LN
$FF85
$8319
LOG
$FF8C
$830D
MID$
$FFBC
$72C9
PAI
$FF8E
$817A
PEEK
$FF89
$819C
RAD
$FF8F
$8175
RIGHT$
$FFBB
$72AC
RND
$FF88
$81B0
SGN
$FF8B
$8162
SIN
$FF82
$7FCB
SIZE
$FFB5
$715C
SPACE$ $FFA8 $7212
SQR
$FF87
$7EE1
STR$
$FFA1
$7230
TAN
$FF84
$80AA
VAL
$FFAD
$727D
unused tokens are:
$90-$9D, $9F, $A3-$A7, $A9-$AA, $AE-$B2, $B8-$B9, $BD-$C3, $C5. They go to $4AE6 ( Syntax error ).
Tokens $C8-$FF are impossible.

Variables


Command text table starts at $4356;
address table at $4512.

Variable
Tokens
Entry point
in BASIC
CSRH $FFB6 $7171
CSRV $FFB7 $7176
EOF
$FFC6
$723E
ERL
$FFB4
$7189
ERN
$FFB3
$717B
TI$
$FFC4
$731F
unused tokens are:
$90-$9D, $9F, $A3-$A7, $A9-$AA, $AE-$B2, $B8-$B9, $BD-$C3, $C5. They go to $4AE6 ( Syntax error ).
Tokens $C8-$FF are impossible.

Operators


Command text table starts at $42BF.

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

( exponential function,
power of x )
$FD
-

unused tokens are:
$82, $88, $90, $92, $9C, $C0, $C5, $C6, $C8, $C9, $CB, $CC, $CD, $D2, $D3, $D4, $D6, $D7, $DD, $DE, $DF, $E4, $E5, $E8, $E9, $F9, $FA. They go to $4AE6 ( Syntax error ).
Tokens $FE and $FF are impossible.



Go to the top of this page Home

last updated June 26, 2004
sharpmz@sharpmz.org