[Coco] DECB USRn function?
jdaggett at gate.net
jdaggett at gate.net
Mon Jul 24 09:38:07 EDT 2006
On 24 Jul 2006 at 22:54, Mark McDougall wrote:
> Robert Gault wrote:
>
> > It is easy to find INTCNV and the inverse GIVABF plus other useful
> > routines by looking in the "Basic Routines and Entry Points" appendix.
>
> Yup, thanks, I've had a bit more time and from looking at the disassembly in
> 'Unwravelled' I worked out that the argument is passed in FPA0. Then,
> looking at the section on "Floating Point" I found INTCNV and GIVABF.
>
> Thanks for those references though - no doubt they'll come in useful!
>
> It's frustrating because I'm trying to do some fast bit-manipulation in a
> BASIC program, and I turned to ML to speed things up, only to find that
> BASIC has no concept of INTEGERS and passing values to/from ML is rather
> *S*L*O*W* because of the INTCNV/GIVABF routines... :(
>
> Regards,
>
> --
> | Mark McDougall | "Electrical Engineers do it
> | <http://members.iinet.net.au/~msmcdoug> | with less resistance!"
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
***************
Mark
You are correct, most if not all the RSBASIC math is done is floating point.
Yes definitely slow when you are expecting speed. There is a 16x16
unsigned multiply routine at $9FB5 that is entered with the two integers in D
and X and returned with the result in Y and U. But that seems to be all the
integer math that I am able to find.
james
More information about the Coco
mailing list