Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!pasteur!ucbvax!UMDD.BITNET!BBOURBIN From: BBOURBIN@UMDD.BITNET (Brett S Bourbin) Newsgroups: comp.sys.amiga Subject: DMA control Message-ID: <8803031951.AA06762@jade.berkeley.edu> Date: 3 Mar 88 19:40:33 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 21 I am writing a assembly language game and I am not using Intuition in the program so I disable Intuition from using port 0, which I use for my own control, and I want to get rid of all the sprites. I do not use the sprite hardware at all, since I use an overscanned screen, so I want to shut down all sprite DMA and turn off raster DMA until I set up my screen. So here is the code I am using: XREF _custom movea.l _custom,a6 move #DMAF_RASTER!DMAF_SPRITE,dmacon(a6) and to turn it on: move #DMAF_SETCLR!DMAF_MASTER!DMAF_RASTER,dmacon(a6) Is this the correct method for doing this, or do I have to SetPointer() to a null sprite? Also, is this legal, since this is direct hardware access or is there a system function to turn off/on the DMA? I want to follow all the rules that Commodore states, but I can find no information on this. Brett S Bourbin President Selgus Ltd. BITNET: BBOURBIN@UMDD