[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mixing ORCA/M and ORCA/C
gudat@avalon.physik.unizh.ch (gudat henrik) writes:
>Has anyone tried this: I want to call an ASM routine from C, but I need
>to set the A,X,Y registers to a specific value. The assmebly code sets
>the registers to new values and then returns to the C code. How can I
>set the registers with a C statement without asm (if possible) commands?
>And how can I read them?
You would use an asm {....} block in the C program, I think.
I shouldn't be talking because I still don't even have ORCA/C, but I
think that's right.
______________________________________________________________________
|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| Phillip Vandry | Vandry@Cam.Org | Suicide (n.): What to do if Macs |
|________________|________________|_______________take over the world__|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~