Difference between revisions of "83Plus:BCALLs:4240"
From WikiTI
(Destroys) |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | [[Category:83Plus:BCALLs:By Name: | + | [[Category:83Plus:BCALLs:By Name:FP_Util|GETCONOP2]] [[Category:83Plus:BCALLs:By Name|GETCONOP2]] [[Category:83Plus:BCALLs:By Address|4240 - GETCONOP2]] |
+ | |||
== Synopsis == | == Synopsis == | ||
'''Official Name:''' GETCONOP2 | '''Official Name:''' GETCONOP2 | ||
Line 5: | Line 6: | ||
'''BCALL Address:''' 4240 | '''BCALL Address:''' 4240 | ||
− | Loads one of seven different commonly used constants to | + | Loads one of seven different commonly used constants to [[83Plus:RAM:8483|OP2]]. |
=== Inputs === | === Inputs === | ||
Line 19: | Line 20: | ||
=== Outputs === | === Outputs === | ||
− | * | + | * OP2 = constant |
=== Registers Destroyed === | === Registers Destroyed === | ||
− | * | + | * All |
== Example == | == Example == | ||
Line 28: | Line 29: | ||
ld a,4 ;PI | ld a,4 ;PI | ||
B_CALL GETCONOP2 | B_CALL GETCONOP2 | ||
− | |||
After the BCALL: | After the BCALL: | ||
− | + | OP2: 00 80 31 41 59 26 53 58 98 |
Latest revision as of 07:50, 6 February 2008
Synopsis
Official Name: GETCONOP2
BCALL Address: 4240
Loads one of seven different commonly used constants to OP2.
Inputs
- a = constant type
- where constant type is
- a=0 180/PI
- a=1 PI/2
- a=2 PI/4
- a=3 Log(e)
- a=4 PI
- a=5 PI/180
- a=6 ln(10)
Outputs
- OP2 = constant
Registers Destroyed
- All
Example
ld a,4 ;PI B_CALL GETCONOP2
After the BCALL:
OP2: 00 80 31 41 59 26 53 58 98