idth*_scrdepth*3*1
		dc.l	_scrwidth*_scrdepth*3*2
		dc.l	_scrwidth*_scrdepth*3*3
		dc.l	_scrwidth*_scrdepth*3*4
		dc.l	40*_scrdepth*1
		dc.l	40*_scrdepth*2
		dc.l	40*_scrdepth*3
		dc.l	40*_scrdepth*4
		dc.w	64*_scrdepth*1+1
		dc.w	64*_scrdepth*2+1
		dc.w	64*_scrdepth*3+1
		dc.w	64*_scrdepth*4+1
		dc.w	64*_scrdepth*1+(_scrwidth/2)
		dc.w	64*_scrdepth*2+(_scrwidth/2)
		dc.w	64*_scrdepth*3+(_scrwidth/2)
		dc.w	64*_scrdepth*4+(_scrwidth/2)
		dc.w	-4,-2,-2,-1
		dc.w	4,2,2,1
		
scycount	dc.l	4
scyhard		dc.l	_scrwidth*_scrdepth*3*4
scyhard2	dc.l	40*_scrdepth*4
scysize		dc.w	64*_scrdepth*4+1
scysize2	dc.w	64*_scrdepth*4+(_scrwidth/2)

bbsofttab	dc.l	0,2560,5120,7680,10240,12800,15360,17920
		dc.l	20480,23040,25600,28160,30720,33280,35840,38400

fgaanimpos	dc.w	0
fgaanimtab	dc.l	74256,74258,74260,74262,74264,74266,74268,74270

m6resflag	dc.w	0
m6xadd		dc.l	0,16,32,48,64,80,96,112
		dc.l	0,16,32,48,64,80,96,112
		dc.l	0,16,32,48,64,80,96,112
		dc.l	0,112
		dc.l	80,64,80,48,64,80,32,48,64,80,0,16,32,48,64,80,0,16,32,48,64,80
m6yadd		dc.l	0,0,0,0,0,0,0,0
		dc.l	16,16,16,16,16,16,16,16
		dc.l	32,32,32,32,32,32,32,32
		dc.l	48,48
		dc.l	80,64,64,48,48,48,32,32,32,32,16,16,16,16,16,16,0,0,0,0,0,0
m6wait		dc.l	20,16,12,8,10,14,18,20
		dc.l	16,12,8,4,6,10,14,18
		dc.l	12,8,4,0,2,6,10,14
		dc.l	8,10
		dc.l	0,2,4,4,6,8,6,8,10,12,6,8,10,12,14,16,10,12,14,16,18,20
m6origdata	dc.l	$c6,$c7,$b7,$b8,$b9,$b2,$b3,$c6
		dc.l	$d1,$e4,$cb,$cc,$cd,$d1,$e5,$e4
		dc.l	$e5,$95,$92,$95,$94,$93,$92,$e5
		dc.l	$94,$94

		dc.l	12800+10,10240+8,10240+10,7680+6,7680+8,7680+10
		dc.l	5120+4,5120+6,5120+8,5120+10
		dc.l	2560,2560+2,2560+4,2560+6,2560+8,2560+10,0,2,4,6,8,10
		dc.l	2560,2560+2,2560+4,2560+6,2560+8,2560+10,0,2,4,6,8,10
m6data		ds.l	26
m6bpos11	ds.l	26
m6bpos12	ds.l	26
m6bpos21	ds.l	26
m6bpos22	ds.l	26
m6size1		ds.l	26
m6size2		ds.l	26
m6mod		ds.l	26
m6actwait	ds.l	26
m6spd		ds.l	26
m6count		ds.l	26
m6ypos		ds.l	26
crstandflag	dc.w	0

colpos		ds.l	4

dpressflag	dc.w	0
bobstand	dc.w	0
swsinkflag	dc.w	0
swsinkflag2	dc.w	0
swsinkcount	dc.w	0
actstick	dc.w	0

mudanimpos	dc.w	0
mudanimcount	dc.w	0
mudbobno	dc.l	0
mudenable	dc.w	0

ldatofs		dc.l	_ldatofs

tbold		dc.w	0
textline	ds.b	80
stupdflag	dc.w	0
stompflag	dc.w	0
tboldbutt	dc.w	0
jumppunchflag	dc.w	0

inventory	ds.w	_invsize
		dc.w	0,0
invno		ds.w	_invsize
invpos		dc.w	0

roomlevel	dc.l	0
roomxstart	dc.l	0

basketflag	dc.w	0
bfallflag	dc.w	0
bstandflag	dc.w	0
bxborderl	dc.w	0
bxborderr	dc.w	0
baddr		dc.l	0
bxcount		dc.w	0
bslidecount	dc.w	0

boatanimpos	dc.w	0
boatanimcount	dc.w	0

winchflag	dc.w	0
talkcount	dc.w	0
talkflag	dc.w	0
turnflag	dc.w	0
turncount	dc.w	0
turned		dc.w	0
pausecount	dc.w	0

rndseed		dc.w	0
standcount	dc.w	0
absmanxold	dc.l	0
absmanyold	dc.l	0

fpstatusflag	dc.w	0
fpgtab		dc.l	acg16l-ac,acg16l1-ac,acg16l2-ac
		dc.l	acg16p-ac,acg16p-ac,acg16p1-ac
fpetab		dc.l	ace16l-ac,ace16l1-ac,ace16l2-ac
		dc.l	ace16p-ac,ace16p-ac,ace16p1-ac

tbstatusflag	dc.w	0
tbgtab		dc.l	acg4l-ac,acg4l1-ac
tbetab		dc.l	ace4l-ac,ace4l1-ac

testflag	dc.w	0

boatflag	dc.w	0
boatrideflag	dc.w	0

basketanimcount	dc.w	0
basketanimpos	dc.w	0

ropedownflag	dc.w	0
ropedowncount	dc.w	0
ropexpos	dc.w	0
ropeypos	dc.w	0
ropeystartpos	dc.w	0
ropeblk		dc.l	0
ropestartblk	dc.l	0
ropeadr		dc.l	0
ropeoldadr	dc.l	0
ropeflag	dc.w	0
ropeanimpos	dc.w	0
ropeanimcount	dc.w	0

boringflag	dc.w	0
boringanim	dc.l	0
boringanimcnt	dc.w	0
boringcount	dc.w	0

newposflag	dc.w	0
monitorflag	dc.w	0
monpos		dc.l	0
shift		dc.w	0
alt		dc.w	0
inpbuf		ds.b	16

monitorfont	incbin	"game:gfx/others/monitor-font.bmp"

normpalette

oldrpos		dc.w	-2
;------------------------------------------------
;------------------------------------------------
		include	"includes:sin512x32768.i"
;------------------------------------------------
		include	"game:includes/colors_lev1.i"
;------------------------------------------------
bplsettab	dc.l	0

scolcount	dc.w	0
;------------------------------------------------
;------------------------------------------------
		include	"game:includes/text_lev1.i"
;------------------------------------------------
		include	"game:includes/blocktabs_lev1.i"
;------------------------------------------------
rndtab		include	"includes:rnd256x256.i"
;------------------------------------------------
;------------------------------------------------
end		
		IFEQ	_todisk
		ds.b	$80000-end
		ENDC

_mainprgofs	equ	(_loaderofs-(end-start))-512
_skycols2	equ	_sprite-(skycolsend-skycols2)
_skycols1	equ	_sprite-(skycolsend-skycols1)







