Re: Detect a C128 from C64 mode

From: MagerValp (MagerValp_at_cling.gu.se)
Date: 2003-02-14 02:24:26

>>>>> "UvB" == Ullrich von Bassewitz <uz@musoftware.de> writes:

UvB> I'm currently wondering if there is a really easy and reliable
UvB> way for a C64 program to detect if it is running on a C128 in C64
UvB> mode. What I've used until now is a subroutine testing for the
UvB> VDC and VDC memory, but the memory footprint of this subroutine
UvB> is too big. I'm thinking of something with less than 20 bytes.
UvB> Does anybody have an idea how to do that?

print peek(53296). I can't test on a real machine right now, but it
works in vice.

-- 
    ___          .     .  .         .       . +  .         .      o   
  _|___|_   +   .  +     .     +         .  Per Olofsson, arkadspelare
    o-o    .      .     .   o         +          MagerValp@cling.gu.se
     -       +            +    .     http://www.cling.gu.se/~cl3polof/

       Message was sent through the cbm-hackers mailing list

Archive generated by hypermail 2.1.6.