Bcdbcd - Texas Instruments TI-89 Developer's Manual

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

Appendix A: System Routines — Direct Floating Point Operations

bcdbcd

Declaration:
BCD16 bcdbcd (long a )
Category(ies):
Direct Floating Point Operations
Description:
Convert an integer to BCD16 floating point. This routine performs the same
function as the C cast operator "(BCD16)" on a long integer value. This
routine is provided as a convenience for assembly language programs.
Inputs:
a
Outputs:
Returns the BCD16 floating point equivalent of a .
Assumptions:
None
Side Effects:
None
Availability:
All versions of the TI-89 / TI-92 Plus.
TI-89 / TI-92 Plus
Differences:
None
See Also:
bcdadd, bcdcmp, bcddiv, bcdlong, bcdmul, bcdneg, bcdsub
Example:
bcdresult
= -10
bcda
= -20
a
= -24
.
.
.
move.l
move.l
jsr
addq.l
; BCD16 routine value is always at –10(a6)
move.l
move.l
move.w
TI-89 / TI-92 Plus Developer Guide
— A long integer.
a(a6),-(sp)
bcdbcd(a2),a0
(a0)
#4,sp
bcdresult(a6),bcda(a6)
bcdresult+4(a6),bcda+4(a6)
bcdresult+8(a6),bcda+8(a6)
Not for Distribution
;push a (a long integer)
;assumes a2 -> jump table
;call bcdbcd(a)
;pop parameters
375
Beta Version January 26, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents