English Amiga Board


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

 
 
Thread Tools
Old 29 January 2020, 21:10   #1
KONEY
OctaMED Music Composer
 
KONEY's Avatar
 
Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 666
Blitter shift BACKWARDS

Here I am again with another n00by question:

I'm using the blitter to shift some stuff, like this:

Code:
	
MOVE.W	#%0001100111110000,BLTCON0	; BLTCON0
so accordingly to this http://amiga-dev.wikidot.com/hardware:bltcon0 I'm setting bit 12 to enable ASA0 and it works, because it scrolls from L to R.

But how to scroll in the opposite direction?

Please be nice to me, I'm doing my best but the BLITTER is a son of a...
KONEY is offline  
Old 29 January 2020, 21:13   #2
pipper
Registered User
 
Join Date: Jul 2017
Location: San Jose
Posts: 651
You start one word left of your data and shift right by 16-leftshift.
pipper is offline  
Old 29 January 2020, 21:37   #3
ross
Defendit numerus
 
ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
You have to use descending mode.
All blitter operations are reversed so you must start from the last source word (modulo will be subtracted rather than added and shifts will go to the left).

DESC = Bit 1 of BLTCON1
ross is offline  
Old 29 January 2020, 21:50   #4
KONEY
OctaMED Music Composer
 
KONEY's Avatar
 
Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 666
stupid me, I was focusing only on BLTCON0! Thanks!!!
KONEY 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 Mask shift during copy LeCaravage Coders. Asm / Hardware 6 18 March 2018 22:50
A500 Backwards Capacitors chue support.Hardware 4 14 March 2018 01:00
Connected +12v & +5v backwards to a1200 mobo - is it trashed? rikbliz support.Hardware 8 05 February 2015 21:26
Blitter busy flag with blitter DMA off? NorthWay Coders. Asm / Hardware 9 23 February 2014 21:05
What backwards compatible Consoles are there? Antiriad Retrogaming General Discussion 38 25 January 2004 01:04

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 08:05.

Top

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