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

Third release
Hide thumbs Also See for TI-83 Plus:
Table of Contents

Advertisement

Chapter 2: TI-83 Plus Specific Information
;
; B = ROM page and DE = offset, to start of data in the archive
;
;
; 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
;
;
;
;
MyAppVar:
BHL_Plus_DE:
;

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
TI-83 Plus Developer Guide
LD
HL,MyAppVar
RST
rMov9ToOP1
B_CALL
ChkFindSym
EX
DE,HL
CALL
LoadCIndPaged_inc
CALL
LoadDEIndPaged_inc
LD
DE,5
CALL
BHL_plus_DE
CALL
LoadCIndPaged_inc
LD
E,C
CALL
BHL_plus_DE
CALL
LoadDEIndPaged_inc
RET
.asciz
AppVarObj, 'MYAPPVAR'
ADD
HL,DE
BIT
7,H
RET
Z
INC
B
RES
7,H
SET
6,H
RET
Returns the RAM address of a list element.
; OP1 = AppVar name
; find Symbol Table entry,
; and get pointers
; B, HL now points to the
; data of the variable
; skip data valid flag
; skip data length, B, HL
; at symbol entry
; DE = offset to name
; length of AppVar
; add DE to B, HL:
; page, offset
; C = name length, B, HL
; advanced
; DE = offset to start of
; AppVars data
; add DE to B, HL: page,
; offset
; DE = size bytes of
; AppVar,
; add DE to the offset HL
; cross page boundary?
; no, B, HL = ROM page and
; offset
; increase ROM page number
; adjust offset to be in
; 4000h to 7FFFh
Third Release May 28, 2002
47

Advertisement

Table of Contents
loading

Table of Contents