C200HBAT09 Omron, C200HBAT09 Datasheet - Page 79

no-image

C200HBAT09

Manufacturer Part Number
C200HBAT09
Description
C200H REPLACEMENT BATTERY
Manufacturer
Omron
Datasheet

Specifications of C200HBAT09

Rohs Compliant
NO
Leaded Process Compatible
No
Peak Reflow Compatible (260 C)
No
BASIC Language
VARPTR Function
Program Remarks:
When program execution branches to the assembly language routine, the
TYPE of <argument> is stored in the accumulator A, and the memory ad-
dress where the argument is stored is input to the index register X. The value
of the argument is stored in the accumulator D, to whose contents &H10 will
be added. The result of the addition is written to the address of <argument>.
Purpose:
Format:
Example:
Remarks:
The VARPTR function returns the address of the first byte of data identified
with the variable. A value must be assigned to the variable prior to the call to
VARPTR or an error will result. Any type variable name may be used (numer-
ic, string, array).
Note that all simple variables should be assigned before calling VARPTR for
an array because addresses of arrays change whenever a new simple vari-
able is assigned.
VARPTR is used to obtain the address of a variable or array so that it may be
passed to an assembly language subroutine. A function call of the form
VARPTR(A(0)) is specified when passing an array, so that the lowest ad-
dressed element of the array is returned.
The following figure illustrates the relationship between the variable type and
the address indicated by VARPTR.
2002
2004
2007
2009
2010
2011
LDD 2,X
ADD #10
STD 2,X
PULX
PULA
RTS
Returns the memory address of the variable argument
<x> = VARPTR(<variable>)
<variable> is a number, string, or array variable.
B = VARPTR (A)
Section 4-2
65

Related parts for C200HBAT09