Board index » off-topic » Re: Trying to include 32-bit commands in a 16-bit program ...
Re: Trying to include 32-bit commands in a 16-bit program ...
2007-05-25 08:51:47 PM
Vladimir Grigoriev < XXXX@XXXXX.COM >schreef in berichtnieuws
4655b95a$ XXXX@XXXXX.COM ...
<snip explanation about argument-push order>
I know. But that part isn't the problem. What *is* is that when I display,
in the funtion, the arguments in the order I have declared them it does not
match with either of them.
What I do when calling :
call MyFunc Data1,Data2,Data3,Data4,Data5,Data6,Data7,Data8
How I defined the arguments in MyFunc :
arg Arg1, Arg2
What I see when I display Arg1 thru Arg8 :
Data8, Data7, Data4, Data5, Data6, Data1, Data2, Data3
In short : Using multiple lines of "arg" statements changes the order in
which the arguments are stored into the local variables (same for both Tasm
v1.1 and v4.1)