Commodore 128 Alive!

Commodore 128 => 128 programmers => Topic started by: MIRKOSOFT on June 18, 2009, 12:15 AM

Title: Recognize between C128/C128D/C128CR/C128DCR...
Post by: MIRKOSOFT on June 18, 2009, 12:15 AM
Hi!

On C64 I could with PEEK(65408) check version of Commodore 64 (C64-I/C64C/C64G/SX-64).
Is in Commodore 128 possible to recognize C128, C128D, C128CR, C128DCR?
Thanks for reply.

Miro
Title: Re: Recognize between C128/C128D/C128CR/C128DCR...
Post by: Alex on June 19, 2009, 07:59 AM
I don't think you can do exectly the same for C128 makes. You can check Kernel version and Monitor revision but it will tell you only if it predates '86 - you can check also MMU rev but I believe there is only one rev anyway.

Another thing is to check for VDC memory size but it can be extended so again it's not a proof that can be used for identification. Take a look at SYSTEM INFO programs from this archive: http://folkvagn.commodore64.org/Disketter/Egna_program_och_projekt/c128_prg.zip (http://folkvagn.commodore64.org/Disketter/Egna_program_och_projekt/c128_prg.zip) - might have some tips for solving your problems.
Title: Re: Thanks, very helpful
Post by: MIRKOSOFT on June 20, 2009, 07:17 AM
I found there recognizing more than I wanted, st. maybe not, but it was very helpful.
My last Q is: CAN I SWITCH CHARACTER SET WITHOUT PRESSING ASCII/DIN?
Maybe will be helpful if Caps Lock on International machines can be activated without pressing it...
Very, very thanks.

Miro
Title: Re: Recognize between C128/C128D/C128CR/C128DCR...
Post by: Alex on June 22, 2009, 05:21 AM
Never thought about it but as long as it's not directly connected to any line the answer should be: yes. Anyway you can always copy character set to memory and use it for own purposes I guess. Checkout C128 mapping book - there must be an info about it in it.
Title: ASCII/DIN (Caps Lock) without pressing it!
Post by: MIRKOSOFT on June 27, 2009, 07:31 AM
Hi!

Using function of Caps Lock or called ASCII/DIN:
poke0,peek(0)or64:poke1,peek(1)and191 = national font/Caps Lock ON
poke0,peek(0)and191:poke1,peek(1)or64 = standard font/Caps Lock OFF

Miro
EhPortal 1.34 © 2025, WebDev