Re: Detect a C128 from C64 mode

From: Nicolas Welte; address is valid for replies (Re:) only! (welte_spam_at_freenet.de)
Date: 2003-02-16 20:32:47

Ullrich von Bassewitz wrote:
> On Sun, Feb 16, 2003 at 06:20:57PM +0200, Marko Mäkelä wrote:
> 
>>Your idea takes 10 bytes:
>>lda #$fc:sta$d030:eor$d030:beq c128.  
> 
> 
> Changing the current contents of $d030 is not a good idea, so one needs to
> save and restore the old value (+ 6 bytes).

How about using $d02f (?), the extended keyboard register? Shouldn't have any 
negative side effects if you write to it.

Nicolas




       Message was sent through the cbm-hackers mailing list

Archive generated by hypermail 2.1.6.