HI again
I have one question about keyboard programming.
First i have one big problem with bochs.
I send a command to port 0x64- But :
00002380975e[DEV ] write to port 0x0064 with len 2 ignored
00002380977e[DEV ] write to port 0x0064 with len 2 ignored
What does that mean ?
KMT DK
Keyboard driver.
Keyboard driver.
well, what to say, to much to do in too little space.
when it goes up hill, increase work, when it goes straight, test yourself but when going down, slow down.
when it goes up hill, increase work, when it goes straight, test yourself but when going down, slow down.
Re: Keyboard driver.
Appearently you are writing a word (16 bits, 2 bytes) instead of a byte to the port. Real hardware accepts this, more or less, but Bochs doesn't. Try outb instead of outw.kmtdk wrote:00002380975e[DEV ] write to port 0x0064 with len 2 ignored
00002380977e[DEV ] write to port 0x0064 with len 2 ignored
What does that mean ?
JAL
Re: Keyboard driver.
well
fist i program in pure asm
but i have tryed to change from 16 bit to 8 bit , but it is still the same
fist i program in pure asm
but i have tryed to change from 16 bit to 8 bit , but it is still the same
well, what to say, to much to do in too little space.
when it goes up hill, increase work, when it goes straight, test yourself but when going down, slow down.
when it goes up hill, increase work, when it goes straight, test yourself but when going down, slow down.
Re: Keyboard driver.
Hi,
Can we see some exact code, please? You really do seem to be outputtnig a word as jal suggested. This means that you need to change:
(or equivalent) to:
Cheers,
Adam
Can we see some exact code, please? You really do seem to be outputtnig a word as jal suggested. This means that you need to change:
Code: Select all
out dx, axCode: Select all
out dx, alAdam
Re: Keyboard driver.
i have found the error
But now another problem incoundes:
00002380981e[KBD ] unsupported io write to keyboard port 64, value = ed
00002380983e[KBD ] unsupported io write to keyboard port 64, value = 7
those is just to turn all leds on ?
KMT Dk
But now another problem incoundes:
00002380981e[KBD ] unsupported io write to keyboard port 64, value = ed
00002380983e[KBD ] unsupported io write to keyboard port 64, value = 7
those is just to turn all leds on ?
KMT Dk
well, what to say, to much to do in too little space.
when it goes up hill, increase work, when it goes straight, test yourself but when going down, slow down.
when it goes up hill, increase work, when it goes straight, test yourself but when going down, slow down.
Re: Keyboard driver.
Could you share it with us? This might help others that experience a similar problem and find this thread by searching.kmtdk wrote:i have found the error
Those should go to port 0x60, not 0x64, afaik. Dunno whether port 0x64 should also work.But now another problem incoundes:
00002380981e[KBD ] unsupported io write to keyboard port 64, value = ed
00002380983e[KBD ] unsupported io write to keyboard port 64, value = 7
those is just to turn all leds on ?
JAL
Re: Keyboard driver.
yeah:
it was suposed to be send to port 0x60.
Looked at another thread.
KMT Dk
it was suposed to be send to port 0x60.
Looked at another thread.
KMT Dk
well, what to say, to much to do in too little space.
when it goes up hill, increase work, when it goes straight, test yourself but when going down, slow down.
when it goes up hill, increase work, when it goes straight, test yourself but when going down, slow down.

