Tokenized Programs And Functions; Table 14.13: Data Object For A Tokenized Program Or Function - Texas Instruments TI-89 Developer's Manual

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

Chapter 14: Data Types
14.9.

Tokenized Programs and Functions

Programs and functions are stored similarly and both use the same tag
(USER_DEF_TAG). There are two formats depending on whether the
program/function is tokenized or in text format. The tokenized format is listed
below. There is a routine, GetFuncPrgmBodyPtr, that given a pointer to a
USER_DEF_TAG returns the pointer to the function or program body — that is it
skips all of the parameters and flags.
Description
Data Length of program/function
END_OF_SEGMENT
Tokenized statements
PRGM_TAG or FUNC_BEGIN_TAG
END_TAG (terminates parameter list)
Parameter List
In-Use Counter
Flag 2 (reserved)
Flag 1
USER_DEF_TAG

Table 14.13: Data Object for a Tokenized Program or Function

This byte is PRGM_TAG for programs and FUNC_BEGIN_TAG for functions.
This flag is reserved for future use, except for Bit 0, the LOCK flag. If the LOCK flag is set,
the program will be locked on transmit, or is locked on receive.
This flag byte contains the flags listed below. For tokenized programs/functions the
FF_PARSE flag bit will be set to zero.
TI-89 / TI-92 Plus Developer Guide
Not for Distribution
Bytes
2
1
variable
1
1
variable
1
1
1
1
Beta Version January 26, 2001
157

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents