		dc.w	112-18,30,112-18,30,112-18,30,112-18,30,-1,-1,-1,-1,-1,-1,-1,-1

punchflag	dc.w	0
punchcount	dc.w	0
punchcount2	dc.w	0
punchpos	dc.w	0
floorpunch	dc.w	0
highpunch	dc.w	0
punchofsr	dc.w	1,1,1,1,1,1,1,-8,-8,-8,-8,1,1,1,1,1
punchofsl	dc.w	3,3,3,3,3,3,3,12,12,12,12,3,3,3,3,3
punchofsdr	dc.w	1,1,1,1,1,1,1,-6,-6,-6,-6,1,1,1,1,1
punchofsdl	dc.w	3,3,3,3,3,3,3,10,10,10,10,3,3,3,3,3

jumped		dc.w	0		
rstartflag	dc.w	0
ybstopspeed	dc.w	0
ybstopcount	dc.w	4

scytab		dc.l	_scrwidth*_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

		ds.w	64
firetab		ds.w	32*26

firecount	dc.w	0
firebuf		dc.w	0


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
m6actwait	ds.l	26
m6spd		ds.l	26
m6count		ds.l	26
m6ypos		ds.l	26
crstandflag	dc.w	0

colpos		ds.l	4

enterflag	dc.w	0
leaveflag	dc.w	0
enterflag2	dc.w	0
leaveflag2	dc.w	0
roomflag	dc.w	0
roomlevel	dc.w	0
roomno		dc.w	0
roomxsize	dc.l	0
roomysize	dc.l	0
roomxstart	dc.l	0
roomystart	dc.l	0
doorpos		dc.l	0

dpressflag	dc.w	0
bobstand	dc.w	0
bobstand2	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


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
rndseed2	dc.w	0
standcount	dc.w	0
absmanxold	dc.l	0
absmanyold	dc.l	0

boatflag	dc.w	0
boatrideflag	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

fireflag	dc.w	0

lorrypos	dc.w	0
lorryflag	dc.w	0
outoflorry	dc.w	0

ouchsetflag	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_lev3.i"
;------------------------------------------------
bplsettab	dc.l	0

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

_mainprgofs	equ	(_loaderofs-(end-start))-512
_tabofs		equ	_mainprgofs-$4e00
_skycols2	equ	_sprite-(skycolsend-skycols2)
_skycols1	equ	_sprite-(skycolsend-skycols1)







