Sharp logo
MZ-800 S-Basic 1Z016 
( Token and entry point list )  
General


The following tables show all commands, functions, variables, and operators available in the BASIC interpreter Sharp 1Z016 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 $A15E
BYE $C4 $6A59
CHAIN $B7 $7053
CLOSE $CF $6F8A
CLS $9B $78FB
CONT $9A $6499
CONSOLE $B8 $6A61
DATA $94 $67FE
DEF $C7 $6C31
DEFAULT $AC $6F41
DELETE $89 $620C
DIM $96 $8D55
DIR $D5 $73A4
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 $A0F6
HSET $B0 $A0EB
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 $7379
MERGE $B6 $7068
NEW $9F $618E
NEXT $8E $6699
OFF $A1 $6364
ON $9D $6952
OUT@ $BA $680A
PAGE $BD $A37A
PCIRCLE $BB $A19E
PCOLOR $AE $A0B3
PHOME $AF $A0E8
PLINE $A5 $A045
PLOT $A4 $A3B1
PMODE $A2 $9F9E
PMOVE $A7 $A04B
POKE $A0 $68A1
PRINT $8F $6C9F
PSKIP $A3 $A003
PTEST $BC $A36C
READ $95 $6DCD
REM $97 $67FE
RENAME $D8 $73CA
RENUM $8A $62AB
RESTORE $85 $6E9E
RESUME $86 $64B6
RETURN $84 $68F9
RLINE $A6 $A048
RMOVE $A8 $A04E
ROPEN $D0 $6F56
RUN $83 $606E
SAVE $B5 $733F
SEARCH $B9 $6A9B
STOP $99 $6468
SWAP $BF $7425
TROFF $AA $61DF
TRON $A9 $61CC
UNLOCK $DB $7395
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 $7538
BOOT $FEAE $6A95
BOX $FE98 $75DE
CCOLOR $FE83 $6364
CIRCLE $FE97 $76DE
CLR $FEA6 $619B
COLOR $FE90 $760B
CURSOR $FEA4 $683B
CRESET $FE82 $6364
CSET $FE81 $6364
HCOPY $FE9C $78F1
LIMIT $FEA7 $68B5
LINE $FE94 $7537
MUSIC $FEA2 $9B6F
NOISE $FE8C $9B6C
PAINT $FE99 $768F
PAL $FE96 $75AF
PATTERN $FE9B $755A
POSITION $FE9A $758B
RESET $FE93 $7529
SET $FE92 $7528
SOUND $FE8A $9B35
SYMBOL $FEA0 $78A1
TEMPO $FEA3 $9B62
VERIFY $FEA5 $7328

Functions

Function
Tokens
Entry point
in BASIC
ABS $FF81 $9546
ASC $FFAB $891B
ATN $FF8A $95C6
CHR$ $FFA0 $88BA
COS $FF83 $9682
EXP $FF86 $98B4
FN $FFC7 $8F48
FRAC $FF8D $7B49
HEX$ $FFA2 $88F0
INT $FF80 $954B
LEFT$ $FFBA $893F
LEN $FFAC $8925
LN $FF85 $99D8
LOG $FF8C $99CC
MID$ $FFBC $8979
PAI $FF8E $9841
PEEK $FF89 $9863
RAD $FF8F $983C
RIGHT$ $FFBB $895C
RND $FF88 $986F
SGN $FF8B $9829
SIN $FF82 $9692
SIZE $FFB5 $87DB
SPACE$ $FFA8 $889C
SQR $FF87 $95A8
STICK $FF9C $8FE9
STR$ $FFA1 $8879
STRIG $FF9D $9008
TAN $FF84 $9771
VAL $FFAD $892D

Variables

Variable
Tokens
Entry point
in BASIC
CSRH $FFB6 $87ED
CSRV $FFB7 $87F2
EOF $FFC6 $88C8
ERL $FFB4 $8811
ERN $FFB3 $8803
POINT $FFC5 $88F5
POSH $FFB8 $87F7
POSV $FFB9 $87FD
TI$ $FFC4 $89CF

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
$81E0
>< $EE
-
<> $EF
-
=< $F0
-
<= $F1
-
=> $F2
-
>= $F3
-
= $F4
-
> $F5
-
< $F6
-
+ $F7
-
- $F8
-
INT DIV $F9
-
.MOD $FA
-
/ $FB
-
* $FC
-

( exponential function,
power of x )
$FD
-


Go to the top of this page Home

last updated December 29, 2003
sharpmz@sharpmz.org