[Coco] Microware C compiler #asm question
Joel Rees
joel.rees at gmail.com
Wed Mar 31 12:08:50 EDT 2021
I believe I have some code you could refer to.
Public repository here:
https://en.osdn.net/users/reiisi/pf/CoCoOS9Reversi/scm/tree/master/
Parameters should follow in order after 4,S. Below, t would be 4,S, sx
would be 6,S, sy would be 8,S, IIRC.
Anyway, download the source I gave the link for and unpack it, and look at
how I access stuff in it. I think it'll show you enough.
2021年3月31日(水) 11:43 Bill Nobel <b_nobel at hotmail.coy 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
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco
>
More information about the Coco
mailing list