English Amiga Board


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

 
 
Thread Tools
Old 21 February 2014, 18:56   #1
NorthWay
Registered User
 
Join Date: May 2013
Location: Grimstad / Norway
Posts: 839
Blitter busy flag with blitter DMA off?

If blitter DMA is disabled and you go ahead and start a blit as you normally would, will the blitter busy flag turn on, or will that not happen before blitter DMA is turned on?

(I am working on a Minimig "Blipper" extension and I am getting more and more unsure if I can depend on the busy flag or if I have to recognize the blitsize registers to change the state machine. Reading the waitblit discussions here made me even more sceptical.))
NorthWay is offline  
Old 21 February 2014, 19:21   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,516
OCS and later: BUSY bit gets set immediately when BLTSIZ is written, even if DMA is turned off.

A1000 Agnus has delayed BUSY bit, it only gets set when blitter gets first DMA slot.
Toni Wilen is online now  
Old 22 February 2014, 05:18   #3
NorthWay
Registered User
 
Join Date: May 2013
Location: Grimstad / Norway
Posts: 839
There isn't a 3 cycle delay before BUSY lights up?
NorthWay is offline  
Old 22 February 2014, 08:53   #4
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,516
Quote:
Originally Posted by NorthWay View Post
There isn't a 3 cycle delay before BUSY lights up?
No. I just logic analyzer rechecked (by writing to BLTSIZE with copper and at the same reading DMACONR using CPU), BUSY bit was set when CPU read DMACONR in next cycle after BLTSIZE.

3 cycle delay is probably what A1000 Agnus does (if there is no other DMA channels stealing cycles from blitter), after BLTSIZE has been written to, blitter does 2 idle cycles (Can anyone guess or know the purpose of these 2 cycles?), 3rd cycle is first DMA fetch cycle.
Toni Wilen is online now  
Old 22 February 2014, 10:35   #5
NorthWay
Registered User
 
Join Date: May 2013
Location: Grimstad / Norway
Posts: 839
Thanks a lot.
NorthWay is offline  
Old 23 February 2014, 16:41   #6
NorthWay
Registered User
 
Join Date: May 2013
Location: Grimstad / Norway
Posts: 839
WinUAE or WINE bug?

Sorry to derail my own topic, but I am having trouble making a small test with WinUAE using openSUSE and WINE - I get crashes and dump files.

Can someone with a real Windows try http://home.online.no/~bnost/tst and say if it works (i.e. not crashes WinUAE at least)?

(It was supposed to be the beginnings of my Blipper test.)
NorthWay is offline  
Old 23 February 2014, 17:10   #7
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 3,343
tst didn't crash WinUAE (2.7.1b9) for me. However as far as I can see you point the copper to the start of your BSS hunk without writing any copper instructions there. So maybe results vary depending on what was in memory beforehand.
mark_k is online now  
Old 23 February 2014, 19:41   #8
NorthWay
Registered User
 
Join Date: May 2013
Location: Grimstad / Norway
Posts: 839
Thanks. I rolled back from dev to stable WINE and now it doesn't crash.
And the bss was a bug. Man how rusty you get :-)

(Only thing now is why on exit the restored copperlist doesn't come up before I move the mouse?)
NorthWay is offline  
Old 23 February 2014, 19:48   #9
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 3,343
Are you supposed to save gb_ActiView, then LoadView() it before exiting? Also I noticed that while you GetMsg the WbStartup message, you don't reply to it before exiting.
mark_k is online now  
Old 23 February 2014, 21:05   #10
NorthWay
Registered User
 
Join Date: May 2013
Location: Grimstad / Norway
Posts: 839
Thanks again. Dragging through my old sources I found this and now it looks right.
Sadly I can't say that about my Minimig mod.
NorthWay 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
Please help me!! Blitter pain! h0ffman Coders. Asm / Hardware 5 15 June 2013 18:59
Blitter using the copper... h0ffman Coders. Asm / Hardware 9 23 February 2012 08:25
Filling with the blitter... Lonewolf10 Coders. Tutorials 7 13 September 2011 14:30
Blitter Question. cdoty Coders. General 11 06 May 2005 15:22
WinUAE blitter <-> bitplane DMA timing accuracy? Photon Coders. General 1 24 November 2004 18:06

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 19:52.

Top

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