Sharp logo
S-Basic 1Z-013B 
( Token and entry point list )  
General

The following tables show all commands, functions, variables and operators available in the BASIC interpreter Sharp 1Z-013B 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 starting from the location $6BCF in the RAM. 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.

More explanations about the internal interpreter processes and the structure of a BASIC command line will follow later when I describe the work of the interpreter, after a general description of the work of a BASIC interpreter.

Commands
Commands with tokens one byte in length

Entry point addresses marked with "*" are dummy instructions or a special internal processing is done by the BASIC interpreter. $20FE is not really an executable address. Performing this address by your own assembler program will result in an error message: Syntax error.

Command short form Token Entry point
in BASIC
AUTO A.
$8B
$21D5
AXIS AX.
$B3
$44FC
BYE B.
$C4
$13C2
CIRCLE CI.
$BB
$5050
CLOSE CLO.
$CF
$4545
CLS CL.
$9B
$38CE
CONT C.
$9A
$209F
CONSOLE CONS.
$B8
$39CB
DATA DA.
$94
$3323
DEF DEF
$C7
$251B
DELETE D.
$89
$3456
DIM DI.
$96
$5AEA
END E.
$98
$21B7
ERASE ER.
$C0
$20FE*
ERROR ERR.
$C1
$2105
FOR F.
$8D
$1CBF
GET GE.
$AD
$3389
GOSUB GOS.
$81
$36CD
GOTO G.
$80
$3807
GPRINT GP.
$B1
$4F76
HSET H.
$B0
$4F64
IF IF
$93
$383F
INPUT I.
$91
$22CA
INP# INP#
$AB
$3350
KEY K.
$B2
$4321
KILL KI.
$D9
$20FE*
LET LE.
$9E
$1959
LINE LIN.
$A5
$4E8C
LIST L.
$87
$4102
LOAD LO.
$B4
$41D1
MERGE ME.
$B6
$41AB
MODE M.
$A2
$4DD0
MOVE MOV.
$A7
$4F05
NEW NE.
$9F
$2248
NEXT N.
$8E
$1D6F
OFF OF.
$A1
$20FE*
ON O.
$9D
$3792
OUT# OU.
$BA
$3339
PAGE PA.
$BD
$523B
PCOLOR PC.
$AE
$4F1B
PHOME PH.
$AF
$4F50
PLOT PL.
$A4
$3A31
POKE PO.
$A0
$33D7
PRINT P. or ?
$8F
$1E6A
READ REA.
$95
$25E3
REM REM
$97
$3323
RENUM REN.
$8A
$3471
RESTORE RES.
$85
$25A8
RESUME RESU.
$86
$36FB
RETURN RE.
$84
$3694
RLINE RL.
$A6
$4EFE
RMOVE RM.
$A8
$4F14
ROPEN RO.
$D0
$46DF
RUN R.
$83
$1C6E
SAVE SA.
$B5
$42A4
SKIP SK.
$A3
$4E2C
STOP S.
$99
$2071
TEST TE.
$BC
$5227
TROFF TROF.
$AA
$2282
TRON T.
$A9
$227E
USR U.
$C3
$3305
WOPEN W.
$CE
$46A3

Commands with tokens two byte in length

Command short form Tokens Entry point
in Basic
BOOT BO.
$FEAE
$3A6A
CLR CLR
$FEA6
$224E
COLOR COL.
$FE83
$4473
CURSOR CU.
$FEA4
$336C
LIMIT LIM.
$FEA7
$340B
MUSIC MU.
$FEA2
$443C
RESET RESE.
$FE82
$3935
SET SE.
$FE81
$3902
TEMPO TEM.
$FEA3
$4463
VERIFY V.
$FEA5
$42D1
Functions

Entry point addresses marked with "*" in the table are dummy instructions or a special internal processing is done by the BASIC interpreter. $20FE is not really an executable address. Performing this address by your own assembler program will result in an error message: Syntax error.

Function
short form
Tokens Entry point
in BASIC
ABS AB.
$FF81
$6272
ASC AS.
$FFAB
$56A0
ATN AT.
$FF8A
$62EE
CHR$ CH.
$FFA0
$20FE*
COS COS
$FF83
$63B0
EXP EX.
$FF86
$6615
FN FN
$FFC7
$5CF7
HEX$ HE.
$FFA2
$55EC
INT INT
$FF80
$6277
JOY J.
$FF9E
$39A3
LEFT$ LEF.
$FFBA
$56C7
LEN LEN
$FFAC
$56AC
LN LN
$FF85
$6736
LOG LOG
$FF8C
$672A
MID$ MI.
$FFBC
$5702
PAI PAI
$FF8E
$65A2
PEEK PE.
$FF89
$65B5
RAD RA.
$FF8F
$659D
RIGHT$ RI.
$FFBB
$56E4
RND RN.
$FF88
$65D0
SGN SG.
$FF8B
$657A
SIN SI.
$FF82
$63C6
SIZE SIZ.
$FFB5
$5548
SQR SQ.
$FF87
$62D0
STRING$ STRI.
$FFC3
$20FE*
STR$ STR.
$FFA1
$5677
TAN TAN
$FF84
$64BD
VAL VA.
$FFAD
$56B4
Variables

Entry point addresses marked with "*" are dummy instructions or a special internal processing is done by the BASIC interpreter. $20FE is not really an executable address. Performing this address by your own assembler program will result in an error message: Syntax error.

Variable short form Tokens Entry point
in BASIC
EOF EO.
$FF95
$20FE*
ERL ERL
$FFB4
$556A
ERN ERN
$FFB3
$5562
TI$ TI$
$FFC4
$573F
Operators
Operator short form Token Entry point
in BASIC
AND AN.
$EC
-
OR OR
$EB
-
SPC SP.
$E7
$563A
STEP STE.
$E1
-
TAB TA.
$E6
-
THEN TH.
$E2
-
TO TO
$E0
-
USING USI.
$E3
-
π ( pi ) π ( pi )
$E4
$541A
>< ><
$EE
-
<> <>
$EF
-
=< =<
$F0
-
<= <=
$F1
-
=> =>
$F2
-
>= >=
$F3
-
= =
$F4
-
> >
$F5
-
< <
$F6
.
+ +
$F7
-
- -
$F8
-
/ /
$FB
-
* *
$FC
-

( exponential function,
power of x )

( exponential function,
power of x )
$FD
-


Go to the top of this page Home

last updated October 8, 2003
sharpmz@sharpmz.org