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

Re: cc65 / ca65: how to interface C and assembly?



Linards Ticmanis wrote:
Michael J. Mahon wrote:

Thanks. I was indeed thinking that every store instruction causes two accesses. If not, the solution I gave above seems to be ideal, provided you use an absolute address, not some expression that has to be calculated at runtime (which will compile into an y-indexed indirect store).


...which is exactly the problem with slot-relative addresses.


It is. But then, the only real "toggle" switches, where the same address switches both ways, are the speaker and cassette outputs, I think. Or are there any more?

(I removed the non-apple groups from this one)

(Good idea.)

There are lots of slot card addresses that have side effects that
could be messed up by multiple accesses.  Reading status registers
comes to mind as a popular one.

-michael

Music synthesis for 8-bit Apple II's!
Home page:  http://members.aol.com/MJMahon/

"The wastebasket is our most important design
tool--and it is seriously underused."