English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 25 March 2016, 21:06   #1
DanScott
Lemon. / Core Design
 
DanScott's Avatar
 
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...
DanScott is offline  
Old 25 March 2016, 23:25   #2
Leffmann
 
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.
Leffmann is offline  
Old 26 March 2016, 00:01   #3
DanScott
Lemon. / Core Design
 
DanScott's Avatar
 
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...
DanScott is offline  
Old 26 March 2016, 00:25   #4
Galahad/FLT
Going nowhere
 
Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 9,004
Quote:
Originally Posted by DanScott View Post
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...
Double Dragon 2 was left and right scrolling and full overscan
Galahad/FLT is online now  
Old 26 March 2016, 00:35   #5
DanScott
Lemon. / Core Design
 
DanScott's Avatar
 
Join Date: Mar 2016
Location: Tier 5
Posts: 1,212
Quote:
Originally Posted by Galahad/FLT View Post
Double Dragon 2 was left and right scrolling and full overscan
what's the copper-list saying there? or did it have bitplane fetch glitching on the very left (off the edge of the visible TV screen) ?

Knowing Rich, he probably found a way around this bug
DanScott is offline  
Old 26 March 2016, 00:44   #6
DanScott
Lemon. / Core Design
 
DanScott's Avatar
 
Join Date: Mar 2016
Location: Tier 5
Posts: 1,212
Quote:
Originally Posted by Galahad/FLT View Post
Double Dragon 2 was left and right scrolling and full overscan
320x268 overscan in the Y only
DanScott is offline  
Old 26 March 2016, 00:51   #7
DanScott
Lemon. / Core Design
 
DanScott's Avatar
 
Join Date: Mar 2016
Location: Tier 5
Posts: 1,212
Pacmania is overscan.. it has horizontal DIWStop at $c5
DanScott is offline  
Old 26 March 2016, 00:52   #8
Galahad/FLT
Going nowhere
 
Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 9,004
Quote:
Originally Posted by DanScott View Post
what's the copper-list saying there? or did it have bitplane fetch glitching on the very left (off the edge of the visible TV screen) ?

Knowing Rich, he probably found a way around this bug
DIWSTRT=$2081
DIWSTOP=$2cc1
DDFSTRT=$0030
DDFSTOP=$00d0
Galahad/FLT is online now  
Old 26 March 2016, 01:02   #9
DanScott
Lemon. / Core Design
 
DanScott's Avatar
 
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
DanScott is offline  
Old 26 March 2016, 08:46   #10
Toni Wilen
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..)
Toni Wilen is offline  
Old 26 March 2016, 12:31   #11
DanScott
Lemon. / Core Design
 
DanScott's Avatar
 
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.
DanScott is offline  
Old 02 April 2016, 01:35   #12
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,604
Quote:
Originally Posted by Galahad/FLT View Post
Double Dragon 2 was left and right scrolling and full overscan
This doesn't mean so much if it wasn't using the hardware scroll registers. From memory the game performance was an order of magnitude worse than the song, which they botched by using the wrong player.

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.
Photon is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 22:13.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.12151 seconds with 15 queries