i have setup multitasking successfully (i think)..
there is task switching every 1/18th of a second..
but when i type anything i get a scan code of -64 during key released why is it ??
multitasking prob
Re: multitasking prob
Hi,
Remember that the keyboard scancodes are unsigned, making that code 0xC0 - the top bit is a release bit, making the actual keypress 0x40 (which translates to F6 on my key map).
Are you pressing F6 as the first key and have you declared all appropriate keyboard variables volatile?
Cheers,
Adam
Remember that the keyboard scancodes are unsigned, making that code 0xC0 - the top bit is a release bit, making the actual keypress 0x40 (which translates to F6 on my key map).
Are you pressing F6 as the first key and have you declared all appropriate keyboard variables volatile?
Cheers,
Adam
Re: multitasking prob
No.. i do not pres F6..AJ wrote:
Are you pressing F6 as the first key and have you declared all appropriate keyboard variables volatile?
only when i create thread i get this problem..
otherwise the keyboard driver works fine..
and after i press each key i get a scan code of -64...
not when i hold a key..
and this is not the release code as i have handled it..
-
pcmattman
- Member

- Posts: 2566
- Joined: Sun Jan 14, 2007 9:15 pm
- Libera.chat IRC: miselin
- Location: Sydney, Australia (I come from a land down under!)
- Contact:
Re: multitasking prob
Umm...
So you are getting F6 scancodes if AJ is correct.
EDIT: 0xC0 in an unsigned environment, anyway. Don't use signed integers
-64d == 0xC0.and after i press each key i get a scan code of -64...
So you are getting F6 scancodes if AJ is correct.
EDIT: 0xC0 in an unsigned environment, anyway. Don't use signed integers
