flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > Setting keyboard scan code set |
Author |
|
egos 28 Jul 2009, 15:22
Simply try to clear the translation bit in the command byte (byte 0 in controller RAM):
Code: call keyb.wait_for_empty jnz @f mov al,0F0h out 60h,al call keyb.wait_for_empty jnz @f mov al,02h out 60h,al call keyb.wait_for_empty jnz @f mov al,60h ; "write to command byte" command out 64h,al call keyb.wait_for_empty jnz @f mov al,00100001b ; translation bit (bit 6) is clear out 60h,al call keyb.wait_for_empty jnz @f Edited: "set/get scancode set" (0F0h) is a keyboard command, not a controller one |
|||
28 Jul 2009, 15:22 |
|
cod3b453 30 Jul 2009, 01:27
Thank you for taking a look; I gave this code a very quick try but it still didn't seem to work. I'll give it another go tomorrow when I have more time.
I don't have much info on the 804x, so I'm not sure what the translate bit actually does |
|||
30 Jul 2009, 01:27 |
|
egos 30 Jul 2009, 09:16
Take attention on my last note. It will solve the problem described by you.
|
|||
30 Jul 2009, 09:16 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.