
LoadView	= -222
OpenLibrary	= -552

begin:
	move.w	#$7fff,$dff096
	move.w	#$7fff,$dff09a
	move.w	#$0020,$dff1dc

	move.w	#$000,$dff180

	move.l	4,a6

	lea	begin(pc),a0
	cmp.l	#$80000,a0
	bhs.s	.no_copy

	cmp.l	#$80000,62(a6)
	blo.s	.no_copy

	lea	begin(pc),a0
	lea	$a0000,a1
	lea	allend,a2
.copyloop:
	move.l	(a0)+,(a1)+
	cmp.l	a2,a0
	blo.s	.copyloop
	jmp	$a0000

.no_copy:
	move.b	#0,$211
	move.b	#1,$210
	move.b	#0,$20d

	lea	file(pc),a0
.again:
	move.l	a0,a2
	move.l	(a2)+,d7
	beq.s	.start
	move.l	(a2)+,a1
	move.l	d7,d0
	addq.l	#3,d0
	lsr.l	#2,d0
.copyfile:
	move.l	(a2)+,(a1)+
	dbf	d0,.copyfile

	add.l	d7,a0
	bra.s	.again
.start:
	move.l	(a2)+,a0
	jsr	(a0)	
.forever:
	bra	.forever

start:
	move.b	#0,$211
	move.b	#1,$210
	move.b	#0,$20d

	lea	file-begin+$a0000,a0
.again:
	move.l	a0,a2
	move.l	(a2)+,d7
	beq.s	.start
	move.l	(a2)+,a1
	move.l	d7,d0
	addq.l	#3,d0
	lsr.l	#2,d0
.copyfile:
	move.l	(a2)+,(a1)+
	dbf	d0,.copyfile

	add.l	d7,a0
	bra.s	.again
.start:
	move.l	(a2)+,a0
	jsr	(a0)	
.forever:
	bra	.forever
end:

file:

file4:
	dc.l	fileend4-file4
	dc.l	$70200
	incbin	work:objects/t3_sound2.obj
fileend4:
file3:
	dc.l	fileend3-file3
	dc.l	$6ed20
	incbin	work:objects/t3_tfmx.obj
fileend3:

file1:
	dc.l	fileend1-file1
	dc.l	$580
	incbin	work:objects/cover_main.obj
fileend1:

file2:
	dc.l	fileend2-file2
	dc.l	$9100
	incbin	work:objects/cover_level.obj
fileend2:
file5:
	dc.l	fileend5-file5
	dc.l	$39a54
	incbin	work:objects/t3_spr.obj
fileend5:
file6:
	dc.l	fileend6-file6
	dc.l	$5b500
	incbin	work:objects/t3_mid.obj
fileend6:


	dc.l	0
	dc.l	$580
allend:
