[hatari-devel] Chaos AD demo question

Laurent Sallafranque laurent.sallafranque at free.fr
Mon Feb 14 23:09:07 CET 2011


In the trace, I can read this :

cpu video_cyc= 10168 440@ 19 : 00E032EC 1029 0002                MOVE.B 
(A1, $0002) == $fffffc02,D0 <--here

cpu video_cyc= 10178 450@ 19 : 00E032F0 b1fc 0000 0f96           CMPA.L 
#$00000f96,A0
cpu video_cyc= 10184 456@ 19 : 00E032F6 6600 0622                BNE.W 
#$0622 == $00E0391A (F)
cpu video_cyc= 10190 462@ 19 : 00E032FA 4a38 115a                TST.B 
$0000115a
cpu video_cyc= 10196 468@ 19 : 00E032FE 6664                     BNE.B 
#$00000064 == $00E03364 (F)

cpu video_cyc= 10200 472@ 19 : 00E03300 0c00 00f6                CMP.B 
#$f6,D0<-- and here
cpu video_cyc= 10206 478@ 19 : 00E03304 6406                     BCC.B 
#$00000006 == $00E0330C (F)

It seems to test Status report ($F6).

What is this exactly ?

Laurent


> Hello
>
> from the ikbd's doc :
>
> The special codes 0xF6 through 0xFF are reserved for use as follows:
>     0xF6            status report
>     0xF7            absolute mouse position record
>     0xF8-0xFB       relative mouse position records(lsbs determind by
>                      mouse button states)
>     0xFC            time-of-day
>     0xFD            joystick report (both sticks)
>     0xFE            joystick 0 event
>     0xFF            joystick 1 event
>
> So, this waits for an event on joystick 0
>
> Nicolas
>
>




More information about the hatari-devel mailing list