A89: Passing paramaters to assembly functions


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

A89: Passing paramaters to assembly functions






I've got another silly question.  I'm trying to write function that takes a 
float as an argument.  I'm using handle 6 to get me to the right area of 
memory where this float is stored.  However handle 6 doesn't point exactly 
to the start of my float. Specifically handle 6 points to 3 bytes ahead of 
my float. I can add 3 bytes to the pointer, but this would mean that my 
pointer points to an odd address, and this of coarse creates a lot of odd 
problems for me.  As a workaround, i'm using ten one byte copies to copy my 
float to an even address.
There has got to be a better way!.  Does anyone know any good ways to get 
floating point parameters passed to ones function.  Specifically why doesn't 
handle 6 actually point to where you want it to?



    Many Thank You's     -Harry

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com