[hatari-devel] Little trace question :

Laurent Sallafranque laurent.sallafranque at free.fr
Tue Apr 12 23:14:01 CEST 2011


Here is what I get with video traces too :
(just tell me if this HBL change is normal)

Here is the trace for HBL 262 start :

cpu video_cyc=133064 476 at 261 : $e00d60 : b0b9 0000 
0466                       cmp.l     $466,d0
cpu video_cyc=133076 488 at 261 : $e00d66 : 
67f8                                 beq.s     $e00d60
cpu video_cyc=133080 492 at 261 : $e00d60 : b0b9 0000 
0466                       cmp.l     $466,d0
cpu video_cyc=133092 504 at 261 : $e00d66 : 
67f8                                 beq.s     $e00d60
HBL 261 video_cyc=133096 pending_cyc=0 jitter=4
HBL 262 start=133096 207e8
cpu video_cyc=133096   0 at 262 : $e00d60 : b0b9 0000 
0466                       cmp.l     $466,d0
cpu video_cyc=133108  12 at 262 : $e00d66 : 
67f8                                 beq.s     $e00d60
cpu video_cyc=133112  16 at 262 : $e00d60 : b0b9 0000 
0466                       cmp.l     $466,d0
cpu video_cyc=133124  28 at 262 : $e00d66 : 
67f8                                 beq.s     $e00d60

...

Here is the trace for HBL 263 start :

cpu video_cyc=133460 364 at 262 : $e00d66 : 
67f8                                 beq.s     $e00d60
cpu video_cyc=133464 368 at 262 : $e00d60 : b0b9 0000 
0466                       cmp.l     $466,d0
cpu video_cyc=133476 380 at 262 : $e00d66 : 
67f8                                 beq.s     $e00d60
cpu video_cyc=133480 384 at 262 : $e00d60 : b0b9 0000 
0466                       cmp.l     $466,d0
cpu video_cyc=133492 396 at 262 : $e00d66 : 
67f8                                 beq.s     $e00d60
EndLine TB 262 video_cyc=133496 line_cyc=400 pending_int_cnt=0
cpu video_cyc=133496 400 at 262 : $e00d60 : b0b9 0000 
0466                       cmp.l     $466,d0
cpu video_cyc=133508 412 at 262 : $e00d66 : 
67f8                                 beq.s     $e00d60
cpu video_cyc=133512 416 at 262 : $e00d60 : b0b9 0000 
0466                       cmp.l     $466,d0
cpu video_cyc=133524 428 at 262 : $e00d66 : 
67f8                                 beq.s     $e00d60
cpu video_cyc=133528 432 at 262 : $e00d60 : b0b9 0000 
0466                       cmp.l     $466,d0
cpu video_cyc=133540 444 at 262 : $e00d66 : 
67f8                                 beq.s     $e00d60
cpu video_cyc=133544 448 at 262 : $e00d60 : b0b9 0000 
0466                       cmp.l     $466,d0
cpu video_cyc=133556 460 at 262 : $e00d66 : 
67f8                                 beq.s     $e00d60
cpu video_cyc=133560 464 at 262 : $e00d60 : b0b9 0000 
0466                       cmp.l     $466,d0
cpu video_cyc=133572 476 at 262 : $e00d66 : 
67f8                                 beq.s     $e00d60
cpu video_cyc=133576 480 at 262 : $e00d60 : b0b9 0000 
0466                       cmp.l     $466,d0
cpu video_cyc=133588 492 at 262 : $e00d66 : 
67f8                                 beq.s     $e00d60
cpu video_cyc=133592 496 at 262 : $e00d60 : b0b9 0000 
0466                       cmp.l     $466,d0
HBL 262 video_cyc=133604 pending_cyc=0 jitter=4
cpu video_cyc=133604 133096 at 264 : $e00d66 : 
67f8                                 beq.s     $e00d60
cpu video_cyc=133608 133100 at 264 : $e00d60 : b0b9 0000 
0466                       cmp.l     $466,d0
cpu video_cyc=133620 133112 at 264 : $e00d66 : 
67f8                                 beq.s     $e00d60
cpu video_cyc=133624 133116 at 264 : $e00d60 : b0b9 0000 
0466                       cmp.l     $466,d0
cpu video_cyc=133636 133128 at 264 : $e00d66 : 
67f8                                 beq.s     $e00d60
cpu video_cyc=133640 133132 at 264 : $e00d60 : b0b9 0000 
0466                       cmp.l     $466,d0


Regards,

Laurent


Le 12/04/2011 22:54, Nicolas Pomarède a écrit :
> Le 12/04/2011 22:46, Laurent Sallafranque a écrit :
>> Hi,
>>
>> I've done a trace of Lotus09 game.
>> It loops forverer at startup.
>>
>> I can see a strange trace. (This appears many times, always at same HBL
>> line).
>>
>>
>> I just want to be sure I read correctly the trace:
>>
>> cpu video_cyc=133568 472 at 262 : $e00d60 : b0b9 0000 0466 cmp.l $466,d0
>> cpu video_cyc=133580 484 at 262 : $e00d66 : 67f8 beq.s $e00d60
>> cpu video_cyc=133584 488 at 262 : $e00d60 : b0b9 0000 0466 cmp.l $466,d0
>> cpu video_cyc=133596 500 at 262 : $e00d66 : 67f8 beq.s $e00d60
>> cpu video_cyc=133600 504 at 262 : $e00d60 : b0b9 0000 0466 cmp.l $466,d0
>> cpu video_cyc=133612 133104 at 264 : $e00d66 : 67f8 beq.s $e00d60
>> cpu video_cyc=133616 133108 at 264 : $e00d60 : b0b9 0000 0466 cmp.l $466,d0
>> cpu video_cyc=133628 133120 at 264 : $e00d66 : 67f8 beq.s $e00d60
>> cpu video_cyc=133632 133124 at 264 : $e00d60 : b0b9 0000 0466 cmp.l $466,d0
>>
>>
>> If I understand it well, it means that at video cycle 133600, I'm in HBL
>> 262, my instruction should be 12 cycles.
>> But next instruction is executed (133104 - 504) cycles later ? (2 HBL
>> later ?)
>>
>> If this is true, I think I've got a problem with something like
>> do_specialties.
>> May this be an artefact of video.c (something that happends at HBL 262,
>> cycle 504) ?
>>
>> Regards
>>
>> Laurent
>>
>>
>
> You only included cpu traces, what are the video traces ? Certainly a 
> VBL might add some extra cycles between the 2 instructions.
>
> I think this game is running at 60 Hz, and what you see is due to the 
> VBL starting at hbl 263 and video cycle not yet reset to 0.
>
> There's the same "problem" in 50 Hz on hbl 313 (just run --trace 
> cpu_all while just booting to gem desktop), cycles on the last line 
> are not correct in the trace, but in all cases this never was a 
> problem and should not cause a bug (never see it until there).
>
>
> Your problem might related to sthg else.
> _______________________________________________
> 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