Search site Dead Hackers Society
Other BBSes »
 
 

Silly Venture 2019

Sommarhack 2019
Demoscene   º   Coding   º   CT60   º   Buy/sell   º   Misc/crap   º   Alive magazine   º   SNDH/Tracking

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]

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


Message board and comments are now read-only

Due to abuse of the message boards we have put the entire site in read-only mode. That means you can't post new threads or reply to old messages and you can't add comments in VideoDB and PicDB.

Some messages have been erased from reading, but are stored in case they need to surface again.

After 17 years and 45000 messages we're shutting down due to one person.




© 1994-2019 Dead Hackers Society Contact: Anders Eriksson