Re: Detect a C128 from C64 mode

From: Raymond C. Bryan (raycomp_at_visi.com)
Date: 2003-02-14 05:57:31

>  >>>>> "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.


I have both my C128's running Pocket Planner to do my taxes now, so I 
am unable to check this for you.
--Ray

-- 
---------------------------------------------------------------
|Raymond C. Bryan  651-642-9890 vox      | The battle is sometimes |
|Raymond Computer  651-642-9891 fax      | to the small for 
|             
|795 Raymond Ave   -email:  raycomp      | the bigger they are     |
|St Paul MN  55114    @visi.com          | the harder they fall.   |
|USA              Amiga - Commodore      |     -- James Thurber -- |
http://www.raymondcomputer.com
---------------------------------------------------------------

       Message was sent through the cbm-hackers mailing list

Archive generated by hypermail 2.1.6.