
			;   autoinit if you ever reference DOS

			xdef	_IntuitionBase
			xref	_OpenLibrary
			xref	_CloseLibrary

_LVOOpenLibrary 	equ	-552
_LVOCloseLibrary	equ	-414

			section autoinit0,code

			moveq.l #0,D0			; 2
			lea	intname,A1		; 6
			jsr	_LVOOpenLibrary(A6)     ; 4
			move.l	D0,_IntuitionBase	; 6
			nop				; 2
i10

			section autoexit0,code

			move.l	_IntuitionBase,D0	; 6
			beq.s	l10			; 2
			move.l	D0,A1			; 2
			jsr	_LVOCloseLibrary(A6)    ; 4
			moveq.l #0,D0			; 2
			move.l	D0,_IntuitionBase	; 6
			nop				; 2
l10

			section const,code

intname 		dc.b	'intuition.library',0

			section bss,bss

_IntuitionBase		ds.l	1

			END

