Hi all,
for physw_status[2] I could print out the following values in function my_kbd_read_keys() (line 192 in attached kbd.c):
// 10cfff "no key is pressed"
// 10cfbf DISPLAY key is pressed
// 10cffd SET key is pressed
// 10cfbd SET + DISPLAY keys are pressed at the same time
This means that mykbd_task is really running and analyzing the key presses.
DISPLAY key was not available from entry_stubs.S and was configured with 0x800. But it seems that it has value 0x40 (0x10cfff[no key pressed] - 0x10cfbf [DISPLAY key pressed] = 0x40).
SET key has value 0x02.
Both keys pressed together should activate the ALT menu.
Therefore the answer is 0x42. I assume that in "The Hitchhiker's Guide to the Galaxy" the answer also was in hex value?
I changed values for ALT_mode_key_mask and KEY_PRINT to 0x42 (like it is now in attached kbd.c).
When I press the SET key a second time after pressing together with DISPLAY key I only see:
// 10cfff when SET key is pressed, means the value is not changing!?
It is somehow ignoring further presses of SET key after I have pressed SET key once together with DISPLAY key.
DISPLAY key is still executed. If I press DISPLAY key I still see value 0x10cfbf.
No ALT mode available for now.
btw:
I had to change in platform/kbd.c:
from: _SleepTask(*((int*)(0x1c40+0x8)));//10);
to: _SleepTask(*((int*)(0x1c3C+0x8)));//10);
I'm not sure why they do it that way. This works too : _SleepTask(10) ;
In the meantime I tried this as well and I can confirm, the _SleepTask(10) variant works as well.