home *** CD-ROM | disk | FTP | other *** search
-
- ; autoinit if you ever reference DOS
- ;
- ; can't use pc-relative between different code sections
- ; and cannot put string in autoinit section!
-
- xdef _IntuitionBase
-
- _LVOOpenLibrary equ -552
- _LVOCloseLibrary equ -414
-
- section autoinit0,code
-
- moveq.l #0,D0
- lea intname,A1
- jsr _LVOOpenLibrary(A6)
- move.l D0,_IntuitionBase(A4)
- i10
-
- section autoexit0,code
-
- move.l _IntuitionBase(A4),D0
- beq l10
- move.l D0,A1
- jsr _LVOCloseLibrary(A6)
- l10
-
- section const,code
-
- intname dc.b $69,$6E,$74,$75,$69,$74,$69,$6F,$6E,$2E,$6C,$69,$62,$72,$61,$72,$79,$00
-
- section libbss,bss
-
- _IntuitionBase ds.l 1
-
- END
-
-