[hatari-devel] Chaos AD demo question

Nicolas Pomarède npomarede at corp.free.fr
Mon Feb 14 22:22:28 CET 2011


Le 14/02/2011 22:12, Laurent Sallafranque a écrit :
> Hi,
>
> Chaos AD freezes after the floppy disk picture displays.
>
> Code runs here :
>
> $02e6f0 : 0c38 00fe fc02 cmpi.b #$fe,$fffffc02.w
> $02e6f6 : 66f8 bne.s $2e6f0
>
>
> What is this supposed to do ? (I mean the $fe value for key register).
> Does it wait a certain key ?
>
> Regards
>
> 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