View Single Post
Old 30 September 2010, 23:29   #36
Lonewolf10
AMOS Extensions Developer
 
Lonewolf10's Avatar
 
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
Quote:
Originally Posted by StingRay View Post
The code is quite bad because it doesn't restore the DMACON settings properly. Correct way to do it is like this:
- store current DMACON settings (read register DMACONR, $dff002) so you can
- write this value back to DMACON ($dff096) upon exit (don't forget to set BIT #15 (SET/CLR) before)

I don't give any code example because it is a good exercise for you to do it yourself.

Thanks. It took a while but I got it working properly now

(I commented out the line "move.w #$81A0,$DFF096", added a dc.l to store the DMACONR value and a few other lines to store/retrieve it to/from there)


Regards,
Lonewolf10
Lonewolf10 is offline  
 
Page generated in 0.04200 seconds with 11 queries