
63
Integer Type
Higher 8 bits
Lower 8 bits
←
X
Character Type
Length of character string
Address storing argument (higher)
Address storing argument (lower)
←
X
←
X
(MSB is always 1.)
Single-Precision, Real
Number Type
Exponent
Higher 8 bits of mantissa
Middle 8 bits of mantissa
Lower 8 bits of mantissa
Sign (most significant bit)
←
X
(MSB is always 1.)
Double-Precision, Real
Number Type
Exponent
Higher 8 bits of mantissa
Lower 8 bits of mantissa
Sign (most significant bit)
Program Example:
BASIC Program:
100
A$ = &H1234
110
DEF USR0 = &H2000
120
A = USER (A)
130
PRINT A
140
END
Assembly Language Program:
2000
PSHA
2001
PSHX
2002
LDD 2,X
2004
ADD #10
2007
STD 2,X
2009
PULX
2010
PULA
2011
RTS
Program Remarks:
When program execution branches to the assembly language routine, the TYPE
of <argument> is stored in the accumulator A, and the memory address 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 10 will be added. The result of
the addition is written to the address of <argument>
VARPTR Function
Purpose:
Returns the memory address of the variable argument
Commands, Statements, and Functions
Содержание C500-ASC04
Страница 1: ...C500 ASC04 ASCII Unit Operation Manual Revised February 2001 ...
Страница 5: ...iv ...
Страница 7: ...vi ...