RUN/STOP and RESTORE and SHIFT LOCK keycodes

Started by MIRKOSOFT, December 05, 2009, 07:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MIRKOSOFT

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
MIRKOSOFT of megabytes

Commodore 64 was great, Commodore 128 is bigger, better, faster and more!!!

http://www.mirkosoft.sk

MIRKOSOFT

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
MIRKOSOFT of megabytes

Commodore 64 was great, Commodore 128 is bigger, better, faster and more!!!

http://www.mirkosoft.sk

SmallCleverDinosaur

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 :)
Ignorance is a precious thing. Once lost, it can never be regained.