*****************************************************************
*	Takes an amiga raw pc and converts it to straight	*
*	8plane data for the TT. Current resolution of this data	*
*	is 320*520						*
*****************************************************************
start:
	lea	rawdata,a0
	lea	20800(a0),a1	;addresses of seperate bitplanes
	lea	20800(a1),a2
	lea	20800(a2),a3

	lea	convert,a6
	move.w	#519,d7
	moveq	#0,d6
cvloop:
	rept	20
	move.w	(a0)+,(a6)+
	move.w	(a1)+,(a6)+
	move.w	(a2)+,(a6)+
	move.w	(a3)+,(a6)+
	move.l	d6,(a6)+
	move.l	d6,(a6)+
	endr
	dbf	d7,cvloop

bp1:
	nop



rawdata:
	incbin	'raw.img'
	section	bss
a:
convert:
	ds.b	166400
b: