Re: Detect a C128 from C64 mode

From: silverdr_at_wfmh.org.pl
Date: Sat, 25 May 2013 11:24:41 +0200
Message-Id: <574786FF-3D38-4A08-9B12-2161D5B20426@wfmh.org.pl>
On 2013-05-24, at 18:42, Greg King wrote:

>>>> 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.

Yeah - like my "does - does", which I noticed only when my post returned to me via list...

>>>> _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.

Assumption correct.
-- 
SD!
       Message was sent through the cbm-hackers mailing list
Received on 2013-05-25 10:01:03

Archive generated by hypermail 2.2.0.