Re: Detect a C128 from C64 mode

From: Cameron Kaiser (spectre_at_stockholm.ptloma.edu)
Date: 2003-02-16 17:15:39

> >     lda $d030
> >     cmp #$ff
> >     beq c64
> 
> What if the test mode and the 2 MHz mode are enabled upon executing that
> code?

Store 252 in the register and see if it stays there. If it's a real 64, it
will still read 255; if it's a 128, it will change back.

Easy :-)

-- 
----------------------------- personal page: http://www.armory.com/~spectre/ --
 Cameron Kaiser, Point Loma Nazarene University * ckaiser@stockholm.ptloma.edu
-- Quote for the day: " -------------------------------------------------------

       Message was sent through the cbm-hackers mailing list

Archive generated by hypermail 2.1.6.