At 03:14 PM 9/8/2001 -0500, Brian Wheeler wrote:
>On Sat, 2001-09-08 at 11:00, Dan Sugalski wrote:
> > Okay, I'm whipping together the "fancy math" section of the interpreter
> > assembly language. I've got:
> >
> > sin, cos, tan         : Plain ones
> > asin, acos, atan      : arc-whatevers
> > shinh, cosh, tanh     : Hyperbolic whatevers
> > log2, log10, log      : Base 2, base 10, and explicit base logarithms
> > pow                   : Raise x to the y power
> >
> > Can anyone think of things I've forgotten? It's been a while since I've
> > done numeric work.
> >
> >                                       Dan
> >
>
>While not math, per se, there are bitops (and, or, not, xor, eqv) and
>shifts (though they can be simulated by "mul tx,ty,(2^bits)" and "div
>tx,ty,(2^bits)")

Those are next. I'm getting into the math bits first.

If you want to make a list of bit operations, though, that'd be fine.

>I doubt rolls would be useful :)

You never know--someone might want to build an RC5 encoder/decoder in perl. 
Rolls are useful there.

>Are there going to be string ops as well, or would add and mul work on
>string registers?

String ops are separate. I don't want to overload things too badly until I 
really have to.

                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to