From: Jason Robertson (jkr_at_westol.com)
Date: 2003-02-14 02:26:23
On Thu, 13 Feb 2003 23:52:29 +0100, Ullrich von Bassewitz <firstname.lastname@example.org> wrote: >I'm currently wondering if there is a really easy and reliable way for a C64 >program to detect if it is running on a C128 in C64 mode. What I've used until I found this in Article 85 in Cameron's Knowledge Base: ******** C128 running in C64 emulation mode? If the program is in a C128 that is running in C64 mode you can take advantage of the numeric keypad and FAST (2 mhz) processor modes even though your program is a C64 only one. To tell this you can take advantage of the fact that the VIC II chip in the C128 has 2 more registers than the one in the C64. The location 53296 ($d030) will contain 255 ($ff) in a C64 but will contain 252 ($fc) in a C128 that is running in C64 mode. ******** Hope this is helpfull... Jason Message was sent through the cbm-hackers mailing list
Archive generated by hypermail 2.1.6.