home *** CD-ROM | disk | FTP | other *** search
-
- ; autoinit if you ever reference DOS
- ;
- ; Note: das automatically pads code sections with
- ; NOPs.
-
- xdef _GfxBase
-
- _LVOOpenLibrary equ -552
- _LVOCloseLibrary equ -414
-
- section autoinit0,code
-
- moveq.l #0,D0
- lea gfxname,A1
- jsr _LVOOpenLibrary(A6)
- move.l D0,_GfxBase(A4)
- i10
-
- section autoexit0,code
-
- move.l _GfxBase(A4),D0
- beq l10
- move.l D0,A1
- jsr _LVOCloseLibrary(A6)
- l10
-
- section const,code
-
- gfxname dc.b $67,$72,$61,$70,$68,$69,$63,$73,$2E,$6C,$69,$62,$72,$61,$72,$79,0
-
- section libbss,bss
-
- _GfxBase ds.l 1
-
- END
-
-