[hatari-devel] Chaos AD demo question
Laurent Sallafranque
laurent.sallafranque at free.fr
Mon Feb 14 23:15:11 CET 2011
Later, I can read :
cpu video_cyc= 63032 56 at 123 : 00E032EC 1029 0002 MOVE.B
(A1, $0002) == $fffffc02,D0<---- here
cpu video_cyc= 63042 66 at 123 : 00E032F0 b1fc 0000 0f96 CMPA.L
#$00000f96,A0
cpu video_cyc= 63048 72 at 123 : 00E032F6 6600 0622 BNE.W
#$0622 == $00E0391A (F)
cpu video_cyc= 63054 78 at 123 : 00E032FA 4a38 115a TST.B
$0000115a
cpu video_cyc= 63060 84 at 123 : 00E032FE 6664 BNE.B
#$00000064 == $00E03364 (F)
cpu video_cyc= 63064 88 at 123 : 00E03300 0c00 00f6 CMP.B
#$f6,D0 <---- here
cpu video_cyc= 63070 94 at 123 : 00E03304 6406 BCC.B
#$00000006 == $00E0330C (T) <---- here
cpu video_cyc= 63076 100 at 123 : 00E0330C 0400 00f6 SUB.B
#$f6,D0
cpu video_cyc= 63082 106 at 123 : 00E03310 0280 0000 00ff AND.L
#$000000ff,D0
cpu video_cyc= 63088 112 at 123 : 00E03316 47f9 00e0 3350 LEA.L
$00e03350,A3
cpu video_cyc= 63094 118 at 123 : 00E0331C 11f3 0000 115a MOVE.B
(A3, D0.W*1, $00) == $00e03359,$0000115a
cpu video_cyc= 63104 128 at 123 : 00E03322 47f9 00e0 335a LEA.L
$00e0335a,A3
cpu video_cyc= 63110 134 at 123 : 00E03328 11f3 0000 115b MOVE.B
(A3, D0.W*1, $00) == $00e03363,$0000115b
cpu video_cyc= 63120 144 at 123 : 00E0332E 0640 00f6 ADD.W
#$00f6,D0
cpu video_cyc= 63124 148 at 123 : 00E03332 0c00 00f8 CMP.B
#$f8,D0 <---- here ...
cpu video_cyc= 63130 154 at 123 : 00E03336 6d0c BLT.B
#$0000000c == $00E03344 (F)
cpu video_cyc= 63134 158 at 123 : 00E03338 0c00 00fb CMP.B
#$fb,D0
cpu video_cyc= 63140 164 at 123 : 00E0333C 6e06 BGT.B
#$00000006 == $00E03344 (T)
cpu video_cyc= 63146 170 at 123 : 00E03344 0c00 00fd CMP.B
#$fd,D0
cpu video_cyc= 63152 176 at 123 : 00E03348 6d04 BLT.B
#$00000004 == $00E0334E (F)
cpu video_cyc= 63156 180 at 123 : 00E0334A 11c0 1173 MOVE.B
D0,$00001173
cpu video_cyc= 63162 186 at 123 : 00E0334E 4e75 RTS.L
There are lot of tests with D0 ($F8 (mouse), $FB(mouse), $FD(Joystick)).
Is this correct ?
Doesn't this code use the Acia 6802 ?
Laurent
Le 14/02/2011 23:09, Laurent Sallafranque a écrit :
> 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
>>
>>
>
> _______________________________________________
> hatari-devel mailing list
> hatari-devel at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/hatari-devel
>
>
More information about the hatari-devel
mailing list