[Coco] DECB USRn function?

Mark McDougall msmcdoug at iinet.net.au
Mon Jul 24 08:54:52 EDT 2006


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!"



More information about the Coco mailing list