[hatari-devel] Mahabharata demo problem ?

Eero Tamminen oak at helsinkinet.fi
Thu Jan 27 22:16:32 CET 2011


Hi,

On lauantai 15 tammikuu 2011, Eero Tamminen wrote:
> Whenever the window goes too wide, I see:
>   $ff8266 = $400
> 2. CPU breakpoint condition(s) matched 1 times.
> WARNING: too large screen size 5120x240 -> divided by 4x1!
>   $ff8266 = $100
> 
> I.e. Falcon shifter control register 2-color mode bit is toggled,
> but nothing else.

I got interested from how many places and at which VBL/HBL value this
register is modified.

In the results below, the new register value is first, then the information
about CPU & DSP PC registers etc at the time that value was set.  The
warning (for $400 value) happens sometime after that when it's time to
redrawn the screen & Videl code checks whether screen needs to be resized.

-------------
b (0xff8266).w ! (0xff8266).w :info
...
  $ff8266 = $400
1. CPU breakpoint condition(s) matched 1 times.

CPU=$1ccd4, VBL=3287, FrameCycles=111412, HBL=219, LineCycles=160, DSP=$20e
WARNING: too large screen size 5120x240 -> divided by 4x1!
  $ff8266 = $100
1. CPU breakpoint condition(s) matched 2 times.

CPU=$1ccdc, VBL=3296, FrameCycles=20112, HBL=39, LineCycles=300, DSP=$49
  $ff8266 = $400
1. CPU breakpoint condition(s) matched 3 times.

CPU=$1ccd4, VBL=4224, FrameCycles=119436, HBL=235, LineCycles=56, DSP=$49
WARNING: too large screen size 5120x200 -> divided by 4x1!
  $ff8266 = $100
1. CPU breakpoint condition(s) matched 4 times.

CPU=$1ccdc, VBL=4231, FrameCycles=86980, HBL=171, LineCycles=112, DSP=$49
  $ff8266 = $400
1. CPU breakpoint condition(s) matched 5 times.

CPU=$1ccd4, VBL=5135, FrameCycles=63728, HBL=125, LineCycles=228, DSP=$49
WARNING: too large screen size 5120x240 -> divided by 4x1!
  $ff8266 = $100
1. CPU breakpoint condition(s) matched 6 times.

CPU=$1ccdc, VBL=5324, FrameCycles=38644, HBL=76, LineCycles=36, DSP=$49
  $ff8266 = $400
1. CPU breakpoint condition(s) matched 7 times.

CPU=$1ccd4, VBL=6056, FrameCycles=87708, HBL=172, LineCycles=332, DSP=$49
WARNING: too large screen size 5120x200 -> divided by 4x1!
  $ff8266 = $100
1. CPU breakpoint condition(s) matched 8 times.

CPU=$1ccdc, VBL=6071, FrameCycles=67260, HBL=132, LineCycles=204, DSP=$49
  $ff8266 = $400
1. CPU breakpoint condition(s) matched 9 times.

CPU=$1ccd4, VBL=6978, FrameCycles=10476, HBL=20, LineCycles=316, DSP=$49
WARNING: too large screen size 5120x200 -> divided by 4x1!
  $ff8266 = $100
1. CPU breakpoint condition(s) matched 10 times.

CPU=$1ccdc, VBL=6984, FrameCycles=100048, HBL=196, LineCycles=480, DSP=$49
  $ff8266 = $400
1. CPU breakpoint condition(s) matched 11 times.

CPU=$1ccd4, VBL=9058, FrameCycles=47744, HBL=93, LineCycles=500, DSP=$49
WARNING: too large screen size 5120x240 -> divided by 4x1!
  $ff8266 = $100
1. CPU breakpoint condition(s) matched 12 times.

CPU=$1ccdc, VBL=9067, FrameCycles=3104, HBL=6, LineCycles=56, DSP=$49
  $ff8266 = $400
1. CPU breakpoint condition(s) matched 13 times.

CPU=$1ccd4, VBL=9998, FrameCycles=58752, HBL=115, LineCycles=332, DSP=$49
WARNING: too large screen size 5120x200 -> divided by 4x1!
  $ff8266 = $100
1. CPU breakpoint condition(s) matched 14 times.

CPU=$1ccdc, VBL=10012, FrameCycles=131288, HBL=258, LineCycles=224, DSP=$49
  $ff8266 = $400
1. CPU breakpoint condition(s) matched 15 times.

CPU=$1ccd4, VBL=11826, FrameCycles=83484, HBL=164, LineCycles=172, DSP=$49
WARNING: too large screen size 5120x240 -> divided by 4x1!
  $ff8266 = $100
1. CPU breakpoint condition(s) matched 16 times.
----------------

The addresses are the ones included to the disassembly I already sent.

Miro, is there anything that catches your eye in regards to VBL/HBL etc?


	- Eero



More information about the hatari-devel mailing list