Chapter 14: Data Types
157
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
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 Bytes
Data Length of program/function 2
END_OF_SEGMENT 1
Tokenized statements variable
PRGM_TAG or FUNC_BEGIN_TAG
➊
1
END_TAG (terminates parameter list) 1
Parameter List variable
In-Use Counter 1
Flag 2 (reserved)
➋
1
Flag 1
➌
1
USER_DEF_TAG 1
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.