Difference between revisions of "83Plus:BCALLs:4AEF"

From WikiTI
Jump to: navigation, search
m (Comments: 4 spelling mistakes fixed)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
[[Category:83Plus:BCALLs:By Name:Monitor|ConvOP1]] [[Category:83Plus:BCALLs:By Name|ConvOP1]] [[Category:83Plus:BCALLs:By Address|4AEF - ConvOP1]]
 
[[Category:83Plus:BCALLs:By Name:Monitor|ConvOP1]] [[Category:83Plus:BCALLs:By Name|ConvOP1]] [[Category:83Plus:BCALLs:By Address|4AEF - ConvOP1]]
 +
 
== Synopsis ==
 
== Synopsis ==
 
'''Official Name:''' ConvOP1
 
'''Official Name:''' ConvOP1
Line 15: Line 16:
  
 
=== Registers Destroyed ===
 
=== Registers Destroyed ===
''Unknown''
+
*HL,BC
  
 
== Comments ==
 
== Comments ==
 
This information was supplemented by the Detached Solutions forum site.
 
This information was supplemented by the Detached Solutions forum site.
 
This routine is used to convert a floating-point number OP1 to a hex value in DE, but if the number in OP1 is greater than 9999, an error will occur.  The same is thought to happen with decimal numbers; once discovered, more documentation will appear on this ROM call.
 
This routine is used to convert a floating-point number OP1 to a hex value in DE, but if the number in OP1 is greater than 9999, an error will occur.  The same is thought to happen with decimal numbers; once discovered, more documentation will appear on this ROM call.

Latest revision as of 12:13, 6 February 2008


Synopsis

Official Name: ConvOP1

BCALL Address: 4AEF

Converts a floating-point number in OP1 to a two-byte hexadecimal number in DE.

Inputs

  • OP1 = Floating Point Number in standard TI-OS decimal format.

Outputs

  • A = Least SIgnificant Byte Value
  • DE = Hex Value

Registers Destroyed

  • HL,BC

Comments

This information was supplemented by the Detached Solutions forum site. This routine is used to convert a floating-point number OP1 to a hex value in DE, but if the number in OP1 is greater than 9999, an error will occur. The same is thought to happen with decimal numbers; once discovered, more documentation will appear on this ROM call.