[Coco] DECB USRn function?
Arthur Flexser
flexser at fiu.edu
Mon Jul 24 16:36:41 EDT 2006
I think the fastest way would be to avoid using USR and just poke the values
(using however many bytes it takes to accommodate the size of integer you're
dealing with, after converting to MSB, LSB, etc.) into locations for the ML to
pick up.
Art
On Mon, 24 Jul 2006, 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
>
More information about the Coco
mailing list