[hatari-devel] Chaos AD demo question

Nicolas Pomarède npomarede at corp.free.fr
Tue Feb 15 23:26:23 CET 2011


Le 14/02/2011 23:15, Laurent Sallafranque a écrit :
> 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
>

This is different from the first trace you sent ; here you're in the 
ROM, not in the demo code.

This code in the ROM is a complete ikbd handler, so it tests all 
possible special key codes. This code is certainly correct, as I don't 
think we have any known problem with tos 4 and ikbd.

The demo was running at 02e6f0, not at $Exxxxx. I don't think the above 
code is related to your problem.

Nicolas



More information about the hatari-devel mailing list