[A83] Re: Location of Pi and e


[Prev][Next][Index][Thread]

[A83] Re: Location of Pi and e




The 83+ romcall table has obviously pointers to routines but it also has
pointers to data.  I'm not sure why but it does.  I haven't encountered any
romcalls which can directly make use of these pointers.  Anyhow there are
the pointers:

_PIDIV2  equ 4243h ;this is not code, its a pointer to  .db
80h,15h,70h,79h,63h,26h,79h,48h,97h
_PIDIV4  equ 4246h ;

As well as the romcalls:

_GETCONOP1 equ 423dh    ;input: a  output: constant in op1
_GETCONOP2 equ 4240h    ;input: a  output: constant in op2
;you can choose what constant is loaded by using these values:
;a=0 opX=57.29577951308232 (1 radian in degrees)
;a=1 opX=1.570796326794897 (90 deg = pi/2)
;a=2 opX=.7853981633974483 (45 deg = pi/4)
;a=3 opX=.4342944819032518 (log e)
;a=4 opX=3.141592653589800 (pi)
;a=5 opX=.0174532925199433 (pi/180 = 1 degree in radians)
;a=6 opX=2.302585092994046 (ln 10)

If you still want to know exactly in rom these values exist, analysis of
these romcalls will tell you.

Once again if this is referring to the 83-, you can find the equates in
squish.inc

Brandon Sterner

----- Original Message -----
From: "Patrick Mächler" <valio@bluewin.ch>
To: <assembly-83@lists.ticalc.org>
Sent: Wednesday, December 19, 2001 12:43 PM
Subject: [A83] Location of Pi and e


>
> Hi!
>
> Where in the ROM are Pi and e
> saved?
>
> thx for all answers in advance
>
>     Valio
>
>
>
>





Follow-Ups: References: