[Coco] Microware C compiler #asm question

Bill Nobel b_nobel at hotmail.com
Tue Mar 30 22:42:35 EDT 2021


Hey all, I have a question about the Microware C compiler.   When I use #asm/#endasm in a function in the following way:

...
test(t, sx, sy)
struct TILE *t;
int sx, sy;
{
#asm

    lda    #...
.....

#endasm
}

What is the register layout for entry and how do I get to the parameters.  I can’t seem to remember right. I know Y is data register and 4,s is the pointer/value to the first argument. What’s the rest?

Bill
Sent from my iPad


More information about the Coco mailing list