Difference between revisions of "83Plus:BCALLs:423D"
From WikiTI
m (Category: fp util) |
m (Formatting, capitalization, links, and 8478 to OP1 for clarity.) |
||
Line 5: | Line 5: | ||
'''BCALL Address:''' 423D | '''BCALL Address:''' 423D | ||
− | Loads one of seven different commonly used constants to | + | Loads one of seven different commonly used constants to [[83Plus:RAM:8478|OP1]]. |
=== Inputs === | === Inputs === | ||
Line 19: | Line 19: | ||
=== Outputs === | === Outputs === | ||
− | * | + | * OP1 = constant |
=== Registers Destroyed === | === Registers Destroyed === | ||
Line 27: | Line 27: | ||
ld a,4 ;PI | ld a,4 ;PI | ||
− | B_CALL GETCONOP1 | + | B_CALL GETCONOP1 |
− | + | ||
After the BCALL: | After the BCALL: | ||
− | + | OP1: 00 80 31 41 59 26 53 58 98 |
Revision as of 07:46, 26 April 2005
Synopsis
Official Name: GETCONOP1
BCALL Address: 423D
Loads one of seven different commonly used constants to OP1.
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
- OP1 = constant
Registers Destroyed
- ??
Example
ld a,4 ;PI B_CALL GETCONOP1
After the BCALL:
OP1: 00 80 31 41 59 26 53 58 98