Commodore 128 Alive!

Commodore 128 => 128 programmers => Topic started by: MIRKOSOFT on December 05, 2009, 07:14 PM

Title: RUN/STOP and RESTORE and SHIFT LOCK keycodes
Post by: MIRKOSOFT on December 05, 2009, 07:14 PM
Hi!

I have simple Q:

Which keycode has RUN/STOP key, RESTORE key, and its combination STOP+RESTORE?

Also SHIFT LOCK key is for me important.

Or how to detect that one of them was pressed...

Important is for me C128 mode, but C64 mode can be the same, or if not also C64 mode.

Thanks for every reply.

Miro
Title: Re: RUN/STOP and RESTORE and SHIFT LOCK keycodes
Post by: MIRKOSOFT on December 05, 2009, 07:49 PM
I know that... some keys are without keycode and I found procedure to recognize them - e.g. CAPS LOCK (ASCII/DIN) or 40/80 key...

So, I think there must be a way to recognize every keys. Maybe someone knows the solution.
If it could be easy, I didn't to give the Q to Forum...
Longer time ago I had these answers on keys which I said that it can be recognized... answers were "that's impossible..." etc.
But impossible is everything when nobody wants to find solution.
I'm type of man who don't want loose any fight without full strenght....

If is possible recognizing also LEFT or RIGHT SHIFT key...
...so I believe that must exist any flag which indicates that it's SHIFT LOCK...

Thanks for every help

Miro
Title: Re: RUN/STOP and RESTORE and SHIFT LOCK keycodes
Post by: SmallCleverDinosaur on December 06, 2009, 08:20 PM
Every key on the C128 keyboard can be read. Have a look at addresses 211 and 212 in "Mapping the C128". I beleive you already have the PDF of that book ;)

"Normal" keys are stored in address 212 and special keys like Shift, Control etc are stored in address 213. Also take a look at pages 642-644, there you can see an image of the keyboard and all the codes that are generated. On page 644 you can read about how the Restore key and the 40/80 key are scanned.

It also says, "The SHFIT LOCK key is not scanned; it's merely a switch that has the effect of holding down the SHIFT key". So SHIFT LOCK can not be detected. I beleive many people have tried to find a solution to that problem, but I think we have to deem it impossible :)
EhPortal 1.34 © 2025, WebDev