Re: Detect a C128 from C64 mode

From: silverdr_at_wfmh.org.pl
Date: Wed, 22 May 2013 21:53:55 +0200
Message-Id: <DA1EC237-DBDF-480B-BA60-E406E7DDFD36@wfmh.org.pl>
On 2013-05-22, at 21:41, Segher Boessenkool wrote:

> Uh-huh :-)

:-)

> 
> _c64_check:
>   asl $d030
>   ror $d030
>   adc #0
>   rts
> 
> or if you return in C instead of in A:
> 
> _c64_check:
>   asl $d030
>   ror $d030
>   rts
> 
> Unfortunately, I don't think any of these work: they all set
> the test mode bit (bit 1) to 1 (on)?

Hmm.. if bit 2 doesn't hold the value that may well be the case...

-- 
SD!

       Message was sent through the cbm-hackers mailing list
Received on 2013-05-22 20:01:13

Archive generated by hypermail 2.2.0.