English Amiga Board


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

 
 
Thread Tools
Old 07 April 2022, 18:01   #1
LeCaravage
Registered User
 
LeCaravage's Avatar
 
Join Date: May 2017
Location: AmigaLand
Posts: 457
BLTxDAT wassat ?

Hi,

I wonder what are these registers $dff070, $dff072, $dff074 ?

In simple words please ^^

Are they usefull ? Could they be used in certain circumstances ?
Lot of interrogations in fact.
LeCaravage is offline  
Old 07 April 2022, 18:37   #2
paraj
Registered User
 
paraj's Avatar
 
Join Date: Feb 2017
Location: Denmark
Posts: 1,098
If you haven't already, I suggest reading up on how the blitter works in general.

In simple terms the blitter allows you to combine bits (read as 16-bit words) from 3 sources: A, B and C and write them somewhere (D). How they're combined depends on the MINTERM (part of BLTCON0).

The three sources will often be read from memory (BLTxPT), but if you want to use the same value for either A, B or C for all of the operations, you can write a constant value to BLTxDAT before starting the operation, and it will be used throughout. This is purely an optimization though, you could always achieve the same thing by having a (possibly large) prefilled area with the value you need, and point BLTxPT there.
paraj is offline  
Old 07 April 2022, 22:04   #3
LeCaravage
Registered User
 
LeCaravage's Avatar
 
Join Date: May 2017
Location: AmigaLand
Posts: 457
Quote:
Originally Posted by paraj View Post
but if you want to use the same value for either A, B or C for all of the operations, you can write a constant value to BLTxDAT before starting the operation, and it will be used throughout. This is purely an optimization though
Interesting, so we could possibly use this feature to fill an area with a pattern.
LeCaravage is offline  
Old 07 April 2022, 22:08   #4
DanScott
Lemon. / Core Design
 
DanScott's Avatar
 
Join Date: Mar 2016
Location: Tier 5
Posts: 1,209
Yes, you could do a D=A blit, but disable the A DMA channel, and put a 16bit value into BLTADAT, and it would fill with that value
DanScott is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 16:15.

Top

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