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

From WikiTI
Jump to: navigation, search
(Registers Destroyed: OP2 is not destroyed)
(Example)
 
Line 23: Line 23:
 
Suppose op1=00h,80h,12h,00h,...
 
Suppose op1=00h,80h,12h,00h,...
 
And op2=00h,80h,10h,00h,...
 
And op2=00h,80h,10h,00h,...
After B_CALL Min, op1=00h,81h,10h,00h,...
+
After B_CALL Min, op1=00h,80h,10h,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 Min, op1=00h,81h,10h,00h,...
+
After B_CALL Min, op1=00h,80h,10h,00h,...

Latest revision as of 20:32, 20 April 2005

Synopsis

Official Name: Min

BCALL Address: 4054

Sets op1 to the smaller of the two floating point numbers in op1 and op2.

Inputs

  • op1 = floating point number
  • op2 = floating point number

Outputs

  • op1 = the smaller floating point number

Registers Destroyed

  • AF, BC, DE, HL, OP3, OP4

Comments

This is similar to the BASIC function Min().

Example

Suppose op1=00h,80h,12h,00h,... And op2=00h,80h,10h,00h,... After B_CALL Min, op1=00h,80h,10h,00h,...


Suppose op1=00h,80h,10h,00h,... And op2=00h,80h,12h,00h,... After B_CALL Min, op1=00h,80h,10h,00h,...