28 September 2018, 00:10 | #1 |
Registered User
Join Date: Jun 2017
Location: Paris
Posts: 51
|
BPLCON1 scroll values in HiRes
Hi guys,
I forgot how the horizontal scroll values (PF2Hx bits in BPLCON1) work in HiRes (bit 15 HIRES of BPLCON0 is set). It seems that the maximum scroll value is 7 Hires pixels ? $0000 => 0 HiRes pixels shift ... $0077 => 7 HiRes pixels shift $0088 => 0 HiRes pixels shift ... $00FF => 7 HiRes pixels shift I could not find the info in the HRM ? |
28 September 2018, 02:07 | #2 | |
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,408
|
That's really odd. I'd expect the playfield shift in hires to work exactly the same as in lores, with both shifting up to 15 lores pixels and neither allowing for shifting in hires pixels (assuming you're using OCS, AGA changes a few things).
This seems to me to be what the HRM means here: Quote:
|
|
28 September 2018, 10:11 | #3 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
Yes, this is an OCS limit, soft scroll only in low-res increments.
AGA enhance this giving you more granularity (two more bits, the famous quarter pixels scroll). But it is not a problem at all: ignore the upper bit, do a soft scroll and every 8 increments change the pointers (not as soft as it could be but not so ugly). Anyway the same happens also on AGA. Try to raise resolution in 4x fetch mode and do a 64bits soft scroll: the high bits of BPLCON1 are ignored . In shi-res you move 4 pixels at a time using the normal bits, fortunately they have added bits for 35ns delay steps and therefore for the 64bits scroll you use exclusively [the new named] PFxH0-5. Last edited by ross; 28 September 2018 at 10:22. |
28 September 2018, 14:10 | #4 | |
Registered User
Join Date: Jun 2017
Location: Paris
Posts: 51
|
Quote:
|
|
28 September 2018, 14:50 | #5 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
|
28 September 2018, 17:52 | #6 |
Registered User
Join Date: Mar 2018
Location: Rome
Posts: 173
|
I ve recently come across this issue about different lores and hires behaviour, so I ve made two simple example of h scrolling with blcon1
https://github.com/fstarred/amiga_pl...scroll_hires.s https://github.com/fstarred/amiga_pl...scroll_lores.s Basically as said by Ross, hires scroll by 2 pixels per value, so a value of $77 is the last useful byte if you want to scroll both even and odd bitplanes Last edited by fstarred; 28 September 2018 at 18:00. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Tutorial about zooming with BPLCON1 (102) : Looking for examples | Yragael | Coders. Tutorials | 16 | 26 September 2018 21:36 |
Finegrain_cpu_speed values | hexaae | support.WinUAE | 2 | 14 August 2016 14:36 |
Zooming using BPLCON1 (horiz. shift) — am I doing it wrong? | losso | Coders. Asm / Hardware | 10 | 14 January 2014 17:00 |
WinUAE handling of ECS:BPLCON1:DOFF flag | RedskullDC | support.WinUAE | 1 | 26 December 2007 17:12 |
|
|