Difference between revisions of "83Plus:BCALLs:41C2"

From WikiTI
Jump to: navigation, search
m (category: fp util)
(Changed official name, fixed formatting, changed A from destroyed to output, and fixed address (was 40C2 instead of 41C2))
Line 1: Line 1:
[[Category:83Plus:BCALLs:By Name:FP_Util|OPSet0]] [[Category:83Plus:BCALLs:By Name|OPSet0]] [[Category:83Plus:BCALLs:By Address|40C2 - OPSet0]]
+
[[Category:83Plus:BCALLs:By Name:FP_Util|SetNum0]] [[Category:83Plus:BCALLs:By Name|SetNum0]] [[Category:83Plus:BCALLs:By Address|41C2 - SetNum0]]
 
== Synopsis ==
 
== Synopsis ==
'''Official Name:''' OPSet0
+
'''Official Name:''' SetNum0
  
'''BCALL Address:''' 40C2
+
'''Other Name:''' OPSet0
 +
 
 +
'''BCALL Address:''' 41C2
  
 
Sets the ten bytes starting at address HL to a floating point zero.
 
Sets the ten bytes starting at address HL to a floating point zero.
Line 11: Line 13:
  
 
=== Outputs ===
 
=== Outputs ===
* HL=HL+9
+
* A = 0
 +
* HL = HL+9
 
* Floating point zero stored to memory
 
* Floating point zero stored to memory
  
 
=== Registers Destroyed ===
 
=== Registers Destroyed ===
* A
+
''None''
  
 
== Example ==
 
== Example ==
Line 21: Line 24:
 
   ld    hl,8100h
 
   ld    hl,8100h
 
   B_CALL OPSet0
 
   B_CALL OPSet0
 
+
 
 
After the BCALL:
 
After the BCALL:
 
   8100: 00 80 00 00 00 00 00 00 00 00
 
   8100: 00 80 00 00 00 00 00 00 00 00

Revision as of 11:28, 21 April 2005

Synopsis

Official Name: SetNum0

Other Name: OPSet0

BCALL Address: 41C2

Sets the ten bytes starting at address HL to a floating point zero.

Inputs

  • HL = address to copy a floating point zero to

Outputs

  • A = 0
  • HL = HL+9
  • Floating point zero stored to memory

Registers Destroyed

None

Example

 ld     hl,8100h
 B_CALL OPSet0

After the BCALL:

 8100: 00 80 00 00 00 00 00 00 00 00