* Startup.asm - A working tested version of startup from Howtocode7 * * Written by CJ of SAE... Freeware. Share and Enjoy! * * This code sets up one of two copperlists (one for PAL and one for NTSC) * machines. It shows something to celebrate 3(?) years since the Berlin * wall came down :-) Press left mouse button to return to normality. * Tested on Amiga 3000 (ECS/V39 Kickstart) and Amiga 1200 (AGA/V39) * * $VER: startup.asm V7.tested (17.4.92) * Valid on day of purchase only. No re-admission. No rain-checks. * Now less bugs and more likely to work. * * Tested with Hisoft Devpac V3 and Argasm V1.09d * * Now added OS legal code to switch sprite resolutions. Ok, big deal * this 'demo' doesn't use any sprites. But that's the sort of effort I * go to on your behalf! - CJ opt l-,CHKIMM ; auto link, optimise on section mycode,code ; need not be in chipram incdir "include:" include "exec/types.i" include "exec/funcdef.i" ; keep code simple and include "exec/exec.i" ; the includes! include "libraries/dosextens.i" include "graphics/gfxbase.i" include "intuition/screens.i" include "graphics/videocontrol.i" include "howtocode:source/include/graphics_lib.i" ; Well done CBM! include "howtocode:source/include/exec_lib.i" ; They keep on include "howtocode:source/include/intuition_lib.i" ; forgetting these! include "howtocode:source/include/iconstartup.i" ; Allows startup from icon move.l 4.w,a6 sub.l a1,a1 ; Zero - Find current task jsr _LVOFindTask(a6) move.l d0,a1 moveq #127,d0 ; task priority to very high... jsr _LVOSetTaskPri(a6) move.l 4.w,a6 ; get ExecBase lea intname(pc),a1 ; moveq #39,d0 ; Kickstart 3.0 or higher jsr _LVOOpenLibrary(a6) move.l d0,_IntuitionBase ; store intuitionbase ; Note! if this fails then kickstart is