Re: [hatari-devel] IKBD regression with EmuTOS |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] IKBD regression with EmuTOS
- From: Vincent Rivière <vincent.riviere@xxxxxxxxxxx>
- Date: Sun, 10 Feb 2013 19:29:57 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=61SpP2BXjdgZQcj47DFdOfvrOGUs6Pk7n/Xj5g7ksAk=; b=WgWAuG2937uqZqo/CqsOA/8HVyHx+dQBqojvzZVy9Ij1HsvoMlkxOK1XY39nTE4w93 NToSBkJ5e048BK6zCPNwa0hgucRKMGovNm+fZThIuNSBIPVrGH6pZaShIErdc4dgsaDe AS/+plT88iV9IAyP63iDpHJev0MWb13JgI3DTdt1qGH5Xl16sjVct/s74piUBYUiv+62 Ee+Upzjoc9YxSm1RUSvQkcqCro4nveLI4dv/qKOiX4lyIJD1kMj/vI2rM9W7O6f2LS7x 62OQRcr520utEChHOdvLd8Vj2slpfAm/g0XcbkQMSNEmyMqMD1YiyqJdwLSfbaXkJTKR yViA==
On 10/02/2013 18:08, Nicolas Pomarède wrote:
looking at the reset sequence,
Thanks for your analysis, Nicolas.
The main oddity is that EmuTOS works fine on real hardware (STe and Falcon),
while it doesn't in the latest Hatari. So I suspect an inconsistency in Hatari.
Also, on Hatari, I don't understand why it works fine after Reset, since the
EmuTOS initialization code is the same.
It then sends the following bytes to the ikbd : $80, $01, $1a, $12.
This resets the keyboard
Yes.
and sends $1a and $12 *during* the reset,
Do you mean that we send $1a and $12 too early after the reset?
Do we have to wait a bit?
which put the ikbd in a mode where it reports both mouse and joystick. Is
this really intended ?
Yes, we expect to receive mouse and joystick packets.
But the main problem could be that after the ikbd reset, you will receive a
byte $f1
Really? I don't see that in "Le livre du développeur".
Can you describe what emutos is supposed to do to handle this $f1 byte ?
Currently, AFAIK EmuTOS does not expect that $f1 byte.
When comparing with tos 1.04 for example, it sends only $80 and $01 and read
$fffc02 to clean the RDRF bit.
Ok, EmuTOS will need fixing if $80 $01 really answers with $f1.
But that does not explain why it works fine on real hardware.
--
Vincent Rivière