Article View: comp.sys.amiga.tech
Article #9529Blitter shifting
From: Brett S Bourbin
Date: Wed, 17 Aug 1988 14:30
Date: Wed, 17 Aug 1988 14:30
40 lines
2233 bytes
2233 bytes
I am trying to use the Blitter to shift one of my sources before it is moved
into the destination bitplane. I read the "Lost Blitter Docs" and they said
you would have to:
1) Move one more word than is in your image (extra word needed for
the shift)
2) Subtract one from each of the modulo registers
3) Use ACENDING mode for bit shifts to the right
Now, I have an image that is two words long (16 bits) and I want to shift
it one bit to the right, before I store it in the destination plane, which
has 36 bytes per row. I set the A source modulo to -2, since it is a packed
image, and the C source and D dest modulo registers to "36-4-2". The docs
say that you must subtract one from the calculated modulo values, but
shouldn't that be two, since the modulos are byte counts to add to the source
addresses?
The control register 0 has the value of "1<<12!SRCA!SRCC!DEST!$0a" to shift
one bit to the right; use source A and C and dest D; blitter logic D=A~C.
The size register has the value "31<<6!3" since the image has 31 lines and
I am moving 2 words plus the extra one for the shift.
The result I am getting is that the image IS shifted one bit but it is
blitting one and a half copies of the image. There is an extra word that
is being copied to the plane, but the docs said you need the extra word in
the hoziontal count. Can anyone see what I am doing wrong? How do others
shift the source images when they are using the Blitter?
Thanks for any help you can give me on this, for I have pulled my hair out
trying to fix this for a few days now! 8^)
- Brett
__ __ _ __ _
| || | / || || \ Brett S Bourbin
| || || || || | INTERNET: brett@PIGPEN.UMD.EDU
| || || || || |
\_||_/ |__||__||__| Instructional Computing Programs
College Park
Technical Details
Message-ID:
<3985@umd5.umd.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!rutgers!mit-eddie!ll-xn!ames!haven!umd5!pigpen!brettShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!rutgers!mit-eddie!ll-xn!ames!haven!umd5!pigpen!brett From: brett@pigpen (Brett S Bourbin) Newsgroups: comp.sys.amiga.tech Subject: Blitter shifting Message-ID: <3985@umd5.umd.edu> Date: 17 Aug 88 14:30:43 GMT Sender: news@umd5.umd.edu Reply-To: brett@pigpen.UMD.EDU (Brett S Bourbin) Organization: University of Maryland, College Park Lines: 40