25 March 2016, 21:06 | #1 |
Lemon. / Core Design
Join Date: Mar 2016
Location: Tier 5
Posts: 1,212
|
DIWStart & DIWStop Help!
I have an overscan (352 pixel wide) screen set up, for scrolling with an extra 16 pixels on the left... so...
DDFSTART = $28 DDFSTOP = $d8 but it does not seem to be working with these DIWSTART = $2471 DIWSTOP = $34d1 It seems to be displaying (in WinUAE at least.. I don't have an A500) the 16 pixels to the left, that should be "hidden" by the DIWSTART & DIWSTOP settings. Can anyone see where I am going wrong? with DIWSTART = $2481 DIWSTOP = $34c1 it is displaying the centred 320 pixels ok... |
25 March 2016, 23:25 | #2 |
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
|
It's a bug in the hardware that occurs when the right edge of the display window extends past $C7. I don't know if there's any way to work around it other than moving the display to the left.
|
26 March 2016, 00:01 | #3 |
Lemon. / Core Design
Join Date: Mar 2016
Location: Tier 5
Posts: 1,212
|
so I guess there were no full overscan scrolling games?
I *could* cover up the left edge with a hardware sprite... it's a bit hacky though... |
26 March 2016, 00:25 | #4 |
Going nowhere
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 9,004
|
|
26 March 2016, 00:35 | #5 |
Lemon. / Core Design
Join Date: Mar 2016
Location: Tier 5
Posts: 1,212
|
|
26 March 2016, 00:44 | #6 |
Lemon. / Core Design
Join Date: Mar 2016
Location: Tier 5
Posts: 1,212
|
|
26 March 2016, 00:51 | #7 |
Lemon. / Core Design
Join Date: Mar 2016
Location: Tier 5
Posts: 1,212
|
Pacmania is overscan.. it has horizontal DIWStop at $c5
|
26 March 2016, 00:52 | #8 |
Going nowhere
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 9,004
|
|
26 March 2016, 01:02 | #9 |
Lemon. / Core Design
Join Date: Mar 2016
Location: Tier 5
Posts: 1,212
|
I've set my DIWStop at $c7, it's the best i can do, and looks...well..looks ok
|
26 March 2016, 08:46 | #10 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,518
|
It happens because $c8+ is larger than largest Denise horizontal counter value. It is position where counter is reset (actual hpos=0 position) but it is visible in right border because horizontal blanking starts slightly later, same reason which makes copper COLOR0 changes visible in right border if they are not delayed by few cycles.
$c7 = $1c7 = 455 dec, Denise internal horizontal counter counts twice the speed of Agnus horizontal counter (2 to 455, more information in undocumented hardware thread), in lores pixel rate. AGA introduced hires/shres rates = sprite and scrolling can be hires/shres positioned. $c8 = $1c8 = 456 dec which never happens. This causes horizontal window to stay open all the time (open position matches, closing position never matches) = full horizontal overscan. btw, larger overscan (in right border) has also another problem if you need horizontal scrolling: BPLCON1 values "glitch" when horizontal counter is reset. (Check Seven Seas / Andromeda horizontal scrolling max overscan image copper list for more details.. It has a workaround..) |
26 March 2016, 12:31 | #11 |
Lemon. / Core Design
Join Date: Mar 2016
Location: Tier 5
Posts: 1,212
|
Thanks for the info Toni.
Good to have a proper description of what is happening internally. |
02 April 2016, 01:35 | #12 | |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,604
|
Quote:
From memory, $30..$d8 never gave me any problems but you could only get 4 pixels past that at left edge with scrolling? I did do a maximum overscan test years ago and wrote a thread here. Oh well, it's a very simple test to perform. I never use DIW values that aren't evenly divisible by 8. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
6x ETHERNET CARDS - NETGEAR & 3COM & MRi & US Robotics | Sir_Lucas | MarketPlace | 93 | 13 December 2018 09:10 |
diwhigh/diwstart problems | Jherek Carnelia | Coders. General | 4 | 07 April 2011 19:08 |
DIWSTART and sprite | Camionsauro | Coders. Tutorials | 3 | 22 April 2009 13:24 |
aminet & amiga Plus cds - floppy & cd software/games - hardware & magazines for SALE! | bastibs | MarketPlace | 1 | 07 May 2008 11:33 |
|
|