/* TURBO ----- Improves system speed by turning of bitplane, sprite, copper and audio DMA. (W) 6/88 by O.Wagner V1.0 for MANX Aztec C 3.4a CC turbo LN turbo.o -lc To install, enter "RUN TURBO". Pressing the "TURBO!"-gadget will turn off screen and all. Pressing button outside of the "TURBO"-window, pressing RIGHT button or the "TURBO"-window becoming inactive (by starting another application) will turn BITPLANE, COPPER and SPRITE. AUDIO must be turned on manually. This is Public Domain. Please note that some other programs of the author are shareware and NOT freely distributable. */ #include #include #include UserPort->mp_SigBit); while(msg=GetMsg(win->UserPort)) { class=msg->Class; ReplyMsg(msg); switch(class) { case CLOSEWINDOW: CloseWindow(win); /* cleanup */ Exit(0); case GADGETUP: custom.dmacon = BITCLR+DMAF_RASTER+DMAF_COPPER+DMAF_SPRITE+DMAF_AUDIO; /* nice hint how to use CUSTOM.H to simply access the custom board */ break; default: custom.dmacon = BITSET+DMAF_RASTER+DMAF_COPPER+DMAF_SPRITE; break; } } } }