
scr=$7a000
struc=$7d000
rastport=struc+100

setupsystem:

bsr getgfx
bsr cleanitdown


move.w #8000-1 ,d0
move.l #scr ,a0
slet: move.b #0 ,(a0)+
dbra d0 ,slet

move.l #scr ,a0
move.l a0 ,struc+8
move.l #struc ,a0
moveq #1 ,d0
move.l #320 ,d1
move.l #200 ,d2
move.l gfxbase ,a6
jsr -390(a6)
move.l #rastport ,a1
jsr -198(a6)
move.l #struc,rastport+4

move.l #copper0,newcop
bsr changecop

;--DEMO

move=-240
draw=-246
setapen=-342

move.l #rastport,a1
jsr	demo
jsr	cls
jsr	demo
jsr	cls
jsr	demo
jsr	cls
jsr	demo
rts

;/////// my demo!!! ///////
demo:
move.l	#end,d3
move.l	#text,d2
sub	d2,d3
sub	#1,d3
move.l	d2,textpos

oloop:
move.l	#6,d2
move.l	#charset,a2
move.l	textpos,a4
clr.l	d0
move.b	(a4),d0
sub	#32,d0
mulu	#28,d0
add	d0,a2
add.l	#1,textpos
iloop:
clr.l	d0
clr.l	d1
move.b	(a2)+,d0
add	x,d0
mulu	sz,d0
move.b	(a2)+,d1
add	y,d1
mulu	sz,d1
jsr	move(a6)
move.b	(a2)+,d0
add	x,d0
mulu	sz,d0
move.b	(a2)+,d1
add	y,d1
mulu	sz,d1
jsr	draw(a6)
dbra	d2,iloop
;wt:
;btst	#6,$bfe001
;bne	wait
;jmp	wt
;wait:
;btst	#6,$bfe001
;bne	wait
;move.l	#scr,a0
;move.w	#7999,d0
clr.l	d0
move.w	sz,d0
mulu	#2,d0
add	d0,x
;cls:
;move.b	#0,(a0)+
;dbra	d0,cls
dbra	d3,oloop
add.w	#1,sz
rts

cls:
move.l	#7999,d0
move.l	#scr,a0
cls1:
move.b	#0,(a0)+
dbra	d0,cls1
rts
;/////// my demo's over. //


copper0:dc.w	$0100,$1200

	dc.w	$008e,$2c81
	dc.w	$0090,$f4c1
	dc.w 	$0092,$38
	dc.w	$0094,$d0

	dc.w	$0108,$0000
	dc.w	$010a,$0000

	dc.w	$00e0,$0007
	dc.w	$00e2,$a000

	dc.w	$0180,$000
	dc.w	$0182,$fff

dc.w $ffff,$fffe

;*** gfx ***
gfxbase:	dc.l	0
gfxname:	dc.b	'graphics.library',0,0

getgfx:
	move.l	4	,a6
	move.l	#gfxname,a1
	jsr	-408(a6)
	move.l	d0	,gfxbase
rts

;*** change copper list ***

newcop: dc.l 0
;***
changecop:
	move.l	gfxbase	,a0
	move.l	newcop	,50(a0)
rts

;*********

forbid =-132
oldcopper:	dc.l 0

cleanitdown:
move.l 4,a6
jsr	-132(a6)
rts

charset:
dc.b	1,1,2,1,2,1,2,2,1,1,1,2,1,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1;SPC
dc.b	1,0,1,2,1,3,1,3,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0;!
dc.b	1,0,1,1,2,0,2,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0;"
dc.b	1,0,1,3,2,0,2,3,0,1,3,1,0,2,3,2,1,0,1,0,1,0,1,0,1,0,1,0;#
dc.b	0,0,3,0,0,0,0,2,1,0,1,3,0,2,3,2,3,2,3,3,0,3,3,3,2,0,2,3;$
dc.b	0,3,3,0,0,0,0,0,3,3,3,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0;%
dc.b	0,0,0,3,0,0,2,3,2,0,2,3,3,0,3,1,0,0,0,0,0,0,0,0,0,0,0,0;&
dc.b	1,0,1,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0;'
dc.b	1,0,0,1,0,1,0,2,0,2,1,3,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0;(
dc.b	2,0,3,1,3,1,3,2,3,2,2,3,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0;)
dc.b	1,0,3,0,0,2,1,0,1,0,1,3,0,2,3,2,0,2,0,3,1,0,1,0,1,0,1,0;AF
dc.b	0,0,2,0,0,0,0,1,1,0,1,1,0,1,2,1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