06 March 2018, 18:43 | #1 |
Registered User
Join Date: May 2017
Location: AmigaLand
Posts: 459
|
Blitter Mask shift during copy
Folks,
Another technical question I don't understand what exactly the blitter is doing with mask when shifting bob to be displayed at pixel perfect position in a screen -hope you understand my bad english-. w=320 ; size in pixel of screen Code:
move.w #$89f0,$40(a6) clr.w $42(a6) move.w #$ffff,$44(a6) move.w #$0000,$46(a6) move.w #-2,$64(a6) move.w #w/8-4,$66(a6) move.l d0,$50(a6) move.l d1,$54(a6) move.w #2+64*31,$58(a6) Does it means the blitter shift also the 2 masks during copy ? So it means doing bob clipping is more tricky than expected ? Last edited by LeCaravage; 06 March 2018 at 19:23. |
06 March 2018, 19:22 | #2 |
Registered User
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,702
|
First off u have a typo, i think you mean to clear bltcon1 (42) but u are clearing 44 - first word mask.
Willlook more later |
06 March 2018, 19:24 | #3 |
Registered User
Join Date: May 2017
Location: AmigaLand
Posts: 459
|
@mcgeezer : Corrected, thanks.
|
06 March 2018, 19:42 | #4 | |
Registered User
Join Date: May 2017
Location: AmigaLand
Posts: 459
|
I should learn to read carefully the HRM before posting questions.
Quoting the HRM : Quote:
|
|
06 March 2018, 19:53 | #5 | |
Registered User
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,702
|
Quote:
Of cookie cutter mode (fca) which tells u exactly how to do it. Will post an example later on for u. |
|
06 March 2018, 20:40 | #6 |
Registered User
Join Date: May 2017
Location: AmigaLand
Posts: 459
|
No need, thank you, as I've already used the cookie copy mode.
In fact, I posted this question because I'd like to code a bob clipping routine which doesn't need to expand the bitplan modulos (copy only bob's pixel that are within screen). Anyway, thanks for taking time for helping me. Looking forward to see your game finished |
18 March 2018, 22:50 | #7 |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,602
|
Moved to the Asm/Hardware forum
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Blitter busy flag with blitter DMA off? | NorthWay | Coders. Asm / Hardware | 9 | 23 February 2014 21:05 |
shift pattern | AGS | Coders. Asm / Hardware | 16 | 16 December 2013 21:27 |
Unknown Copy-Dongle [SOLVED: Siegfried-Copy 1.9SE] | TheZock | support.Hardware | 4 | 26 November 2013 00:23 |
Requester Bug when copying IPF to Standard ADF with X-Copy/Power Copy. | BarryB | support.WinUAE | 9 | 17 January 2012 20:20 |
Right Shift+Right Amiga works, but not Left shift+Left Amiga | Photon | support.WinUAE | 13 | 22 November 2010 21:43 |
|
|