How to change the key map

 

 

 

 

1) Launch SWITCH.X and set the value of “FIRST_KY” to 15 (1700 ms).

config_s1

To exit SWITCH.X, select “[Y] register and exit” and exit.
When you finish SWITCH.X, do not press the F1 key until there is an instruction thereafter.

2. Restart the X68000 after SWITCH.X is finished
(Push reset button or press [CTRL] + [OPT.1] + [DEL] key)

3. When the X68000 restarts, launch the editor. Anything is OK for the editor. On this page ED.X attached to Human68k system disk is used as an editor.

4. When the editor starts up, press the F1 key. When the prompt is output to the editor as shown below, the adapter is in config-mode.

config_s2

5. The following four commands can be used in config-mode

e Edit Change the setting
c Clear Initialize the settings
d Dump Dump the settings
q Quit Exit config-mode

 

【Edit】

Enter “e” at the config-mode prompt to switch to Edit mode. (The display of prompt changes to colon)

config_s3

When the Edit prompt appears, enter the setting with 4 hexadecimal digits. The first two digits are the EEPROM address, and the second two digits are the set value.

In this case, “Scan code of PS/2 keyboard = EEPROM address” and “X68000 keyboard key code = set value”.

config_s4_

For example, the setting “1602” on the first line of the input example in the above figure means “If you press Full key 1 (ScanCode 0x16) of the PS/2 keyboard, 0x02 (full key 1) is returned to X68000”.
Similarly, “de54” in the second line of the input example means “If you press the ACPI WakeUp key (ScanCode 0xde) on the PS/2 keyboard, 0x54 (HELP) is returned to X68000”.

To customize the key mapping, change the setting to the pinpoint only for the key you wish to change from the default keymap. If you want to restore the change, change the setting value to 0x00 or clear all the settings with the Clear command described later.

If you press the Enter key without entering anything while the Edit prompt is displayed, you exit Edit mode and return to the config prompt.

 

【Dump】

config_s5

 

【Clear】

config_s6

 

【Quit】

Exit config-mode.

config_s7

After exiting the config-mode, close the editor and then restart X68000 after returning to SWITCH.X based on the value of FIRST_KY (other than 15: 1700 ms).

 

PS/2 Keyboard Scancode
more..

JP109_SCANCODE

The key code of the PS/2 keyboard is divided into the following three patterns (Codeset 2)

  1. Normal key is represented by 1Byte1
  2. Starting from 0xE0 extended key2
  3. Specific key other than the above

With this adapter, the key code of expansion key (b) is located 0x80 ~. (Example: Return key code of {E0, 11} Right Alt is located at {91} )

The key code for this adapter with the specific key corresponding to (c) is as follows.

F7 key → 0x83
Print Screen key → 0xFC
Pause key → 0xFE

Please refer to when assigning key code of X68000 keyboard to special key such as multimedia key etc.

For example, if you want to assign HELP(0x54) to a special key that returns {0xE0, 0x0a} when you press a key, enter “8a54” in the config-mode edit.

 

X68000 Keyboard Scancode

X68KBD_FULL_CODE_SHARP

  1. For example, space-bar returns {29} in the maked, returns the {F0, 29} in the break []
  2. For example, the right Alt returns {E0, 11} in the maked, returns the {E0, F0, 11} in the break []