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

Re: Mixing ORCA/M and ORCA/C



behrenss@Informatik.TU-Muenchen.DE (Soenke Behrens) writes:

>W/o ASM statements, you are stuck, at least as far as setting the regs goes.
>I'd have to check which registers are left alone by the subroutine-caller,,
>anyway. As for returning values of registers: You can do it with either A
>or X/Y (via the return type), I think it's not possible to have A/X/Y.
>Are you sure there is no other way to accomplish what you want? Perhaps a less
>cumbersome interface between your routines would be good? :)

Four byte values are returned in the A/X register pair, not X/Y.

But anyway, passing parameters throughg the registers is not cumbersome:
setting up a stack frame and removing it afterwards is cumbersome.

Any good high level language should be able to pass parms like that (optionally)
 ______________________________________________________________________
|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| Phillip Vandry | Vandry@Cam.Org | Suicide (n.): What to do if Macs   |
|________________|________________|_______________take over the world__|
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~