RE: Detect a C128 from C64 mode

From: Bil Herd <bherd_at_mercury-cg.com>
Date: Wed, 22 May 2013 17:31:38 -0400
Message-ID: <f33cf1335f4e922e18a8055c3ac5a479@mail.gmail.com>
If ((square_area_PCB >= 1.2 hectares) or (weight >= 5*C64 power_supply))
and ((noise >= 90db) then barndoor == C128D; Else barndoor== C128)
	Else barndoor == False.  # Computer is C64


I remember the moment that I didn't make that register go away in C64 mode
and would do it different knowing what I now know, I was just worried that
we would hit some weird combination of reset/power where we couldn't get
the register to come back in 128 mode (in the time before CES).

-----Original Message-----
From: owner-cbm-hackers@musoftware.de
[mailto:owner-cbm-hackers@musoftware.de] On Behalf Of silverdr@wfmh.org.pl
Sent: Wednesday, May 22, 2013 3:54 PM
To: cbm-hackers@musoftware.de
Subject: Re: Detect a C128 from C64 mode


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

       Message was sent through the cbm-hackers mailing list
Received on 2013-05-22 22:00:04

Archive generated by hypermail 2.2.0.