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

From WikiTI
Jump to: navigation, search
 
m (Categorized into math instead of utility)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Category:83Plus:BCALLs:By Name:FP_Util|InvSub]] [[Category:83Plus:BCALLs:By Name|InvSub]] [[Category:83Plus:BCALLs:By Address|4063 - InvSub]]
+
[[Category:83Plus:BCALLs:By Name:FP_Math|InvSub]] [[Category:83Plus:BCALLs:By Name|InvSub]] [[Category:83Plus:BCALLs:By Address|4063 - InvSub]]
 
== Synopsis ==
 
== Synopsis ==
 
'''Official Name:''' InvSub
 
'''Official Name:''' InvSub
Line 5: Line 5:
 
'''BCALL Address:''' 4063
 
'''BCALL Address:''' 4063
  
Computes the floating point subtraction op2-op1.
+
Computes the floating point subtraction [[83Plus:RAM:8483|OP2]]-[[83Plus:RAM:8478|OP1]].
  
 
=== Inputs ===
 
=== Inputs ===
* op1 = floating point number
+
* OP1 = floating point number
* op2 = floating point number
+
* OP2 = floating point number
  
 
=== Outputs ===
 
=== Outputs ===
* op1 = op2-op1
+
* OP1 = OP2-OP1
  
 
=== Registers Destroyed ===
 
=== Registers Destroyed ===
Line 21: Line 21:
  
 
== Example ==
 
== Example ==
Suppose op1=00h,80h,12h,00h,...
+
<nowiki>Suppose OP1=00h,80h,12h,00h,...
And op2=00h,80h,10h,00h,...
+
And OP2=00h,80h,10h,00h,...
After B_CALL InvSub, op1=80h,7Fh,20h,00h,...
+
After B_CALL InvSub, OP1=80h,7Fh,20h,00h,...
  
Suppose op1=00h,80h,10h,00h,...
+
Suppose OP1=00h,80h,10h,00h,...
And op2=00h,80h,12h,00h,...
+
And OP2=00h,80h,12h,00h,...
After B_CALL InvSub, op1=00h,7Fh,20h,00h,...
+
After B_CALL InvSub, OP1=00h,7Fh,20h,00h,...</nowiki>

Latest revision as of 10:46, 20 May 2005

Synopsis

Official Name: InvSub

BCALL Address: 4063

Computes the floating point subtraction OP2-OP1.

Inputs

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

Outputs

  • OP1 = OP2-OP1

Registers Destroyed

  • AF, BC, DE, HL

Comments

This is similar to FPsub.

Example

Suppose OP1=00h,80h,12h,00h,...
And OP2=00h,80h,10h,00h,...
After B_CALL InvSub, OP1=80h,7Fh,20h,00h,...

Suppose OP1=00h,80h,10h,00h,...
And OP2=00h,80h,12h,00h,...
After B_CALL InvSub, OP1=00h,7Fh,20h,00h,...