Re: A92: Re: Quitting ASM or not -- please answer these q


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

Re: A92: Re: Quitting ASM or not -- please answer these q




>okay so whenever the call DOES NOT SHOW the arguments in the .h or .htm
files
>or whatever, then it means that you use the stack to pass info to them?


When the function prototype shows arguments in its parenthesis, like this:

void util::DrawCharXY(BYTE ch,WORD x,WORD y,WORD color)

it implies that you are to push them on the stack (in reverse order of
course).  If the arguments are to be in regesters, the docs will explicitly
say so.  Take a look at hufflib.htm for example of args in registers:

void hufflib::extract() *
Extracts Huffman compressed data.
Input: A0.L = Pointer to Huffman compressed data
A1.L = Pointer to memory where uncompressed data should be stored
D3.W = File number to extract (not necessary if not multifile)

The arguments go in a0, a1 and d3, and nothing needs to be pushed on the
stack.

-Don
----
Donald R Barnes
    don.barnes@wmich.edu
    http://www.geocities.com/SiliconValley/Park/1809/


Follow-Ups: