From: "Segher Boessenkool"; on Thursday, May 23, 2013; at 3:02 PM -0400 > >>> Or, if you return in the carry flag instead of in .A: > > [This is not what I wrote; please don't edit quotes]. I am like a newspaper; I always edit to improve clarity. > >>> >>> _c64_check: >>> asl $d030 >>> ror $d030 >>> rts >> >> I was thinking of a C-callable library function: > > Is there a standard C ABI for 6502? I have never seen one, do > you have a link perhaps? In this case, I meant that I never have heard of any C ABI that uses a status register to return the result of an expression. Instead, they put some value into a data register. Silverdr did that in his code; so, I assumed that it is what he wanted. Message was sent through the cbm-hackers mailing listReceived on 2013-05-24 19:01:35
Archive generated by hypermail 2.2.0.