|
Atari coding BBS
Re: ACIA mouse question |
Posted by: Thadoss
|
Dec,05.2015-12:19
|
Hi,
I've traced the IKBD rout I've included in my previous message.
I've put traces for all components and I get strange result.
I've moved the mouse very slowly not to have >127 or <128 values on both X and Y axes.
I've done the trace under hatari and I have no joystick configured and I don't press any key.
As you can see, I get some unwanted "ghost" keyboard or "joystick" packets.
Any idea where they come from ?
For the "multi packets" if a X value is >127, I think the ACIA sends sequences like this : $F8,$7f,$0, $f8,$5,$0 ... So this shouldn't be a problem (I'll verify this).
B00f8 IKBD_Main
0001 IKBD_Mouse_X
0000 IKBD_Mouse_Y
00f8 IKBD_Main
0001 IKBD_Mouse_X
0000 IKBD_Mouse_Y
0001 IKBD_Main
0001 IKBD_Keyboard
00ff IKBD_Main
00f8 IKBD_Joystick1
0001 IKBD_Main
0001 IKBD_Keyboard
0000 IKBD_Main
0000 IKBD_Keyboard
00f8 IKBD_Main
0000 IKBD_Mouse_X
00f8 IKBD_Mouse_Y
0000 IKBD_Main
0000 IKBD_Keyboard
00ff IKBD_Main
00f8 IKBD_Joystick1
0002 IKBD_Main
0002 IKBD_Keyboard
0000 IKBD_Main
0000 IKBD_Keyboard
00f8 IKBD_Main
0001 IKBD_Mouse_X
0000 IKBD_Mouse_Y
00f8 IKBD_Main
0001 IKBD_Mouse_X
0000 IKBD_Mouse_Y
00f8 IKBD_Main
0000 IKBD_Mouse_X
00ff IKBD_Mouse_Y
00f8 IKBD_Main
0001 IKBD_Mouse_X
0000 IKBD_Mouse_Y
00f8 IKBD_Main
0001 IKBD_Mouse_X
0000 IKBD_Mouse_Y
Another try (I've moved the mouse quickly on the left / right).
Here, the "IKBD_Keyboard" value is higher ($3e) (and it looks like a mouse_X value)
It looks as if in the second mouse detection, the $f8 of the next mouse command is into the mouse_y one and everything is moved by one byte.
It seems OK again after the 2 wrong keyboard commands.
Any idea ?
00f8 IKBD_Main
003d IKBD_Mouse_X
0008 IKBD_Mouse_Y
00f8 IKBD_Main
0073 IKBD_Mouse_X
00f8 IKBD_Mouse_Y
003e IKBD_Main
003e IKBD_Keyboard
0002 IKBD_Main
0002 IKBD_Keyboard
00f8 IKBD_Main
0068 IKBD_Mouse_X
0001 IKBD_Mouse_Y
00f8 IKBD_Main
0037 IKBD_Mouse_X
00f9 IKBD_Mouse_Y
|
[All messages in this thread] [Start new thread]
Topic
|
Posted by
|
Date
|
ACIA mouse question
|
Thadoss
|
Dec,03.2015-18:06
|
Re: ACIA mouse question
|
dml
|
Dec,03.2015-21:15
|
Re: ACIA mouse question
|
Thadoss
|
Dec,03.2015-21:28
|
Re: ACIA mouse question
|
ggn
|
Dec,04.2015-10:08
|
Re: ACIA mouse question
|
Thadoss
|
Dec,04.2015-11:21
|
Re: ACIA mouse question
|
Thadoss
|
Dec,04.2015-11:33
|
Re: ACIA mouse question
|
ggn
|
Dec,04.2015-12:09
|
Re: ACIA mouse question
|
defjam
|
Dec,04.2015-22:21
|
Re: ACIA mouse question
|
Thadoss
|
Dec,05.2015-00:06
|
Re: ACIA mouse question
|
Thadoss
|
Dec,05.2015-12:19
|
Re: ACIA mouse question
|
dml
|
Dec,05.2015-15:57
|
Re: ACIA mouse question
|
dml
|
Dec,05.2015-16:03
|
What's the anti-troll code? That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
|