Commodore 128 Alive!

Commodore 128 => 128 programmers => Topic started by: MIRKOSOFT on December 21, 2009, 08:27 AM

Title: PC keys on C128
Post by: MIRKOSOFT on December 21, 2009, 08:27 AM
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
Title: Re: PC keys on C128
Post by: MIRKOSOFT on December 22, 2009, 08:12 AM
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)
Title: Re: PC keys on C128
Post by: MIRKOSOFT on December 22, 2009, 04:56 PM
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.
Title: Re: PC keys on C128
Post by: Hydrophilic on December 24, 2009, 03:31 PM
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?
Title: Re: PC keys on C128
Post by: MIRKOSOFT on December 27, 2009, 07:43 AM
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
EhPortal 1.34 © 2025, WebDev