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

From WikiTI
Jump to: navigation, search
m (category: fp util)
m (Formatting)
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
'''BCALL Address:''' 40B1
 
'''BCALL Address:''' 40B1
  
Adjusts op1 to normalized floating point form.  
+
Adjusts [[83Plus:RAM:8478|OP1]] to normalized floating point form.  
  
 
=== Inputs ===
 
=== Inputs ===
* op1 = floating point, not necessarily normalized  
+
* OP1 = floating point, not necessarily normalized  
  
 
=== Outputs ===
 
=== Outputs ===
* op1 = normalized floating point
+
* OP1 = normalized floating point
  
 
=== Registers Destroyed ===
 
=== Registers Destroyed ===
Line 17: Line 17:
  
 
== Comments ==
 
== 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.
+
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 ==
 
== Example ==
Suppose op1=00h,80h,01h,23h,45h,55h,55,55h,55h,55h.  
+
<nowiki>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
+
After calling this BCALL, OP1=00h,7Fh,12h,34h,55h,55h,55h,55h,55h,50h</nowiki>

Latest revision as of 09:31, 21 April 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