Difference between revisions of "83Plus:BCALLs:40B1"

From WikiTI
Jump to: navigation, search
 
m (category: fp util)
Line 1: Line 1:
[[Category:83Plus:BCALLs:By Name:Utility|LJNORND]] [[Category:83Plus:BCALLs:By Name|LJNORND]] [[Category:83Plus:BCALLs:By Address|40B1 - LJNORND]]
+
[[Category:83Plus:BCALLs:By Name:FP_Util|LJNORND]] [[Category:83Plus:BCALLs:By Name|LJNORND]] [[Category:83Plus:BCALLs:By Address|40B1 - LJNORND]]
 
== Synopsis ==
 
== Synopsis ==
 
'''Official Name:''' LJNORND
 
'''Official Name:''' LJNORND

Revision as of 08:27, 31 March 2005

Synopsis

Official Name: LJNORND

BCALL Address: 40B1

Adjusts op1 to normalized floating point form.

Inputs

  • op1 = floating point, not necessarily normalized

Outputs

  • op1 = normalized floating point

Registers Destroyed

  • A, C, HL

Comments

This shifts all digits in the mantissa of the floating point in op1 leftward if there are any leading zeros in the mantissa. The exponent is adjusted appropriately after the shift.

Example

Suppose op1=00h,80h,01h,23h,45h,55h,55,55h,55h,55h. After calling this BCALL, op1=00h,7Fh,12h,34h,55h,55h,55h,55h,55h,50h