Difference between revisions of "83Plus:BCALLs:4057"
From WikiTI
(→Outputs: smaller->bigger) |
m (Links, capitalization, and formatting) |
||
| Line 5: | Line 5: | ||
'''BCALL Address:''' 4057 | '''BCALL Address:''' 4057 | ||
| − | Sets | + | Sets [[83Plus:RAM:8478|OP1]] to the larger of the two floating point numbers in [[83Plus:RAM:8478|OP1]] and [[83Plus:RAM:8483|OP2]]. |
=== Inputs === | === Inputs === | ||
| − | * | + | * OP1 = floating point number |
| − | * | + | * OP2 = floating point number |
=== Outputs === | === Outputs === | ||
| − | * | + | * OP1 = the bigger floating point number |
=== Registers Destroyed === | === Registers Destroyed === | ||
| − | * AF, BC, DE, HL, OP3, OP4 | + | * AF, BC, DE, HL, [[83Plus:RAM:848E|OP3]], [[83Plus:RAM:8499|OP4]] |
== Comments == | == Comments == | ||
| Line 21: | Line 21: | ||
== Example == | == Example == | ||
| − | Suppose | + | <nowiki>Suppose OP1=00h,80h,12h,00h,... |
| − | And | + | And OP2=00h,80h,10h,00h,... |
| − | After B_CALL Max, | + | After B_CALL Max, OP1=00h,80h,12h,00h,... |
| − | + | Suppose OP1=00h,80h,10h,00h,... | |
| − | Suppose | + | And OP2=00h,80h,12h,00h,... |
| − | And | + | After B_CALL Max, OP1=00h,80h,12h,00h,...</nowiki> |
| − | After B_CALL Max, | + | |
Latest revision as of 07:55, 21 April 2005
Synopsis
Official Name: Max
BCALL Address: 4057
Sets OP1 to the larger of the two floating point numbers in OP1 and OP2.
Inputs
- OP1 = floating point number
- OP2 = floating point number
Outputs
- OP1 = the bigger floating point number
Registers Destroyed
Comments
This is similar to the BASIC function Max().
Example
Suppose OP1=00h,80h,12h,00h,... And OP2=00h,80h,10h,00h,... After B_CALL Max, OP1=00h,80h,12h,00h,... Suppose OP1=00h,80h,10h,00h,... And OP2=00h,80h,12h,00h,... After B_CALL Max, OP1=00h,80h,12h,00h,...