English Amiga Board


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

 
 
Thread Tools
Old 06 March 2018, 18:43   #1
LeCaravage
Registered User
 
LeCaravage's Avatar
 
Join Date: May 2017
Location: AmigaLand
Posts: 456
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)
So, the bob is 16 pixels wide. I shift the bob with 8 pixel but the right mask is null, so why the going over edges 8 pixels are displayed anyhow ? They should be also null ?
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.
LeCaravage is offline  
Old 06 March 2018, 19:22   #2
mcgeezer
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
mcgeezer is offline  
Old 06 March 2018, 19:24   #3
LeCaravage
Registered User
 
LeCaravage's Avatar
 
Join Date: May 2017
Location: AmigaLand
Posts: 456
@mcgeezer : Corrected, thanks.
LeCaravage is offline  
Old 06 March 2018, 19:42   #4
LeCaravage
Registered User
 
LeCaravage's Avatar
 
Join Date: May 2017
Location: AmigaLand
Posts: 456
I should learn to read carefully the HRM before posting questions.
Quoting the HRM :
Quote:
These masks are "anded" with the source data, before any shifts are applied.
Beside, the example I gave is not appropriate for as it's a straight copy.
LeCaravage is offline  
Old 06 March 2018, 19:53   #5
mcgeezer
Registered User
 
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,702
Quote:
Originally Posted by LeCaravage View Post
I should learn to read carefully the HRM before posting questions.
Quoting the HRM :


Beside, the example I gave is not appropriate for as it's a straight copy.
Indeed, there’s a good explanation in the hrm
Of cookie cutter mode (fca) which tells u exactly how to do it.

Will post an example later on for u.
mcgeezer is offline  
Old 06 March 2018, 20:40   #6
LeCaravage
Registered User
 
LeCaravage's Avatar
 
Join Date: May 2017
Location: AmigaLand
Posts: 456
Quote:
Originally Posted by mcgeezer View Post
Will post an example later on for u.
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
LeCaravage is offline  
Old 18 March 2018, 22:50   #7
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,602
Moved to the Asm/Hardware forum
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
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

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 12:27.

Top

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