Sharp logo
MZ-700 Disk-Basic K & P 
( Token and entry point list )  
General


The following tables show all commands, functions, variables, and operators available in the Disk-BASIC interpreter from K & P 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
$23F3
AXIS
$B3
$4CA7
BYE
$C4
$13C2
CHAIN
$D7
$6D98
CIRCLE
$BB
$4CFB
CLOSE
$CF
$70CE
CLS
$9B
$375D
CONT
$9A
$22C4
CONSOLE
$B8
$385A
DATA
$94
$318F
DEF
$C7
$2765
DELETE
$89
$32BF
DIM
$96
$5782
DIR
$D2
$71AC
END
$98
$23CF
ERASE
$C0
$2323
ERROR
$C1
$232A
FOR
$8D
$1EB0
GET
$AD
$31F5
GOSUB
$81
$353F
GOTO
$80
$366B
GPRINT
$B1
$4C21
HSET
$B0
$4C0F
IF
$93
$36A3
INPUT
$91
$2502
INP#
$AB
$31BC
KEY
$B2
$41AE
KILL
$D9
$743B
LET
$9E
$1972
NEW
$9F
$2479
LINE
$A5
$4B37
LOAD
$B4
$6BB9
LOCK
$D5
$7473
MERGE
$B6
$4018
MODE
$A2
$4A7B
MOVE
$A7
$4BB0
NEW
$9F
$2479
NEXT
$8E
$1F60
OFF
$A1
$2323
ON
$9D
$3604
OUT#
$BA
$31A5
PAGE
$BD
$4EE6
PCOLOR
$AE
$4BC6
PHOME
$AF
$4BFB
PLOT
$A4
$38C0
POKE
$A0
$3243
PRINT
$8F
$205C
READ
$95
$282D
REM
$97
$318F
RENAME
$D4
$752C
RENUM
$8A
$32E9
RESTORE
$85
$27F2
RESUME
$86
$356D
RETURN
$84
$3506
RLINE
$A6
$4BA9
RMOVE
$A8
$4BBF
ROPEN
$D0
$6FAB
RUN
$83
$1E3B
SAVE
$B5
$6D38
SKIP
$A3
$4AD7
STOP
$99
$2295
SWAP
$D3
$6DB8
TEST
$BC
$4ED2
TROFF
$AA
$24D6
TRON
$A9
$24D2
UNLOCK
$D6
$7471
USR
$C3
$3171
WOPEN
$CE
$6FC$
XOPEN
$D1
$6FA&

Commands with tokens two byte in length

Command
Tokens
 
Entry point
in Basic
BOOT
$FEAE
x
$38F9
CLR
$FEA6
x
$247F
COLOR $FE83 x $4300
CURSOR
$FEA4
x
$31D8
LIMIT
$FEA7
x
$3274
MUSIC
$FEA2
x
$42C9
RESET $FE82 x $37C4
SET $FE81 x $3791
TEMPO
$FEA3
x
$42F0
VERIFY
$FEA5
x
$415E

Functions

Function
Tokens
Entry point
in BASIC
ABS
$FF81
$5F0A
ASC
$FFAB
$5338
ATN
$FF8A
$5F7D
CHR$
$FFA0
$2323
COS
$FF83
$603F
EXP
$FF86
$62A4
FN
$FFC7
$598F
HEX$
$FFA2
$5284
INT
$FF80
$5F0F
JOY
$FF9E
$3832
LEFT$
$FFBA
$535F
LEN
$FFAC
$5344
LN
$FF85
$63C5
LOG
$FF8C
$63B9
MID$
$FFBC
$539A
PAI
$FF8E
$6231
PEEK
$FF89
$6244
RAD
$FF8F
$622C
RIGHT$
$FFBB
$537C
RND
$FF88
$625F
SGN
$FF8B
$6209
SIN
$FF82
$6055
SIZE
$FFB5
$51DB
SQR
$FF87
$5F5F
STR$
$FFA1
$530F
STRING$ $FFC3 $2323
VAL
$FFAD
$534C

Variables

Variable
Tokens
Entry point
in BASIC
CSRH
$FFB7
$51F0
CSRV
$FFB6
$51F5
EOF
$FF95
$2323
ERL
$FFB4
$5202
ERN
$FFB3
$51FA
TI$
$FFC4
$53D7

Operators

Operator
Token
Entry point
in BASIC
AND
$EC
-
OR
$EB
-
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
-


Go to the top of this page Home

last updated November 20, 2002
sharpmz@sharpmz.org