27 April 2016, 11:59 | #1 |
Registered User
Join Date: Feb 2011
Location: Italy/Rome
Posts: 2,291
|
Aga Sprites Attached issue
Hi,
I'm using 64px wide sprites on Aga machine. I'm trying to attach it, but it seems to not work. I'm using Piccon 2.50 to export sprites, and winuae to emulate amiga aga. Even though I set bit 8 on sprite, they refuse to work Is there any thing to do in order to set thing right? Thanks in advantage Alessandro |
27 April 2016, 16:26 | #2 |
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
|
You must enable 32-bit and double-page mode for sprites in FMODE, set bit 7 (not bit 8) in the second control word of the odd-numbered sprite, and position both sprites directly on top of eachother.
With 64-pixel wide sprites, all control words will also be 64 bits in size, and the relevant bits are mapped to the most significant 16 bits of each 64-bit control word. |
27 April 2016, 17:21 | #3 | |
Registered User
Join Date: Feb 2011
Location: Italy/Rome
Posts: 2,291
|
Quote:
With 64px wide bit 8 will be allways in the second control word, isn't? |
|
27 April 2016, 19:47 | #4 |
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
|
Yes, the hardware expects data like this:
Code:
dc.w pos, 0, 0, 0, ctrl, 0, 0, 0 dc.w bpl1, bpl1, bpl1, bpl1, bpl2, bpl2, bpl2, bpl2 ... dc.w 0, 0, 0, 0, 0, 0, 0, 0 (or another pair of control words) |
27 April 2016, 19:56 | #5 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,516
|
Also wide AGA sprites need higher address alignment, normal OCS/ECS sprite word alignment is not enough. 32-pixel = 4 byte divisible/long word alignment, 64-pixel = 8 byte divisible.
|
27 April 2016, 19:59 | #6 |
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
|
Yep that's most likely the problem here. AmigaDOS guarantees 8-byte alignment of hunk sections, so a simple
cnop 0,8will do. |
27 April 2016, 20:14 | #7 |
Registered User
Join Date: Feb 2011
Location: Italy/Rome
Posts: 2,291
|
|
27 April 2016, 20:16 | #8 | |
Registered User
Join Date: Feb 2011
Location: Italy/Rome
Posts: 2,291
|
Quote:
|
|
27 April 2016, 20:39 | #9 |
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
|
The Attached option is required for it to convert the data correctly, 16-color graphics into 2 sprites. If you write $4040 $8000 and $4040 $8080 as control words for 64-pix wide and tall sprite 0 and 1, do you still see nothing?
The bug could be somewhere else, perhaps your sprite and bitplane priorities get messed up, the sprite pointers not set correctly, or the sprite DMA is turned off. |
28 April 2016, 09:32 | #10 | |
Registered User
Join Date: Feb 2011
Location: Italy/Rome
Posts: 2,291
|
Quote:
|
|
28 April 2016, 13:28 | #11 |
Registered User
Join Date: Feb 2011
Location: Italy/Rome
Posts: 2,291
|
I set for both, odd and even sprites same palette index
dc.w $0102,$0022 |
28 April 2016, 14:17 | #12 |
Registered User
Join Date: Feb 2011
Location: Italy/Rome
Posts: 2,291
|
Issue resolved, I was setting the wrong control word! All it' ok now!
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
AGA: Using 32 pixel sprites twice per scanline | buzzybee | Coders. Asm / Hardware | 18 | 05 January 2016 20:26 |
Attached sprites | nirvan75 | Coders. Asm / Hardware | 3 | 27 December 2015 11:42 |
AGA border sprites | mark_k | support.WinUAE | 9 | 06 January 2014 14:35 |
Indivision AGA issue | AMIGAZ | support.Hardware | 4 | 10 April 2010 12:31 |
EHB sprites with AGA chipset ? | FrenchShark | Coders. General | 4 | 17 September 2009 06:37 |
|
|