EasyManua.ls Logo

Texas Instruments TI-83-Plus - List Element Routines; Manipulation Routines

Texas Instruments TI-83-Plus
188 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 2: TI-83 Plus Specific Information 47
TI-83 Plus Developer Guide Third Release May 28, 2002
LD HL,MyAppVar
RST rMov9ToOP1 ; OP1 = AppVar name
B_CALL ChkFindSym ; find Symbol Table entry,
; and get pointers
;
; B = ROM page and DE = offset, to start of data in the archive
;
EX DE,HL ; B, HL now points to the
; data of the variable
CALL LoadCIndPaged_inc ; skip data valid flag
CALL LoadDEIndPaged_inc ; skip data length, B, HL
; at symbol entry
;
; now the size of the Symbol Table entry needs to be computed so that
; it can be skipped over to get to the AppVar’s data structure
;
LD DE,5 ; DE = offset to name
; length of AppVar
CALL BHL_plus_DE ; add DE to B, HL:
; page, offset
;
CALL LoadCIndPaged_inc ; C = name length, B, HL
; advanced
LD E,C ; DE = offset to start of
; AppVars data
;
CALL BHL_plus_DE ; add DE to B, HL: page,
; offset
;
CALL LoadDEIndPaged_inc ; DE = size bytes of
; AppVar,
RET
MyAppVar:
.asciz AppVarObj, ‘MYAPPVAR’
BHL_Plus_DE:
ADD HL,DE ; add DE to the offset HL
BIT 7,H ; cross page boundary?
RET Z ; no, B, HL = ROM page and
; offset
;
INC B ; increase ROM page number
RES 7,H
SET 6,H ; adjust offset to be in
; 4000h to 7FFFh
RET
Manipulation Routines
List Element Routines
These routines are used for storing and recalling list element values and for changing
the dimension of a list.
AdrLEle Returns the RAM address of a list element.

Table of Contents

Other manuals for Texas Instruments TI-83-Plus

Related product manuals