Difference between revisions of "83Plus:BCALLs:4072"

From WikiTI
Jump to: navigation, search
 
m (formatting)
 
(One intermediate revision by one other user not shown)
Line 5: Line 5:
 
'''BCALL Address:''' 4072
 
'''BCALL Address:''' 4072
  
Adds the floating point number in [[83Plus:RAM:8483|OP1]] to the floating point number in [[83Plus:RAM:8478|OP2]] and stores the result in [[83Plus:RAM:8478|OP1]].
+
Adds the floating point number in [[83Plus:RAM:8478|OP1]] to the floating point number in [[83Plus:RAM:8483|OP2]] and stores the result in [[83Plus:RAM:8478|OP1]].
  
 
=== Inputs ===
 
=== Inputs ===
Line 20: Line 20:
 
  <nowiki>B_CALL OP1Set3  ;OP1=floating point 3
 
  <nowiki>B_CALL OP1Set3  ;OP1=floating point 3
 
B_CALL OP2Set2  ;OP2=floating point 2
 
B_CALL OP2Set2  ;OP2=floating point 2
B_CALL FPAdd  ;returns with OP1=floating point 5
+
B_CALL FPAdd  ;returns with OP1=floating point 5</nowiki>
</nowiki>
+

Latest revision as of 17:50, 24 May 2005

Synopsis

Official Name: FPAdd

BCALL Address: 4072

Adds the floating point number in OP1 to the floating point number in OP2 and stores the result in OP1.

Inputs

  • OP1 = floating point number
  • OP2 = floating point number

Outputs

  • OP1 = OP1 + OP2

Registers Destroyed

  • AF, BC, DE, HL

Example

B_CALL OP1Set3  ;OP1=floating point 3
B_CALL OP2Set2  ;OP2=floating point 2
B_CALL FPAdd  ;returns with OP1=floating point 5