Difference between revisions of "83Plus:BCALLs:407E"
From WikiTI
m (formatting) |
|||
Line 19: | Line 19: | ||
== Example == | == Example == | ||
<nowiki>B_CALL OP1Set3 ;OP1=floating point 3 | <nowiki>B_CALL OP1Set3 ;OP1=floating point 3 | ||
− | B_CALL TimesPt5 ;returns with OP1=floating point 1.5 | + | B_CALL TimesPt5 ;returns with OP1=floating point 1.5</nowiki> |
− | </nowiki> | + |
Latest revision as of 06:07, 25 April 2005
Synopsis
Official Name: TimesPt5
BCALL Address: 407E
Halves the floating point number in OP1.
Inputs
- OP1 = floating point number
Outputs
- OP1 = OP1/2
- OP2 = floating point 0.5
Registers Destroyed
- AF, BC, DE, HL
Example
B_CALL OP1Set3 ;OP1=floating point 3 B_CALL TimesPt5 ;returns with OP1=floating point 1.5