PC keys on C128

Started by MIRKOSOFT, December 21, 2009, 08:27 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MIRKOSOFT

Hi!

I programmed little utility.

There are used arrow keys so:

ARROW UP: Page Up (moves cursor from its position to top line with column where was)
ARROW DOWN: Page Down (moves cursor from its position to bottom line with column where was)
ARROW LEFT: Home (moves cursor to first letter on line)
ARROW RIGHT: End (moves cursor to last letter on line)

and... also CAPS LOCK - if you have national keyboard and want to use CAPS LOCK, no ASCII/DIN (ASCII/CC), it is supported.

In attachment is souce code, picture and PRG file to load at $1300 - so utility starts SYSDEC("1300"). It's IRQ scanning these keys.

Try it if you want.

Miro
MIRKOSOFT of megabytes

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

http://www.mirkosoft.sk

MIRKOSOFT

#1
Hi!

Here's updated code.

NEW:
- in 80 columns mode works as real Commodore keys
- in 40 columns works as PC keys
- CAPS LOCK (ASCII/DIN - ASCII/CC) works in both modes as CAPS LOCK
- added LINE FEED = delete current line (cursor stays on its position)
MIRKOSOFT of megabytes

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

http://www.mirkosoft.sk

MIRKOSOFT

Hi!

Here's 'think final version of this utility.

I forgot to write that LINE FEED works also in 40 columns mode.
What's added?

One key which has no function in standard mode of C128 is ALT.
So, with this key you can disable all programmed functions and return to OLDIRQ.
Works in both modes.
MIRKOSOFT of megabytes

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

http://www.mirkosoft.sk

Hydrophilic

Thanks for sharing!  I like using the 4 arrow keys for cursor position but with this program you must 2 CRSR keys + SHIFT.  I hate that!  It is like using, um what you call it, C64?

Since you were nice enough to give the source code, I guess I could rewrite the key assignments.

To my suprise, you did not use the neat SHIFT LOCK detection to change SHIFT LOCK into CAPS LOCK (then people could still use ASCII/DIN key).  Maybe that is your next great software?
I'm kupo for kupo nuts!

MIRKOSOFT

Ok,
I didn't wanted to change you type using cursor keys...
But, I had long time only C64 (lot of years) and C128 I have only one year, so, I'm using two CRSR keys accustomed...
For this are the ARROW keys not so using like CRSR keys...
With SHIFT LOCK you have true - why changing ASCII/DIN and disabling its real function.
I didn't wanted to show like I am "great" - I'm sharing this utility only that I found what can be for anybody usable...
I'm from Slovakia and have German C128DCR - so, for me is using ASCII/DIN irelevant.
At keyboard I change ARROW keys from PC keyboard PgUp, PgDn, Home, End and for me it is more comfortable.
I change standard ALT key function to disable utility, like I wrote ASCII/DIN is for me not usable as is.
But the SHIFT LOCK interrest me - it's good idea.


Thank you
MIRKOSOFT of megabytes

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

http://www.mirkosoft.sk