

	INCPUB	sgdata


	public	logtab8s





	IFEQ	1

bg2ptrs	dw bg2tab1&WM ,bg2tab1&WM
	dw bg2tab2&WM ,bg2tab2&WM
	dw bg2tab3&WM ,bg2tab3&WM
	dw bg2tab4&WM ,bg2tab4&WM
	dw bg2tab5&WM ,bg2tab5&WM
	dw bg2tab6&WM ,bg2tab6&WM
	dw bg2tab6&WM ,bg2tab6&WM
	dw bg2tab6&WM ,bg2tab6&WM
	dw bg2tab6&WM ,bg2tab6&WM
	dw bg2tab6&WM ,bg2tab6&WM

bg2tab1	dw 16384+0+16
	dw 16384+0+16,16384+0+16,16384+0+16
	dw 16384+0+16,16384+0+16,16384+0+16,16384+0+16,16384+0+16
	dw 16384+0+16,16384+0+16,16384+0+16,16384+0+16
	dw 16384+0+16,16384+0+16,16384+0+16,16384+0+16,16384+0+16
	dw 16384+0+16,16384+0+16,16384+0+16,16384+0+16
	dw 16384+0+16,16384+0+16,16384+0+16,16384+0+16,16384+0+16
	dw 16384+0+16,16384+0+16,16384+0+16
	dw 16384+0+16,16384+0+16

bg2tab2	dw 16384+8+12
	dw 16384+7+12,16384+7+12,16384+7+12
	dw 16384+6+12,16384+6+12,16384+6+12,16384+6+12,16384+6+12
	dw 16384+5+12,16384+5+12,16384+5+12,16384+5+12
	dw 16384+4+12,16384+4+12,16384+4+12,16384+4+12,16384+4+12
	dw 16384+3+12,16384+3+12,16384+3+12,16384+3+12
	dw 16384+2+12,16384+2+12,16384+2+12,16384+2+12,16384+2+12
	dw 16384+1+12,16384+1+12,16384+1+12
	dw 16384+0+12,16384+0+12

bg2tab3	dw 16384+14+9
	dw 16384+13+9
	dw 16384+12+9,16384+12+9
	dw 16384+11+9,16384+11+9,16384+11+9
	dw 16384+10+9,16384+10+9
	dw 16384+9+9,16384+9+9,16384+9+9
	dw 16384+8+9,16384+8+9
	dw 16384+7+9,16384+7+9,16384+7+9
	dw 16384+6+9,16384+6+9
	dw 16384+5+9,16384+5+9,16384+5+9
	dw 16384+4+9,16384+4+9
	dw 16384+3+9,16384+3+9,16384+3+9
	dw 16384+2+9,16384+2+9
	dw 16384+1+9
	dw 16384+0+9,16384+0+9

bg2tab4	dw 16384+18+7
	dw 16384+17+7,16384+17+7
	dw 16384+16+7,16384+16+7
	dw 16384+15+7
	dw 16384+14+7,16384+14+7
	dw 16384+13+7,16384+13+7
	dw 16384+12+7
	dw 16384+11+7,16384+11+7
	dw 16384+10+7,16384+10+7
	dw 16384+9+7
	dw 16384+8+7,16384+8+7
	dw 16384+7+7,16384+7+7
	dw 16384+6+7
	dw 16384+5+7,16384+5+7
	dw 16384+4+7,16384+4+7
	dw 16384+3+7
	dw 16384+2+7,16384+2+7
	dw 16384+1+7,16384+1+7
	dw 16384+0+7,16384+0+7

bg2tab5	dw 16384+24+4
	dw 16384+23+4
	dw 16384+22+4
	dw 16384+21+4
	dw 16384+20+4,16384+20+4
	dw 16384+19+4
	dw 16384+18+4
	dw 16384+17+4,16384+17+4
	dw 16384+16+4
	dw 16384+15+4
	dw 16384+14+4,16384+14+4
	dw 16384+13+4
	dw 16384+12+4
	dw 16384+11+4
	dw 16384+10+4,16384+10+4
	dw 16384+9+4
	dw 16384+8+4
	dw 16384+7+4,16384+7+4
	dw 16384+6+4
	dw 16384+5+4
	dw 16384+4+4,16384+4+4
	dw 16384+3+4
	dw 16384+2+4
	dw 16384+1+4
	dw 16384+0+4,16384+0+4

bg2tab6	dw 16384+32
	dw 16384+31,16384+30,16384+29
	dw 16384+28,16384+27,16384+26
	dw 16384+25,16384+24,16384+23,16384+22,16384+21
	dw 16384+20,16384+19,16384+18,16384+17
	dw 16384+16
	dw 16384+15,16384+14,16384+13,16384+12
	dw 16384+11,16384+10,16384+9,16384+8
	dw 16384+7,16384+6,16384+5
	dw 16384+4,16384+3,16384+2,16384+1

;Block -----------------------------------------V

X_data_start

st_lineM	dw	%1111111111111111
	dw	%0111111101111111
	dw	%0011111100111111
	dw	%0001111100011111
	dw	%0000111100001111
	dw	%0000011100000111
	dw	%0000001100000011
	dw	%0000000100000001

ed_lineM	dw	%1000000010000000
	dw	%1100000011000000
	dw	%1110000011100000
	dw	%1111000011110000
	dw	%1111100011111000
	dw	%1111110011111100
	dw	%1111111011111110
	dw	%1111111111111111


	ENDC

pbittab
	IFEQ	1
	rept	32	;num_col
	dw	$8080,$4040,$2020,$1010,$808,$404,$202,$101
	endr
	ENDC

pbittabn
	IFEQ	1
	rept	32	;num_col
	dw	$7f7f,~$4040,~$2020,~$1010,~$808,~$404,~$202,~$101
	endr
	ENDC


pxoftab
tbtv	=	0
ttx	=	0
	IFEQ	1
	rept	32	;num_col
	dw	tbtv,tbtv,tbtv,tbtv,tbtv,tbtv,tbtv,tbtv
tbtv	=	tbtv+col_size
	endr
	ENDC

pyoftab
tbtv	=	0
	IFEQ	1
	rept	16
	dw	tbtv
	dw	tbtv+2
	dw	tbtv+4
	dw	tbtv+6
	dw	tbtv+8
	dw	tbtv+10
	dw	tbtv+12
	dw	tbtv+14
tbtv	=	tbtv+32
	endr
	ENDC

X_data_end

;Block---------------------------------------------A

	
;
;pxoftab
;tbtv	=	0
;
;	rept	32	;num_col
;	dw	tbtv,tbtv,tbtv,tbtv,tbtv,tbtv,tbtv,tbtv
;tbtv	=	tbtv+col_size
;	endr
;
;pyoftab
;tbtv	=	0
;	rept	16
;	dw	tbtv
;	dw	tbtv+2
;	dw	tbtv+4
;	dw	tbtv+6
;	dw	tbtv+8
;	dw	tbtv+10
;	dw	tbtv+12
;	dw	tbtv+14
;tbtv	=	tbtv+32
;	endr
;






;x	=	0
;y	=	0
;n	=	0

	IFEQ	1

colourtab0
	db	0,$ff,0,$ff,0,$ff,0,$ff,0,$ff,0,$ff,0,$ff,0,$ff
colourtab1
	db	0,0,$ff,$ff,0,0,$ff,$ff,0,0,$ff,$ff,0,0,$ff,$ff
colourtab2
	db	0,0,0,0,$ff,$ff,$ff,$ff,0,0,0,0,$ff,$ff,$ff,$ff
colourtab3
	db	0,0,0,0,0,0,0,0,$ff,$ff,$ff,$ff,$ff,$ff,$ff,$ff



colourtab01
	dw	$0000,$00ff,$ff00,$ffff,$0000,$00ff,$ff00,$ffff
	dw	$0000,$00ff,$ff00,$ffff,$0000,$00ff,$ff00,$ffff
colourtab23
	dw	$0000,$0000,$0000,$0000,$00ff,$00ff,$00ff,$00ff
	dw	$ff00,$ff00,$ff00,$ff00,$ffff,$ffff,$ffff,$ffff


;testshl	db	0,0,0,0,0,0,0,0
;testshh	db	3,4,4,5,4,1,6,7
;testshh	db	1,10,15,5,12,10,6,3



	ENDC

;----------------------------------------------------------------






;************************************************

rndbyte	macro
rndval =	(rndval*91+$61d7)&$ffff
	db	rndval&255
	endm

rndval	=	$5a79

mrndtab
;	rept	256
;	rndbyte
;	endr


Intro256Pal
	incbinfile	data\nintendo.pal
;	rgbw	0,0,0
;;	shades	15,1,1,1,31,31,31	; $00 greys
;;	shades	15,5,5,5,20,20,20	; $00 greys
;	rgbw	2,2,2
;	rgbw	3,3,3
;	rgbw	4,4,4
;	rgbw	6,6,6
;	rgbw	8,8,8
;	rgbw	10,10,10
;	rgbw	11,11,11
;	rgbw	13,13,13
;	rgbw	15,15,15
;	rgbw	17,17,17
;	rgbw	19,19,19
;	rgbw	21,21,21
;	rgbw	23,23,23
;	rgbw	26,26,26
;	rgbw	29,29,29
;
;
;	rgbw	0,0,0
;	shades	15,1,0,0,31,0,0		; $10 reds
;
;	rgbw	0,0,0
;	shades	15,0,1,0,0,31,0		; $20 greens
;
;	rgbw	0,0,0
;	shades	15,0,0,1,0,0,31		; $30 blues
;
;	rgbw	0,0,0
;	shades	15,0,0,1,31,31,0 	; $40 yellows
;
;	rgbw	0,0,0
;	shades	15,0,0,1,31,0,31	; $50 magentas
;
;	rgbw	0,0,0
;	shades	15,0,0,1,0,31,31	; $60 cyans
;
;	rept	16			; $70 game palette
;	dw	0
;	endr
;
;	rgbw	0,0,0
;	shades	3,31,1,1,31,15,1	; $80 rainbow
;	shades	3,31,15,1,31,31,1
;	shades	3,31,31,1,1,31,1
;	shades	3,1,31,1,1,1,31
;	shades	3,1,1,31,15,1,15
;

	IFEQ	1
	rgbw	0,0,0
gs	=	1			; $90 combat (green/brown)
	rept	7
	rgbw	0,gs,0
	rgbw	gs/2,gs/2,0
gs	=	gs+4
	endr
	rgbw	0,31,0


	rgbw	0,0,0
gs	=	1			; $a0 blue marble
	rept	7
	rgbw	0,0,gs
	rgbw	0,0,gs/2
gs	=	gs+4
	endr
	rgbw	0,0,31


	ENDC

;************************************************




ddbw	macro
	db	\1,\1
	endm

chardw	macro
	ifne	easytext
	db	\1,0
	elseif
	db	\1,\1
	endc

	endm

	IFEQ	1
debugspace
	chardw	%00000000
	chardw	%00000000
	chardw	%00000000
	chardw	%00000000
	chardw	%00000000
	chardw	%00000000
	chardw	%00000000
	chardw	%00000000


debugchars
;0
	chardw	%00000000
	chardw	%01111100
	chardw	%11000110
	chardw	%11001110
	chardw	%11010110
	chardw	%11100110
	chardw	%11000110
	chardw	%01111100

;1
	chardw	%00000000
	chardw	%00110000
	chardw	%01110000
	chardw	%00110000
	chardw	%00110000
	chardw	%00110000
	chardw	%00110000
	chardw	%01111000

;2
	chardw	%00000000
	chardw	%01111000
	chardw	%00001100
	chardw	%00001100
	chardw	%01111000
	chardw	%11000000
	chardw	%11000000
	chardw	%11111100

;3
	chardw	%00000000
	chardw	%11111100
	chardw	%00001100
	chardw	%00011000
	chardw	%00110000
	chardw	%00001100
	chardw	%11001100
	chardw	%01111000

;4
	chardw	%00000000
	chardw	%00011100
	chardw	%00111100
	chardw	%01101100
	chardw	%11001100
	chardw	%11111110
	chardw	%00001100
	chardw	%00001100

;5
	chardw	%00000000
	chardw	%11111110
	chardw	%11000000
	chardw	%11111100
	chardw	%00000110
	chardw	%00000110
	chardw	%11000110
	chardw	%01111100

;6
	chardw	%00000000
	chardw	%01111100
	chardw	%11000000
	chardw	%11111100
	chardw	%11000110
	chardw	%11000110
	chardw	%11000110
	chardw	%00111100

;7
	chardw	%00000000
	chardw	%11111100
	chardw	%00001100
	chardw	%00001100
	chardw	%00011100
	chardw	%00110000
	chardw	%00110000
	chardw	%00110000

;8
	chardw	%00000000
	chardw	%01111100
	chardw	%11000110
	chardw	%11000110
	chardw	%01111100
	chardw	%11000110
	chardw	%11000110
	chardw	%01111100

;9
	chardw	%00000000
	chardw	%01111100
	chardw	%11000110
	chardw	%11000110
	chardw	%11000110
	chardw	%01111110
	chardw	%00000110
	chardw	%00111100

;A
	chardw	%00000000
	chardw	%00111000
	chardw	%01101100
	chardw	%11000110
	chardw	%11000110
	chardw	%11111110
	chardw	%11000110
	chardw	%11000110

;B
	chardw	%00000000
	chardw	%11111100
	chardw	%11000110
	chardw	%11000110
	chardw	%11111000
	chardw	%11000110
	chardw	%11000110
	chardw	%11111100

;C
	chardw	%00000000
	chardw	%01111100
	chardw	%11000110
	chardw	%11000000
	chardw	%11000000
	chardw	%11000000
	chardw	%11000110
	chardw	%01111100

;D
	chardw	%00000000
	chardw	%11111000
	chardw	%11001100
	chardw	%11000110
	chardw	%11000110
	chardw	%11000110
	chardw	%11001100
	chardw	%11111000

;E
	chardw	%00000000
	chardw	%11111110
	chardw	%11000000
	chardw	%11000000
	chardw	%11111000
	chardw	%11000000
	chardw	%11000000
	chardw	%11111110

;F
	chardw	%00000000
	chardw	%11111110
	chardw	%11000000
	chardw	%11000000
	chardw	%11111000
	chardw	%11000000
	chardw	%11000000
	chardw	%11000000

;G
	chardw	%00000000
	chardw	%01111100
	chardw	%11000110
	chardw	%11000000
	chardw	%11011110
	chardw	%11000110
	chardw	%11000110
	chardw	%01111100

;H
	chardw	%00000000
	chardw	%11000110
	chardw	%11000110
	chardw	%11000110
	chardw	%11111110
	chardw	%11000110
	chardw	%11000110
	chardw	%11000110

;I
	chardw	%00000000
	chardw	%01111000
	chardw	%00110000
	chardw	%00110000
	chardw	%00110000
	chardw	%00110000
	chardw	%00110000
	chardw	%01111000

;J
	chardw	%00000000
	chardw	%00111110
	chardw	%00000110
	chardw	%00000110
	chardw	%00000110
	chardw	%00000110
	chardw	%11000110
	chardw	%01111100
;k
	chardw	%00000000
	chardw	%11000110
	chardw	%11011000
	chardw	%11110000
	chardw	%11100000
	chardw	%11110000
	chardw	%11001100
	chardw	%11000110
;L
	chardw	%00000000
	chardw	%11000000
	chardw	%11000000
	chardw	%11000000
	chardw	%11000000
	chardw	%11000000
	chardw	%11000000
	chardw	%11111110
;M
	chardw	%00000000
	chardw	%10000010
	chardw	%11000110
	chardw	%11101110
	chardw	%11111110
	chardw	%11010110
	chardw	%11000110
	chardw	%11000110
;N
	chardw	%00000000
	chardw	%10000110
	chardw	%11000110
	chardw	%11100110
	chardw	%11110110
	chardw	%11011110
	chardw	%11001110
	chardw	%11000110
;O
	chardw	%00000000
	chardw	%01111100
	chardw	%11000110
	chardw	%11000110
	chardw	%11000110
	chardw	%11000110
	chardw	%11000110
	chardw	%01111100
;P
	chardw	%00000000
	chardw	%11111100
	chardw	%11000110
	chardw	%11000110
	chardw	%11000110
	chardw	%11111100
	chardw	%11000000
	chardw	%11000000
;Q
	chardw	%00000000
	chardw	%01111100
	chardw	%11000110
	chardw	%11000110
	chardw	%11010110
	chardw	%11011110
	chardw	%11001110
	chardw	%01111110
;R
	chardw	%00000000
	chardw	%11111100
	chardw	%11000110
	chardw	%11000110
	chardw	%11111100
	chardw	%11011000
	chardw	%11001100
	chardw	%11000110
;S
	chardw	%00000000
	chardw	%00111100
	chardw	%11000110
	chardw	%11000000
	chardw	%01111100
	chardw	%00000110
	chardw	%11000110
	chardw	%01111100
;T
	chardw	%00000000
	chardw	%11111110
	chardw	%00110000
	chardw	%00110000
	chardw	%00110000
	chardw	%00110000
	chardw	%00110000
	chardw	%00110000
;U
	chardw	%00000000
	chardw	%11000110
	chardw	%11000110
	chardw	%11000110
	chardw	%11000110
	chardw	%11000110
	chardw	%11000110
	chardw	%01111100
;V
	chardw	%00000000
	chardw	%11000110
	chardw	%11000110
	chardw	%11000110
	chardw	%01101100
	chardw	%01101100
	chardw	%00111000
	chardw	%00010000
;W
	chardw	%00000000
	chardw	%11000110
	chardw	%11000110
	chardw	%11010110
	chardw	%11111110
	chardw	%11101110
	chardw	%11000110
	chardw	%10000010
;X
	chardw	%00000000
	chardw	%11000110
	chardw	%01101100
	chardw	%00111000
	chardw	%00111000
	chardw	%01101100
	chardw	%11000110
	chardw	%11000110
;Y
	chardw	%00000000
	chardw	%11001100
	chardw	%11001100
	chardw	%11001100
	chardw	%01111000
	chardw	%00110000
	chardw	%00110000
	chardw	%00110000
;Z
	chardw	%00000000
	chardw	%11111110
	chardw	%00001100
	chardw	%00011000
	chardw	%00110000
	chardw	%01100000
	chardw	%11000000
	chardw	%11111110
;- 36
	chardw	%00000000
	chardw	%00000000
	chardw	%00000000
	chardw	%00000000
	chardw	%01111110
	chardw	%00000000
	chardw	%00000000
	chardw	%00000000
;- 37
	chardw	%01001000
	chardw	%10101000
	chardw	%11101000
	chardw	%10101110
	chardw	%00010000
	chardw	%00110000
	chardw	%00010000
	chardw	%00010000
;- 38
	chardw	%01001000
	chardw	%10101000
	chardw	%11101000
	chardw	%10101110
	chardw	%00010000
	chardw	%00101000
	chardw	%00011000
	chardw	%00111000
;- 39
	chardw	%00000000
	chardw	%01000000
	chardw	%01000000
	chardw	%01010000
	chardw	%01010000
	chardw	%00010000
	chardw	%00010000
	chardw	%00011110
;- 40
	chardw	%00000000
	chardw	%01000000
	chardw	%01000000
	chardw	%01010010
	chardw	%01010010
	chardw	%00011110
	chardw	%00010010
	chardw	%00010010
;+ 41
	chardw	%00000000
	chardw	%00000000
	chardw	%00110000
	chardw	%00110000
	chardw	%11111100
	chardw	%00110000
	chardw	%00110000
	chardw	%00000000
;_ 42
	chardw	%00000000
	chardw	%00000000
	chardw	%00000000
	chardw	%00000000
	chardw	%00000000
	chardw	%00000000
	chardw	%00000000
	chardw	%11111110

	ENDC


	IFEQ	1
reciptab8
	db	0
	db	255
tv	=	2
	rept	254
	db	256/tv
tv	=	tv+1
	endr

;--------------------------------
;signed 32768/n tab (n=-255 to +255)
tv	=	-255
	rept	254
	dw	32768/tv
tv	=	tv+1
	endr
	dw	-32767

	ENDC
reciptab16s
	dw	0
	dw	32767
tv	=	2
	rept	254
	dw	32768/tv
tv	=	tv+1
	endr




;laser bolt positions
numlaserpos	equ	12
zv	=	256
dv	=	150
xv	=	90*zv
yv	=	50*zv
zv	=	zv+dv*(numlaserpos-1)
laserxytab
;	rept	numlaserpos
;	db	xv/zv,yv/zv+92
;;	?zv
;zv	=	zv-dv
;	endr	
;



hover1mess	;db	"HOVER 1",0
tankmess	;db	"TANK",0
walkermess1	;db	"WALKER 1",0
rellmess1	;db	"REL AXIS 1",0
rellmess2	;db	"REL AXIS 2",0
demo_mess	;db	"DEMO",0
PauseMess	;db	"GAME PAUSED",0
nullmess	;db	" ",0

;argtankmess	;db	"ARG TANK",0
;walkermess2	;db	"WALKER 2",0
;walkermess3	;db	"WALKER 3",0
;starshipmess
;	;db	"STARSHIP",0
rellmess3	;db	"REL AXIS 3",0


typenames
;	dw	Hover1mess
;	dw	tankmess
;	dw	walkermess1
;	dw	rellmess1
;	dw	rellmess2

;	dw	argtankmess
;	dw	walkermess2
;	dw	walkermess3
;	dw	rellmess3


menutab
	db	"STAR GLIDER 01 NOV 1991"
;	menub	<WALKER JUMP TIME    >,0,0,255,NULL
;	menub	<WALKER JUMP SPEED   >,0,0,255,NULL
;	menub	<ALIEN MISSILE2 ANGLE>,0,0,deg90,NULL
;	submenu	<WEAPON MENU>,wepmenu
;	menuend


wepmenu
;	menutitle	<WEAPON MENU>
;	menub	<P LASER VEL         >,0,40,254,NULL
;	menub	<LASER BOLT 1 COUNT  >,0,4,127,NULL
;	menub	<MISSILE 1 VEL       >,0,40,254,NULL
;	menub	<MISSILE 1 COUNT     >,0,4,127,NULL
;	menub	<MISSILE 2 VEL       >,0,40,254,NULL
;	menub	<HOME MISSILE 1 VEL  >,0,40,254,NULL
;	menub	<HOME MISSILE 1 COUNT>,0,4,127,NULL
;	menub	<HOME MISSILE 1 TURN >,0,4,deg90,NULL
;	submenu	<MAIN MENU>,menutab
;	menuend


sm2	macro
	db	\1,\1,\2,\2,\3,\3,\4,\4,\5,\5,\6,\6,\7,\7,\8,\8
	endm

sm	macro
	db	\1,\2,\3,\4,\5,\6,\7,\8
	endm

c1	equ	$11
c2	equ	$22

b1	equ	10
b2	equ	13



shadesof	macro
;	db	$\1b
;	db	$\1b
;	db	$\1c
;	db	$\1c
;	db	$\1d
;	db	$\1d
;	db	$\1e
;	db	$\1e
;	db	$\1f
;	db	$\1f
	endm






shadestab
	IFEQ	1
ls_grey	equ	0
	dw	shades_grey
ls_red	equ	1
	dw	shades_red
ls_blue	equ	2
	dw	shades_blue
ls_green1	equ	3
	dw	shades_green1
ls_yellow1	equ	4
	dw	shades_yellow1
ls_metblue1	equ	5
	dw	shades_metblue
ls_red1	equ	6
	dw	shades_red1
ls_blue1	equ	7
	dw	shades_blue1
ls_green2	equ	8
	dw	shades_green2
ls_yellow2	equ	9
	dw	shades_yellow2
ls_red2	equ	10
	dw	shades_red2
ls_red3	equ	11
	dw	shades_red3
ls_blue2	equ	12
	dw	shades_blue2
ls_blue3	equ	13
	dw	shades_blue3
ls_metblue2	equ	14
	dw	shades_metblue2
ls_organge1	equ	15
	dw	shades_orange1
ls_organge2	equ	16
	dw	shades_orange2
ls_brown	equ	17
	dw	shades_brown
ls_yellow3	equ	18
	dw	shades_yellow3
ls_yellow4	equ	19
	dw	shades_yellow4
ls_green3	equ	20
	dw	shades_green3
ls_green4	equ	21
	dw	shades_green4
nls_smoke	equ	22
	dw	shades_smoke
nls_yellow	equ	23
	dw	shades_pyellow




shades_grey
	db	$9a
	db	$aa
	db	$ab
	db	$bb
	db	$bb
	db	$cc
	db	$cd
	db	$dd
	db	$de
	db	$ee
shades_grey1
	db	$bb
	db	$bb
	db	$bc
	db	$bc
	db	$cc
	db	$cc
	db	$cd
	db	$dd
	db	$de
	db	$ee
shades_grey2
	db	$99
	db	$99
	db	$9a
	db	$9a
	db	$aa
	db	$aa
	db	$ab
	db	$bb
	db	$bc
	db	$cc
shades_red2
shades_red3
shades_red
	db	$1a
	db	$1a
	db	$1b
	db	$1b
	db	$2b
	db	$2b
	db	$2c
	db	$3c
	db	$3d
	db	$3e
shades_red1
	db	$19
	db	$19
	db	$1a
	db	$1a
	db	$11
	db	$11
	db	$12
	db	$22
	db	$23
	db	$33
shades_blue
shades_metblue
shades_metblue2
shades_blue3
shades_blue1
	db	$4a
	db	$4a
	db	$4b
	db	$4b
	db	$5b
	db	$5b
	db	$5c
	db	$6c
	db	$6d
	db	$6e
shades_blue2
	db	$49
	db	$49
	db	$4a
	db	$4a
	db	$44
	db	$44
	db	$45
	db	$55
	db	$56
	db	$66
shades_orange1
shades_orange2
shades_brown
shades_smoke
shades_mag
	db	$14
	db	$14
	db	$14
	db	$24
	db	$24
	db	$25
	db	$25
	db	$26
	db	$35
	db	$36
shades_green3
shades_green4
shades_green1
	db	$79
	db	$79
	db	$79
	db	$7a
	db	$7a
	db	$7b
	db	$7b
	db	$7c
	db	$7d
	db	$7e
shades_green2
	db	$79
	db	$79
	db	$79
	db	$7a
	db	$7a
	db	$7a
	db	$7b
	db	$7b
	db	$77
	db	$77
shades_yellow3
shades_yellow4
shades_pyellow
shades_yellow1
	db	$89
	db	$89
	db	$89
	db	$8a
	db	$8a
	db	$8b
	db	$8b
	db	$8c
	db	$8d
	db	$8e
shades_yellow2
	db	$89
	db	$89
	db	$89
	db	$8a
	db	$8a
	db	$8a
	db	$8b
	db	$8b
	db	$88
	db	$88

	ENDC







depthtabtab
	dw	night1&WM
	dw	mist1&WM
	dw	desert1&WM
	dw	marine1&WM









;Frames per second table BCD --------------
fpstab
	IFEQ	1
	db	$99	;0
	db	$60	;1
	db	$30	;2
	db	$20	;3
	db	$15	;4
	db	$12	;5
	db	$10	;6
	db	$09	;7
	db	$08	;8
	db	$07	;9
	db	$06	;10
	db	$05	;11
	db	$05	;12
	db	$05	;13
	db	$04	;14
	db	$04	;15
	db	$04	;16
	db	$04	;17
	db	$03	;18
	db	$03	;19
	db	$03	;20
	db	$03	;21
	db	$03	;22
	db	$03	;23
	db	$03	;24
	db	$02	;25
	db	$02	;26
	db	$02	;27
	db	$02	;28
	db	$02	;29
	db	$02	;30
	db	$02	;31
	db	$02	;32
	db	$02	;33
	db	$02	;34
	db	$02	;35
	db	$02	;36
	db	$02	;37
	db	$02	;38
	db	$02	;39
	db	$02	;40
	rept	256-40
	db	$01	;XX
	endr

	ENDC

sintab
	DB	0
	DB	3
	DB	6
	DB	9
	DB	12
	DB	15
	DB	18
	DB	21
	DB	24
	DB	27
	DB	30
	DB	33
	DB	36
	DB	39
	DB	42
	DB	45
	DB	48
	DB	51
	DB	54
	DB	57
	DB	59
	DB	62
	DB	65
	DB	67
	DB	70
	DB	73
	DB	75
	DB	78
	DB	80
	DB	82
	DB	85
	DB	87
	DB	89
	DB	91
	DB	94
	DB	96
	DB	98
	DB	100
	DB	102
	DB	103
	DB	105
	DB	107
	DB	108
	DB	110
	DB	112
	DB	113
	DB	114
	DB	116
	DB	117
	DB	118
	DB	119
	DB	120
	DB	121
	DB	122
	DB	123
	DB	123
	DB	124
	DB	125
	DB	125
	DB	126
	DB	126
	DB	126
	DB	126
	DB	126

costab
	DB	127
	DB	126
	DB	126
	DB	126
	DB	126
	DB	126
	DB	125
	DB	125
	DB	124
	DB	123
	DB	123
	DB	122
	DB	121
	DB	120
	DB	119
	DB	118
	DB	117
	DB	116
	DB	114
	DB	113
	DB	112
	DB	110
	DB	108
	DB	107
	DB	105
	DB	103
	DB	102
	DB	100
	DB	98
	DB	96
	DB	94
	DB	91
	DB	89
	DB	87
	DB	85
	DB	82
	DB	80
	DB	78
	DB	75
	DB	73
	DB	70
	DB	67
	DB	65
	DB	62
	DB	59
	DB	57
	DB	54
	DB	51
	DB	48
	DB	45
	DB	42
	DB	39
	DB	36
	DB	33
	DB	30
	DB	27
	DB	24
	DB	21
	DB	18
	DB	15
	DB	12
	DB	9
	DB	6
	DB	3
	DB	0
	DB	-3
	DB	-6
	DB	-9
	DB	-12
	DB	-15
	DB	-18
	DB	-21
	DB	-24
	DB	-27
	DB	-30
	DB	-33
	DB	-36
	DB	-39
	DB	-42
	DB	-45
	DB	-48
	DB	-51
	DB	-54
	DB	-57
	DB	-59
	DB	-62
	DB	-65
	DB	-67
	DB	-70
	DB	-73
	DB	-75
	DB	-78
	DB	-80
	DB	-82
	DB	-85
	DB	-87
	DB	-89
	DB	-91
	DB	-94
	DB	-96
	DB	-98
	DB	-100
	DB	-102
	DB	-103
	DB	-105
	DB	-107
	DB	-108
	DB	-110
	DB	-112
	DB	-113
	DB	-114
	DB	-116
	DB	-117
	DB	-118
	DB	-119
	DB	-120
	DB	-121
	DB	-122
	DB	-123
	DB	-123
	DB	-124
	DB	-125
	DB	-125
	DB	-126
	DB	-126
	DB	-126
	DB	-126
	DB	-126
	DB	-127
	DB	-126
	DB	-126
	DB	-126
	DB	-126
	DB	-126
	DB	-125
	DB	-125
	DB	-124
	DB	-123
	DB	-123
	DB	-122
	DB	-121
	DB	-120
	DB	-119
	DB	-118
	DB	-117
	DB	-116
	DB	-114
	DB	-113
	DB	-112
	DB	-110
	DB	-108
	DB	-107
	DB	-105
	DB	-103
	DB	-102
	DB	-100
	DB	-98
	DB	-96
	DB	-94
	DB	-91
	DB	-89
	DB	-87
	DB	-85
	DB	-82
	DB	-80
	DB	-78
	DB	-75
	DB	-73
	DB	-70
	DB	-67
	DB	-65
	DB	-62
	DB	-59
	DB	-57
	DB	-54
	DB	-51
	DB	-48
	DB	-45
	DB	-42
	DB	-39
	DB	-36
	DB	-33
	DB	-30
	DB	-27
	DB	-24
	DB	-21
	DB	-18
	DB	-15
	DB	-12
	DB	-9
	DB	-6
	DB	-3
	DB	0
	DB	3
	DB	6
	DB	9
	DB	12
	DB	15
	DB	18
	DB	21
	DB	24
	DB	27
	DB	30
	DB	33
	DB	36
	DB	39
	DB	42
	DB	45
	DB	48
	DB	51
	DB	54
	DB	57
	DB	59
	DB	62
	DB	65
	DB	67
	DB	70
	DB	73
	DB	75
	DB	78
	DB	80
	DB	82
	DB	85
	DB	87
	DB	89
	DB	91
	DB	94
	DB	96
	DB	98
	DB	100
	DB	102
	DB	103
	DB	105
	DB	107
	DB	108
	DB	110
	DB	112
	DB	113
	DB	114
	DB	116
	DB	117
	DB	118
	DB	119
	DB	120
	DB	121
	DB	122
	DB	123
	DB	123
	DB	124
	DB	125
	DB	125
	DB	126
	DB	126
	DB	126
	DB	126
	DB	126


sintab16
	dw $0000,$0324,$0647,$096A,$0C8B,$0FAB,$12C7,$15E1
	dw $18F8,$1C0B,$1F19,$2223,$2527,$2826,$2B1E,$2E10
	dw $30FB,$33DE,$36B9,$398C,$3C56,$3F16,$41CD,$447A
	dw $471C,$49B3,$4C3F,$4EBF,$5133,$539A,$55F4,$5842
	dw $5A81,$5CB3,$5ED6,$60EB,$62F1,$64E7,$66CE,$68A5
	dw $6A6C,$6C23,$6DC9,$6F5E,$70E1,$7254,$73B5,$7503
	dw $7640,$776B,$7883,$7989,$7A7C,$7B5C,$7C29,$7CE2
	dw $7D89,$7E1C,$7E9C,$7F08,$7F61,$7FA6,$7FD7,$7FF5
	dw $7FFF,$7FF5,$7FD7,$7FA6,$7F61,$7F08,$7E9C,$7E1C
	dw $7D89,$7CE2,$7C29,$7B5C,$7A7C,$7989,$7883,$776B
	dw $7640,$7503,$73B5,$7254,$70E1,$6F5E,$6DC9,$6C23
	dw $6A6C,$68A5,$66CE,$64E7,$62F1,$60EB,$5ED6,$5CB3
	dw $5A81,$5842,$55F4,$539A,$5133,$4EBF,$4C3F,$49B3
	dw $471C,$447A,$41CD,$3F16,$3C56,$398C,$36B9,$33DE
	dw $30FB,$2E10,$2B1E,$2826,$2527,$2223,$1F19,$1C0B
	dw $18F8,$15E1,$12C7,$0FAB,$0C8B,$096A,$0647,$0324
	dw $0000,$FCDC,$F9B9,$F696,$F375,$F055,$ED39,$EA1F
	dw $E708,$E3F5,$E0E7,$DDDD,$DAD9,$D7DA,$D4E2,$D1F0
	dw $CF05,$CC22,$C947,$C674,$C3AA,$C0EA,$BE33,$BB86
	dw $B8E4,$B64D,$B3C1,$B141,$AECD,$AC66,$AA0C,$A7BE
	dw $A57F,$A34D,$A12A,$9F15,$9D0F,$9B19,$9932,$975B
	dw $9594,$93DD,$9237,$90A2,$8F1F,$8DAC,$8C4B,$8AFD
	dw $89C0,$8895,$877D,$8677,$8584,$84A4,$83D7,$831E
	dw $8277,$81E4,$8164,$80F8,$809F,$805A,$8029,$800B
	dw $8001,$800B,$8029,$805A,$809F,$80F8,$8164,$81E4
	dw $8277,$831E,$83D7,$84A4,$8584,$8677,$877D,$8895
	dw $89C0,$8AFD,$8C4B,$8DAC,$8F1F,$90A2,$9237,$93DD
	dw $9594,$975B,$9932,$9B19,$9D0F,$9F15,$A12A,$A34D
	dw $A57F,$A7BE,$AA0C,$AC66,$AECD,$B141,$B3C1,$B64D
	dw $B8E4,$BB86,$BE33,$C0EA,$C3AA,$C674,$C947,$CC22
	dw $CF05,$D1F0,$D4E2,$D7DA,$DAD9,$DDDD,$E0E7,$E3F5
	dw $E708,$EA1F,$ED39,$F055,$F375,$F696,$F9B9,$FCDC
	dw $0000


	ifne	0
	DW	0
	DW	100
	DW	201
	DW	301
	DW	402
	DW	502
	DW	603
	DW	703
	DW	804
	DW	904
	DW	1005
	DW	1105
	DW	1206
	DW	1306
	DW	1407
	DW	1507
	DW	1607
	DW	1708
	DW	1808
	DW	1909
	DW	2009
	DW	2109
	DW	2210
	DW	2310
	DW	2410
	DW	2510
	DW	2611
	DW	2711
	DW	2811
	DW	2911
	DW	3011
	DW	3111
	DW	3211
	DW	3311
	DW	3411
	DW	3511
	DW	3611
	DW	3711
	DW	3811
	DW	3911
	DW	4011
	DW	4110
	DW	4210
	DW	4310
	DW	4409
	DW	4509
	DW	4609
	DW	4708
	DW	4808
	DW	4907
	DW	5006
	DW	5106
	DW	5205
	DW	5304
	DW	5403
	DW	5503
	DW	5602
	DW	5701
	DW	5800
	DW	5898
	DW	5997
	DW	6096
	DW	6195
	DW	6294
	DW	6392
	DW	6491
	DW	6589
	DW	6688
	DW	6786
	DW	6884
	DW	6983
	DW	7081
	DW	7179
	DW	7277
	DW	7375
	DW	7473
	DW	7571
	DW	7669
	DW	7766
	DW	7864
	DW	7961
	DW	8059
	DW	8156
	DW	8254
	DW	8351
	DW	8448
	DW	8545
	DW	8642
	DW	8739
	DW	8836
	DW	8933
	DW	9029
	DW	9126
	DW	9223
	DW	9319
	DW	9415
	DW	9512
	DW	9608
	DW	9704
	DW	9800
	DW	9896
	DW	9991
	DW	10087
	DW	10183
	DW	10278
	DW	10374
	DW	10469
	DW	10564
	DW	10659
	DW	10754
	DW	10849
	DW	10944
	DW	11039
	DW	11133
	DW	11228
	DW	11322
	DW	11416
	DW	11511
	DW	11605
	DW	11699
	DW	11793
	DW	11886
	DW	11980
	DW	12073
	DW	12167
	DW	12260
	DW	12353
	DW	12446
	DW	12539
	DW	12632
	DW	12725
	DW	12817
	DW	12910
	DW	13002
	DW	13094
	DW	13186
	DW	13278
	DW	13370
	DW	13462
	DW	13554
	DW	13645
	DW	13736
	DW	13828
	DW	13919
	DW	14010
	DW	14100
	DW	14191
	DW	14282
	DW	14372
	DW	14462
	DW	14552
	DW	14642
	DW	14732
	DW	14822
	DW	14912
	DW	15001
	DW	15090
	DW	15180
	DW	15269
	DW	15357
	DW	15446
	DW	15535
	DW	15623
	DW	15712
	DW	15800
	DW	15888
	DW	15976
	DW	16063
	DW	16151
	DW	16238
	DW	16325
	DW	16413
	DW	16499
	DW	16586
	DW	16673
	DW	16759
	DW	16846
	DW	16932
	DW	17018
	DW	17104
	DW	17189
	DW	17275
	DW	17360
	DW	17445
	DW	17530
	DW	17615
	DW	17700
	DW	17784
	DW	17869
	DW	17953
	DW	18037
	DW	18121
	DW	18204
	DW	18288
	DW	18371
	DW	18454
	DW	18537
	DW	18620
	DW	18703
	DW	18785
	DW	18868
	DW	18950
	DW	19032
	DW	19113
	DW	19195
	DW	19276
	DW	19358
	DW	19439
	DW	19519
	DW	19600
	DW	19681
	DW	19761
	DW	19841
	DW	19921
	DW	20001
	DW	20080
	DW	20159
	DW	20239
	DW	20318
	DW	20396
	DW	20475
	DW	20553
	DW	20631
	DW	20709
	DW	20787
	DW	20865
	DW	20942
	DW	21020
	DW	21097
	DW	21173
	DW	21250
	DW	21326
	DW	21403
	DW	21479
	DW	21555
	DW	21630
	DW	21706
	DW	21781
	DW	21856
	DW	21931
	DW	22005
	DW	22080
	DW	22154
	DW	22228
	DW	22301
	DW	22375
	DW	22448
	DW	22521
	DW	22594
	DW	22667
	DW	22740
	DW	22812
	DW	22884
	DW	22956
	DW	23027
	DW	23099
	DW	23170
	DW	23241
	DW	23312
	DW	23382
	DW	23453
	DW	23523
	DW	23593
	DW	23662
	DW	23732
	DW	23801
	DW	23870
	DW	23939
	DW	24007
	DW	24075
	DW	24144
	DW	24211
	DW	24279
	DW	24346
	DW	24414
	DW	24480
	DW	24547
	DW	24614
	DW	24680
	DW	24746
	DW	24812
	DW	24877
	DW	24943
	DW	25008
	DW	25073
	DW	25137
	DW	25201
	DW	25266
	DW	25330
	DW	25393
	DW	25457
	DW	25520
	DW	25583
	DW	25645
	DW	25708
	DW	25770
	DW	25832
	DW	25894
	DW	25955
	DW	26016
	DW	26077
	DW	26138
	DW	26199
	DW	26259
	DW	26319
	DW	26379
	DW	26438
	DW	26498
	DW	26557
	DW	26615
	DW	26674
	DW	26732
	DW	26790
	DW	26848
	DW	26905
	DW	26963
	DW	27020
	DW	27076
	DW	27133
	DW	27189
	DW	27245
	DW	27301
	DW	27356
	DW	27411
	DW	27466
	DW	27521
	DW	27576
	DW	27630
	DW	27684
	DW	27737
	DW	27791
	DW	27844
	DW	27897
	DW	27949
	DW	28002
	DW	28054
	DW	28106
	DW	28157
	DW	28208
	DW	28259
	DW	28310
	DW	28361
	DW	28411
	DW	28461
	DW	28511
	DW	28560
	DW	28609
	DW	28658
	DW	28707
	DW	28755
	DW	28803
	DW	28851
	DW	28898
	DW	28946
	DW	28993
	DW	29039
	DW	29086
	DW	29132
	DW	29178
	DW	29223
	DW	29269
	DW	29314
	DW	29359
	DW	29403
	DW	29447
	DW	29491
	DW	29535
	DW	29578
	DW	29621
	DW	29664
	DW	29707
	DW	29749
	DW	29791
	DW	29833
	DW	29874
	DW	29915
	DW	29956
	DW	29997
	DW	30037
	DW	30077
	DW	30117
	DW	30156
	DW	30196
	DW	30235
	DW	30273
	DW	30312
	DW	30350
	DW	30387
	DW	30425
	DW	30462
	DW	30499
	DW	30535
	DW	30572
	DW	30608
	DW	30644
	DW	30679
	DW	30714
	DW	30749
	DW	30784
	DW	30818
	DW	30852
	DW	30886
	DW	30919
	DW	30952
	DW	30985
	DW	31018
	DW	31050
	DW	31082
	DW	31114
	DW	31145
	DW	31176
	DW	31207
	DW	31237
	DW	31268
	DW	31298
	DW	31327
	DW	31357
	DW	31386
	DW	31414
	DW	31443
	DW	31471
	DW	31499
	DW	31526
	DW	31554
	DW	31581
	DW	31607
	DW	31634
	DW	31660
	DW	31685
	DW	31711
	DW	31736
	DW	31761
	DW	31785
	DW	31810
	DW	31834
	DW	31857
	DW	31881
	DW	31904
	DW	31927
	DW	31949
	DW	31971
	DW	31993
	DW	32015
	DW	32036
	DW	32057
	DW	32078
	DW	32098
	DW	32118
	DW	32138
	DW	32157
	DW	32176
	DW	32195
	DW	32214
	DW	32232
	DW	32250
	DW	32268
	DW	32285
	DW	32302
	DW	32319
	DW	32335
	DW	32351
	DW	32367
	DW	32383
	DW	32398
	DW	32413
	DW	32427
	DW	32442
	DW	32456
	DW	32469
	DW	32483
	DW	32496
	DW	32509
	DW	32521
	DW	32533
	DW	32545
	DW	32557
	DW	32568
	DW	32579
	DW	32589
	DW	32600
	DW	32610
	DW	32619
	DW	32629
	DW	32638
	DW	32647
	DW	32655
	DW	32663
	DW	32671
	DW	32679
	DW	32686
	DW	32693
	DW	32700
	DW	32706
	DW	32712
	DW	32718
	DW	32723
	DW	32728
	DW	32733
	DW	32737
	DW	32741
	DW	32745
	DW	32749
	DW	32752
	DW	32755
	DW	32758
	DW	32760
	DW	32762
	DW	32764
	DW	32765
	DW	32766
	DW	32767
	DW	32767
	endc


intro_hp_string
	;db	"HP   ",3+"Z",0
intro_aw_string
	;db	"A",2+"Z",0
intro_loading_string
	;db	"LOADING",0
intro_empty_string
	;db	"BAY EMPTY",0


wepnames
	;dw	wep0&WM
	;dw	wep1&WM
	;dw	wep2&WM
	;dw	wep3&WM
	;dw	wep4&WM
	;dw	wep5&WM
	;dw	wep6&WM
	;dw	wep7&WM
	;dw	wep8&WM
	;dw	wep9&WM


wep0	;db	"NULL",0,0,0,0,0,0
wep1	;db	"MISSILE1",0,0
wep2	;db	"MISSILE2",0,0
wep3	;db	"TLASER",0,0,0,0
wep4	;db	"HMISSILE",0,0
wep5	;db	"TM GUN",0,0,0,0,0
wep6	;db	"MACH GUN",0,0
wep7	;db	"LASER",0,0,0,0
wep8	;db	"TRILASER",0,0
wep9	;db	"SHOT GUN",0,0




mycrapmask
;	db	%00000000,%00000000
;	db	%00000000,%00000000
;	db	%00000000,%00000000
;	db	%00000000,%00000000
;	db	%01110000,%01110000
;	db	%01110000,%01110000
;	db	%01110000,%01110000
;	db	%00000000,%00000000

mycrapchars

	IFEQ	1

	db	%00000000,%00000000
	db	%00000000,%00000000
	db	%00000000,%00000000
	db	%00000000,%00000000
	db	%00000000,%00000000
	db	%01000000,%01000000
	db	%11100000,%11100000
	db	%01000000,%01000000

	REPT	6*8
	db	0
	ENDR


	db	%00000000,%00000000
	db	%00000100,%00000100
	db	%00001110,%00001110
	db	%00000100,%00000100
	db	%00000000,%00000000
	db	%01000000,%01000000
	db	%11100000,%11100000
	db	%01000000,%01000000

	REPT	6*8
	db	0
	ENDR

	db	%00000000,%00000000
	db	%00010000,%00010000
	db	%00111000,%00111000
	db	%00010000,%00010000
	db	%00000000,%00000000
	db	%01000000,%01000000
	db	%11100000,%11100000
	db	%01000000,%01000000

	REPT	6*8
	db	0
	ENDR

	db	%00000000,%00000000
	db	%00000000,%00000000
	db	%00000000,%00000000
	db	%00000100,%00000100
	db	%00001110,%00001110
	db	%01000100,%01000100
	db	%11100000,%11100000
	db	%01000000,%01000000

	REPT	6*8
	db	0
	ENDR

	ENDC


deffont	MACRO	[data]
	defs	1,"{data}"

__val	=	0
__v	=	128
__lp	=	0
	REPT	8

	IFNS	1,__lp," "
__val	=	__val+__v
	ENDC

__v	=	__v/2
__lp	=	__lp+1

	ENDR

	db	__val

	ENDM


	IFEQ	1
;--------------
; space
	db	4
	deffont	<        >
	deffont	<        >
	deffont	<        >
	deffont	<        >
	deffont	<        >
	deffont	<        >
	deffont	<        >
;--------------
; numbers 26-35
	db	6
	deffont	<        >
	deffont	< ÛÛÛ    >
	deffont	<Û  ÛÛ   >
	deffont	<Û Û Û   >
	deffont	<ÛÛ  Û   >
	deffont	< ÛÛÛ    >
	deffont	<        >

	db	3
	deffont	<        >
	deffont	< Û      >
	deffont	<ÛÛ      >
	deffont	< Û      >
	deffont	< Û      >
	deffont	< Û      >
	deffont	<        >

	db	5
	deffont	<        >
	deffont	< ÛÛ     >
	deffont	<   Û    >
	deffont	< ÛÛ     >
	deffont	<Û       >
	deffont	<ÛÛÛÛ    >
	deffont	<        >

	db	5
	deffont	<        >
	deffont	<ÛÛÛ     >
	deffont	<   Û    >
	deffont	< ÛÛ     >
	deffont	<   Û    >
	deffont	<ÛÛÛ     >
	deffont	<        >

	db	5
	deffont	<        >
	deffont	<Û       >
	deffont	<Û       >
	deffont	<Û Û     >
	deffont	<Û Û     >
	deffont	<ÛÛÛÛ    >
	deffont	<  Û     >

	db	5
	deffont	<        >
	deffont	<ÛÛÛÛ    >
	deffont	<Û       >
	deffont	<ÛÛÛ     >
	deffont	<   Û    >
	deffont	<ÛÛÛ     >
	deffont	<        >

	db	5
	deffont	<        >
	deffont	< Û      >
	deffont	<Û       >
	deffont	<ÛÛÛ     >
	deffont	<Û  Û    >
	deffont	< ÛÛ     >
	deffont	<        >

	db	5
	deffont	<        >
	deffont	<ÛÛÛÛ    >
	deffont	<   Û    >
	deffont	<  Û     >
	deffont	<  Û     >
	deffont	<  Û     >
	deffont	<        >

	db	5
	deffont	<        >
	deffont	< ÛÛ     >
	deffont	<Û  Û    >
	deffont	< ÛÛ     >
	deffont	<Û  Û    >
	deffont	< ÛÛ     >
	deffont	<        >

	db	5
	deffont	<        >
	deffont	< ÛÛ     >
	deffont	<Û  Û    >
	deffont	< ÛÛÛ    >
	deffont	<   Û    >
	deffont	<  Û     >
	deffont	<        >



; alphabet  -25
	db	5
	deffont	<        >
	deffont	< ÛÛ     >
	deffont	<Û  Û    >
	deffont	<ÛÛÛÛ    >
	deffont	<Û  Û    >
	deffont	<Û  Û    >
	deffont	<        >

	db	5
	deffont	<        >
	deffont	<ÛÛÛ     >
	deffont	<Û  Û    >
	deffont	<ÛÛÛ     >
	deffont	<Û  Û    >
	deffont	<ÛÛÛ     >
	deffont	<        >

	db	5
	deffont	<        >
	deffont	< ÛÛÛ    >
	deffont	<Û       >
	deffont	<Û       >
	deffont	<Û       >
	deffont	< ÛÛÛ    >
	deffont	<        >

	db	5
	deffont	<        >
	deffont	<ÛÛÛ     >
	deffont	<Û  Û    >
	deffont	<Û  Û    >
	deffont	<Û  Û    >
	deffont	<ÛÛÛ     >
	deffont	<        >

	db	5
	deffont	<        >
	deffont	<ÛÛÛÛ    >
	deffont	<Û       >
	deffont	<ÛÛÛ     >
	deffont	<Û       >
	deffont	<ÛÛÛÛ    >
	deffont	<        >

	db	5
	deffont	<        >
	deffont	<ÛÛÛÛ    >
	deffont	<Û       >
	deffont	<ÛÛÛ     >
	deffont	<Û       >
	deffont	<Û       >
	deffont	<        >

	db	5
	deffont	<        >
	deffont	< ÛÛ     >
	deffont	<Û       >
	deffont	<Û ÛÛ    >
	deffont	<Û  Û    >
	deffont	< ÛÛÛ    >
	deffont	<        >

	db	5
	deffont	<        >
	deffont	<Û  Û    >
	deffont	<Û  Û    >
	deffont	<ÛÛÛÛ    >
	deffont	<Û  Û    >
	deffont	<Û  Û    >
	deffont	<        >

	db	5
	deffont	<        >
	deffont	<ÛÛÛ     >
	deffont	< Û      >
	deffont	< Û      >
	deffont	< Û      >
	deffont	<ÛÛÛ     >
	deffont	<        >

	db	5
	deffont	<        >
	deffont	< ÛÛÛ    >
	deffont	<   Û    >
	deffont	<   Û    >
	deffont	<Û  Û    >
	deffont	< ÛÛ     >
	deffont	<        >

	db	5
	deffont	<        >
	deffont	<Û  Û    >
	deffont	<Û Û     >
	deffont	<ÛÛ      >
	deffont	<Û Û     >
	deffont	<Û  Û    >
	deffont	<        >

	db	5
	deffont	<        >
	deffont	<Û       >
	deffont	<Û       >
	deffont	<Û       >
	deffont	<Û       >
	deffont	<ÛÛÛÛ    >
	deffont	<        >

	db	6
	deffont	<        >
	deffont	<Û   Û   >
	deffont	<ÛÛ ÛÛ   >
	deffont	<Û Û Û   >
	deffont	<Û   Û   >
	deffont	<Û   Û   >
	deffont	<        >

	db	6
	deffont	<        >
	deffont	<Û   Û   >
	deffont	<ÛÛ  Û   >
	deffont	<Û Û Û   >
	deffont	<Û  ÛÛ   >
	deffont	<Û   Û   >
	deffont	<        >

	db	5
	deffont	<        >
	deffont	< ÛÛ     >
	deffont	<Û  Û    >
	deffont	<Û  Û    >
	deffont	<Û  Û    >
	deffont	< ÛÛ     >
	deffont	<        >

	db	5
	deffont	<        >
	deffont	<ÛÛÛ     >
	deffont	<Û  Û    >
	deffont	<ÛÛÛ     >
	deffont	<Û       >
	deffont	<Û       >
	deffont	<        >

	db	5
	deffont	<        >
	deffont	< ÛÛ     >
	deffont	<Û  Û    >
	deffont	<ÛÛ Û    >
	deffont	<Û ÛÛ    >
	deffont	< ÛÛÛ    >
	deffont	<        >

	db	5
	deffont	<        >
	deffont	<ÛÛÛ     >
	deffont	<Û  Û    >
	deffont	<ÛÛÛ     >
	deffont	<Û  Û    >
	deffont	<Û  Û    >
	deffont	<        >

	db	5
	deffont	<        >
	deffont	< ÛÛ     >
	deffont	<Û       >
	deffont	< ÛÛ     >
	deffont	<   Û    >
	deffont	<ÛÛÛ     >
	deffont	<        >

	db	5
	deffont	<        >
	deffont	<ÛÛÛÛÛ   >
	deffont	<  Û     >
	deffont	<  Û     >
	deffont	<  Û     >
	deffont	<  Û     >
	deffont	<        >

	db	5
	deffont	<        >
	deffont	<Û  Û    >
	deffont	<Û  Û    >
	deffont	<Û  Û    >
	deffont	<Û  Û    >
	deffont	< ÛÛ     >
	deffont	<        >

	db	6
	deffont	<        >
	deffont	<Û   Û   >
	deffont	<Û   Û   >
	deffont	<Û   Û   >
	deffont	< Û Û    >
	deffont	<  Û     >
	deffont	<        >

	db	6
	deffont	<        >
	deffont	<Û   Û   >
	deffont	<Û   Û   >
	deffont	<Û Û Û   >
	deffont	<Û Û Û   >
	deffont	< Û Û    >
	deffont	<        >

	db	6
	deffont	<        >
	deffont	<Û   Û   >
	deffont	< Û Û    >
	deffont	<  Û     >
	deffont	< Û Û    >
	deffont	<Û   Û   >
	deffont	<        >

	db	6
	deffont	<        >
	deffont	<Û   Û   >
	deffont	< Û Û    >
	deffont	<  Û     >
	deffont	<  Û     >
	deffont	<  Û     >
	deffont	<        >

	db	6
	deffont	<        >
	deffont	<ÛÛÛÛÛ   >
	deffont	<   Û    >
	deffont	<  Û     >
	deffont	< Û      >
	deffont	<ÛÛÛÛÛ   >
	deffont	<        >

	db	5
	deffont	<        >
	deffont	<        >
	deffont	<        >
	deffont	<ÛÛÛÛ    >
	deffont	<        >
	deffont	<        >
	deffont	<        >

	db	4
	deffont	<        >
	deffont	<        >
	deffont	< ÛÛ     >
	deffont	<Û Û     >
	deffont	<Û Û     >
	deffont	< ÛÛ     >
	deffont	<        >

	db	4
	deffont	<        >
	deffont	<Û       >
	deffont	<ÛÛ      >
	deffont	<Û Û     >
	deffont	<Û Û     >
	deffont	<ÛÛ      >
	deffont	<        >

	db	4
	deffont	<        >
	deffont	<        >
	deffont	< ÛÛ     >
	deffont	<Û       >
	deffont	<Û       >
	deffont	< ÛÛ     >
	deffont	<        >

	db	4
	deffont	<        >
	deffont	<  Û     >
	deffont	< ÛÛ     >
	deffont	<Û Û     >
	deffont	<Û Û     >
	deffont	< ÛÛ     >
	deffont	<        >

	db	4
	deffont	<        >
	deffont	<        >
	deffont	< Û      >
	deffont	<Û Û     >
	deffont	<ÛÛ      >
	deffont	< ÛÛ     >
	deffont	<        >

	db	4
	deffont	<        >
	deffont	< ÛÛ     >
	deffont	<Û       >
	deffont	<ÛÛ      >
	deffont	<Û       >
	deffont	<Û       >
	deffont	<        >

	db	4
	deffont	<        >
	deffont	<        >
	deffont	< ÛÛ     >
	deffont	<Û Û     >
	deffont	< ÛÛ     >
	deffont	<  Û     >
	deffont	<ÛÛ      >

	db	4
	deffont	<        >
	deffont	<Û       >
	deffont	<ÛÛ      >
	deffont	<Û Û     >
	deffont	<Û Û     >
	deffont	<Û Û     >
	deffont	<        >

	db	2
	deffont	<        >
	deffont	<Û       >
	deffont	<        >
	deffont	<Û       >
	deffont	<Û       >
	deffont	<Û       >
	deffont	<        >

	db	3
	deffont	<        >
	deffont	< Û      >
	deffont	<        >
	deffont	< Û      >
	deffont	< Û      >
	deffont	< Û      >
	deffont	<Û       >

	db	5
	deffont	<        >
	deffont	<Û       >
	deffont	<Û Û     >
	deffont	<ÛÛ      >
	deffont	<Û Û     >
	deffont	<Û  Û    >
	deffont	<        >

	db	2
	deffont	<        >
	deffont	<Û       >
	deffont	<Û       >
	deffont	<Û       >
	deffont	<Û       >
	deffont	<Û       >
	deffont	<        >

	db	6
	deffont	<        >
	deffont	<        >
	deffont	< Û Û    >
	deffont	<Û Û Û   >
	deffont	<Û Û Û   >
	deffont	<Û Û Û   >
	deffont	<        >

	db	4
	deffont	<        >
	deffont	<        >
	deffont	<ÛÛ      >
	deffont	<Û Û     >
	deffont	<Û Û     >
	deffont	<Û Û     >
	deffont	<        >

	db	4
	deffont	<        >
	deffont	<        >
	deffont	< Û      >
	deffont	<Û Û     >
	deffont	<Û Û     >
	deffont	< Û      >
	deffont	<        >

	db	4
	deffont	<        >
	deffont	<        >
	deffont	<ÛÛ      >
	deffont	<Û Û     >
	deffont	<ÛÛ      >
	deffont	<Û       >
	deffont	<Û       >

	db	4
	deffont	<        >
	deffont	<        >
	deffont	< ÛÛ     >
	deffont	<Û Û     >
	deffont	< ÛÛ     >
	deffont	<  Û     >
	deffont	<  Û     >

	db	4
	deffont	<        >
	deffont	<        >
	deffont	<ÛÛÛ     >
	deffont	<Û       >
	deffont	<Û       >
	deffont	<Û       >
	deffont	<        >

	db	4
	deffont	<        >
	deffont	<        >
	deffont	< ÛÛ     >
	deffont	<ÛÛ      >
	deffont	<  Û     >
	deffont	<ÛÛ      >
	deffont	<        >

	db	4
	deffont	<        >
	deffont	< Û      >
	deffont	<ÛÛÛ     >
	deffont	< Û      >
	deffont	< Û      >
	deffont	< Û      >
	deffont	<        >

	db	4
	deffont	<        >
	deffont	<        >
	deffont	<Û Û     >
	deffont	<Û Û     >
	deffont	<Û Û     >
	deffont	<ÛÛÛ     >
	deffont	<        >

	db	4
	deffont	<        >
	deffont	<        >
	deffont	<Û Û     >
	deffont	<Û Û     >
	deffont	<Û Û     >
	deffont	< Û      >
	deffont	<        >

	db	6
	deffont	<        >
	deffont	<        >
	deffont	<Û   Û   >
	deffont	<Û Û Û   >
	deffont	<Û Û Û   >
	deffont	< Û Û    >
	deffont	<        >

	db	5
	deffont	<        >
	deffont	<        >
	deffont	<Û  Û    >
	deffont	< ÛÛ     >
	deffont	< ÛÛ     >
	deffont	<Û  Û    >
	deffont	<        >

	db	4
	deffont	<        >
	deffont	<        >
	deffont	<Û Û     >
	deffont	<Û Û     >
	deffont	< ÛÛ     >
	deffont	<  Û     >
	deffont	<ÛÛ      >

	db	5
	deffont	<        >
	deffont	<        >
	deffont	<ÛÛÛÛ    >
	deffont	<  Û     >
	deffont	< Û      >
	deffont	<ÛÛÛÛ    >
	deffont	<        >

	db	2
	deffont	<        >
	deffont	<        >
	deffont	<        >
	deffont	<        >
	deffont	<        >
	deffont	<Û       >
	deffont	<        >

	db	4
	deffont	<        >
	deffont	<        >
	deffont	<        >
	deffont	<        >
	deffont	<        >
	deffont	<        >
	deffont	<ÛÛÛÛ    >

	ENDC

;ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
; Game messages:
;ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

	string	temp[200];

M_GETWORD	MACRO	[word,source]

	defs	{word},""
mgw_finished	=	0
	REPT	15
	IFEQ	mgw_finished

; copy the source string
	defs	temp,"%${source}"
; extract the first character
	substr	0,1,temp
; shift the source string left one place
	substr	1,,{source}
; check for space
	IFS	temp,0," "
mgw_finished	=	1
	ELSEIF
; add the character to the word string
	defs	{word},"%${word}%$temp"
	ENDC

	ENDC

	ENDR

	ENDM

MSG	MACRO	[string]

	defs	2,"{string}"

	m_getword	1,2	; get first word out of string 2
	m_getword	3,2	; get first word out of string 2

	printf	"	dw	$",:$*&WM," (%$1,%$3)%n"

	run	" db FRIEND_%$1%n"

	run	" db SOUND_%$3%n"
;	db	0		; no sound yet

	run	" db %q%$2%q%n"	; display rest of string

	db	0		; zero terminate it

	ENDM




	FOPEN	msgtable.tmp

	IFNE	JANGLISH
	include	japanese.msg
	fileslog english.msg
	ELSEIF
	include	english.msg
	fileslog japanese.msg
	ENDC	

	FCLOSE	!

	fileslog	japanese.msg
	fileslog	english.msg

messagetable	include	msgtable.tmp




bitmasks	dw	1<<0
	dw	1<<1
	dw	1<<2
	dw	1<<3
	dw	1<<4
	dw	1<<5
	dw	1<<6
	dw	1<<7
	dw	1<<8
	dw	1<<9
	dw	1<<10
	dw	1<<11
	dw	1<<12
	dw	1<<13
	dw	1<<14
	dw	1<<15

;----------------------------
;-----------------------------
;-----------------------------
;eguchi's data
;-----------------------------
;-----------------------------
;-----------------------------
;-----------------------------


name_algy	db	"ALGY",0
name_pigma	db	"PIGMA",0
name_leon	db	"LEON",0
name_wolf	db	"WOLF",0
name_kani	db	"QUEEN-DRAGOON",0
name_kama	db	"KAMANTIS",0
name_fantron	db	"H-FANTRON",0
name_tectron	db	"HUNTER-TECTRON",0
name_mirage	db	"MIRAGE-DRAGON",0
name_knight	db	"KNIGHT-NACK",0
name_kick	db	"KICK-GUNNER",0
name_yoyo	db	"HEAVY-CHARIOT",0


;-----------------------------
;-----------------------------



KENum_tab
;		e,n,h
	db	3,4,2		;planet1		
	db	3,3,3		;planet2		
	db	0,3,2		;planet3		
	db	3,2,5		;planet4		
	db	2,4,3		;planet5		
	db	0,3,2		;planet6		
;--------------
shape_null		equ	0
shape_sos_0		equ	1
shape_taigun		equ	2
shape_sos_1		equ	3
shape_sos_2		equ	4
shape_enkin		equ	5
shape_speed_s	equ	6
shape_kieru		equ	7
shape_kuru0_u	equ	8
shape_kuru1_u	equ	9
shape_jyouge		equ	10
shape_jyouge_1	equ	11
shape_bakugeki	equ	12
shape_dandou		equ	13
shape_miss2		equ	14
shape_enban		equ	15
shape_tate_m		equ	16
shape_hydra		equ	17
shape_hebi		equ	18
shape_ninja		equ	19
shape_shield		equ	20
shape_virus		equ	21
shape_wolf		equ	22
;--------------
SOS1_target
;	db	ba(h)			;KEnemyNumber=a+b
;1_00
	db	03h			;initial KEnemyNumber
;1_01
	db	03h			;initial KEnemyNumber
;1_02
	db	03h			;initial KEnemyNumber
;1_03
	db	03h			;initial KEnemyNumber
;1_04
	db	21h			;initial KEnemyNumber
;1_05
	db	31h			;initial KEnemyNumber
;1_06
	db	04h			;initial KEnemyNumber
;1_07
	db	04h			;initial KEnemyNumber
;1_08
	db	21h			;initial KEnemyNumber
;1_09
	db	31h			;initial KEnemyNumber
;1_0a
	db	21h			;initial KEnemyNumber
;1_0b
	db	22h			;initial KEnemyNumber
;1_0c
	db	05h			;initial KEnemyNumber
;1_0d
	db	05h			;initial KEnemyNumber
;1_0e
	db	31h			;initial KEnemyNumber
;1_0f
	db	22h			;initial KEnemyNumber
;1_10
	db	04h			;initial KEnemyNumber
;1_11
	db	23h			;initial KEnemyNumber
;1_12
	db	21h			;initial KEnemyNumber
;1_13
	db	21h			;initial KEnemyNumber
;1_14
	db	21h			;initial KEnemyNumber
;1_15
	db	41h			;initial KEnemyNumber
;1_16
	db	22h			;initial KEnemyNumber
;1_17
	db	21h			;initial KEnemyNumber
;1_18
	db	21h			;initial KEnemyNumber
;1_19
	db	41h			;initial KEnemyNumber
;1_1a
	db	31h			;initial KEnemyNumber
;1_1b
	db	21h			;initial KEnemyNumber
;1_1c
	db	01h			;initial KEnemyNumber
;1_1d
	db	01h			;initial KEnemyNumber
;1_1e
	db	01h			;initial KEnemyNumber
;1_1f
	db	01h			;initial KEnemyNumber
SOS1_target_shape_A
;1_00_a
	db	shape_sos_0		;shape a
;1_01_a
	db	shape_taigun		;shape a
;1_02_a
	db	shape_jyouge		;shape a
;1_03_a
	db	shape_speed_s		;shape a
;1_04_a
	db	shape_sos_1		;shape b
;1_05_a
	db	shape_jyouge		;shape a
;1_06_a
	db	shape_sos_0		;shape a
;1_07_a
	db	shape_taigun		;shape a
;1_08_a
	db	shape_jyouge		;shape a
;1_09_a
	db	shape_jyouge		;shape a
;1_0a_a
	db	shape_speed_s		;shape a
;1_0b_a
	db	shape_sos_0		;shape a
;1_0c_a
	db	shape_sos_0		;shape a
;1_0d_a
	db	shape_taigun		;shape a
;1_0e_a
	db	shape_sos_1		;shape b
;1_0f_a
	db	shape_jyouge		;shape a
;1_10_a
	db	shape_enkin		;shape a
;1_11_a
	db	shape_sos_0		;shape a
;1_12_a
	db	shape_bakugeki		;shape a
;1_13_a
	db	shape_sos_1		;shape b
;1_14_a
	db	shape_sos_2		;shape b
;1_15_a
	db	shape_sos_2		;shape b
;1_16_a
	db	shape_jyouge		;shape a
;1_17_a
	db	shape_bakugeki		;shape a
;1_18_a
	db	shape_kuru1_u		;shape b
;1_19_a
	db	shape_kuru1_u		;shape b
;1_1a_a
	db	shape_jyouge_1		;shape b
;1_1b_a
	db	shape_jyouge_1		;shape b
;1_1c_a
	db	shape_hebi		;shape a
;1_1d_a
	db	shape_hydra		;shape a
;1_1e_a
	db	shape_ninja		;shape a
;1_1f_a
	db	shape_shield		;shape a
SOS1_target_shape_B
;1_00_b
	db	shape_null		;shape b
;1_01_b
	db	shape_null		;shape b
;1_02_b
	db	shape_null		;shape b
;1_03_b
	db	shape_null		;shape b
;1_04_b
	db	shape_sos_0		;shape a
;1_05_b
	db	shape_taigun		;shape a
;1_06_b
	db	shape_null		;shape b
;1_07_b
	db	shape_kieru		;shape a
;1_08_b
	db	shape_speed_s		;shape a
;1_09_b
	db	shape_sos_0		;shape a
;1_0a_b
	db	shape_sos_0		;shape a
;1_0b_b
	db	shape_taigun		;shape a
;1_0c_b
	db	shape_null		;shape b
;1_0d_b
	db	shape_null		;shape b
;1_0e_b
	db	shape_taigun		;shape b
;1_0f_b
	db	shape_taigun		;shape a
;1_10_b
	db	shape_null		;shape b
;1_11_b
	db	shape_enkin		;shape a
;1_12_b
	db	shape_sos_0		;shape a
;1_13_b
	db	shape_speed_s		;shape a
;1_14_b
	db	shape_kieru		;shape a
;1_15_b
	db	shape_kieru		;shape a
;1_16_b
	db	shape_speed_s		;shape a
;1_17_b
	db	shape_taigun		;shape a
;1_18_b
	db	shape_kuru0_u		;shape a
;1_19_b
	db	shape_kuru0_u		;shape a
;1_1a_b
	db	shape_enkin		;shape a
;1_1b_b
	db	shape_speed_s		;shape a
;1_1c_b
	db	shape_null		;shape b
;1_1d_b
	db	shape_null		;shape b
;1_1e_b
	db	shape_null		;shape b
;1_1f_b
	db	shape_null		;shape b
;;--------------
;SOS1_target
;;	db	ba(h)			;KEnemyNumber=a+b
;;1_00
;	db	03h			;initial KEnemyNumber
;;1_01
;	db	03h			;initial KEnemyNumber
;;1_02
;	db	03h			;initial KEnemyNumber
;;1_03
;	db	03h			;initial KEnemyNumber
;;1_04
;	db	21h			;initial KEnemyNumber
;;1_05
;	db	03h			;initial KEnemyNumber
;;1_06
;	db	02h			;initial KEnemyNumber
;;1_07
;	db	21h			;initial KEnemyNumber
;;1_08
;	db	03h			;initial KEnemyNumber
;;1_09
;	db	21h			;initial KEnemyNumber
;;1_0a
;	db	04h			;initial KEnemyNumber
;;1_0b
;	db	01h			;initial KEnemyNumber
;;1_0c
;	db	12h			;initial KEnemyNumber
;;1_0d
;	db	13h			;initial KEnemyNumber
;;1_0e
;	db	22h			;initial KEnemyNumber
;;1_0f
;	db	31h			;initial KEnemyNumber
;;1_10
;	db	05h			;initial KEnemyNumber
;;1_11
;	db	13h			;initial KEnemyNumber
;;1_12
;	db	31h			;initial KEnemyNumber
;;1_13
;	db	21h			;initial KEnemyNumber
;;1_14
;	db	21h			;initial KEnemyNumber
;;1_15
;	db	13h			;initial KEnemyNumber
;;1_16
;	db	21h			;initial KEnemyNumber
;;1_17
;	db	05h			;initial KEnemyNumber
;;1_18
;	db	21h			;initial KEnemyNumber
;;1_19
;	db	41h			;initial KEnemyNumber
;;1_1a
;	db	05h			;initial KEnemyNumber
;;1_1b
;	db	41h			;initial KEnemyNumber
;;1_1c
;	db	01h			;initial KEnemyNumber
;;1_1d
;	db	01h			;initial KEnemyNumber
;;1_1e
;	db	01h			;initial KEnemyNumber
;;1_1f
;	db	01h			;initial KEnemyNumber
;SOS1_target_shape_A
;;1_00_a
;	db	shape_sos_0		;shape a
;;1_01_a
;	db	shape_taigun		;shape a
;;1_02_a
;	db	shape_speed_s		;shape a
;;1_03_a
;	db	shape_sos_0		;shape a
;;1_04_a
;	db	shape_sos_1		;shape b
;;1_05_a
;	db	shape_enkin		;shape a
;;1_06_a
;	db	shape_jyouge		;shape a
;;1_07_a
;	db	shape_sos_2		;shape b
;;1_08_a
;	db	shape_speed_s		;shape a
;;1_09_a
;	db	shape_jyouge_1		;shape b
;;1_0a_a
;	db	shape_sos_0		;shape a
;;1_0b_a
;	db	shape_bakugeki		;shape b
;;1_0c_a
;	db	shape_speed_s		;shape a
;;1_0d_a
;	db	shape_sos_0		;shape a
;;1_0e_a
;	db	shape_speed_s		;shape a
;;1_0f_a
;	db	shape_sos_1		;shape b
;;1_10_a
;	db	shape_sos_0		;shape a
;;1_11_a
;	db	shape_sos_0		;shape a
;;1_12_a
;	db	shape_sos_2		;shape b
;;1_13_a
;	db	shape_jyouge_1		;shape b
;;1_14_a
;	db	shape_kuru1_u		;shape b
;;1_15_a
;	db	shape_taigun		;shape a
;;1_16_a
;	db	shape_speed_s		;shape a
;;1_17_a
;	db	shape_enkin		;shape a
;;1_18_a
;	db	shape_bakugeki		;shape a
;;1_19_a
;	db	shape_kuru1_u		;shape b
;;1_1a_a
;	db	shape_taigun		;shape a
;;1_1b_a
;	db	shape_sos_2		;shape b
;;1_1c_a
;	db	shape_hebi		;shape a
;;1_1d_a
;	db	shape_hydra		;shape a
;;1_1e_a
;	db	shape_ninja		;shape a
;;1_1f_a
;	db	shape_shield		;shape a
;SOS1_target_shape_B
;;1_00_b
;	db	shape_null		;shape b
;;1_01_b
;	db	shape_null		;shape b
;;1_02_b
;	db	shape_null		;shape b
;;1_03_b
;	db	shape_null		;shape b
;;1_04_b
;	db	shape_sos_0		;shape a
;;1_05_b
;	db	shape_null		;shape b
;;1_06_b
;	db	shape_null		;shape b
;;1_07_b
;	db	shape_kieru		;shape a
;;1_08_b
;	db	shape_null		;shape b
;;1_09_b
;	db	shape_enkin		;shape a
;;1_0a_b
;	db	shape_null		;shape b
;;1_0b_b
;	db	shape_null		;shape a
;;1_0c_b
;	db	shape_jyouge		;shape b
;;1_0d_b
;	db	shape_enkin		;shape b
;;1_0e_b
;	db	shape_taigun		;shape b
;;1_0f_b
;	db	shape_taigun		;shape a
;;1_10_b
;	db	shape_null		;shape b
;;1_11_b
;	db	shape_jyouge_1		;shape b
;;1_12_b
;	db	shape_kieru		;shape a
;;1_13_b
;	db	shape_speed_s		;shape a
;;1_14_b
;	db	shape_kuru0_u		;shape a
;;1_15_b
;	db	shape_jyouge		;shape b
;;1_16_b
;	db	shape_jyouge		;shape b
;;1_17_b
;	db	shape_null		;shape b
;;1_18_b
;	db	shape_taigun		;shape b
;;1_19_b
;	db	shape_kuru0_u		;shape a
;;1_1a_b
;	db	shape_null		;shape b
;;1_1b_b
;	db	shape_kieru		;shape a
;;1_1c_b
;	db	shape_null		;shape b
;;1_1d_b
;	db	shape_null		;shape b
;;1_1e_b
;	db	shape_null		;shape b
;;1_1f_b
;	db	shape_null		;shape b
SOS2_target
;2_00
	db	01h			;initial KEnemyNumber
;2_01
	db	02h			;initial KEnemyNumber
;2_02
	db	02h			;initial KEnemyNumber
;2_03
	db	03h			;initial KEnemyNumber
;2_04
	db	04h			;initial KEnemyNumber
;2_05
	db	01h			;initial KEnemyNumber
;2_06
	db	24h			;initial KEnemyNumber
;2_07
	db	01h			;initial KEnemyNumber
;2_08
	db	03h			;initial KEnemyNumber
;2_09
	db	03h			;initial KEnemyNumber
;2_0a
	db	01h			;initial KEnemyNumber
;2_0b
	db	01h			;initial KEnemyNumber

SOS2_target_shape_A
;2_00_a
	db	shape_dandou		;shape a
;2_01_a
	db	shape_dandou		;shape a
;2_02_a
	db	shape_miss2		;shape a
;2_03_a
	db	shape_dandou		;shape a
;2_04_a
	db	shape_miss2		;shape a
;2_05_a
	db	shape_tate_m		;shape a
;2_06_a
	db	shape_miss2		;shape a
;2_07_a
	db	shape_enban		;shape a
;2_08_a
	db	shape_virus		;shape a
;2_09_a
	db	shape_virus		;shape a
;2_0a_a
	db	shape_wolf		;shape a
;2_0b_a
	db	shape_wolf		;shape a
SOS2_target_shape_B
;2_00_b
	db	shape_null		;shape b
;2_01_b
	db	shape_null		;shape b
;2_02_b
	db	shape_null		;shape b
;2_03_b
	db	shape_null		;shape b
;2_04_b
	db	shape_null		;shape b
;2_05_b
	db	shape_null		;shape b
;2_06_b
	db	shape_dandou		;shape b
;2_07_b
	db	shape_null		;shape b
;2_08_b
	db	shape_null		;shape b
;2_09_b
	db	shape_null		;shape b
;2_0a_b
	db	shape_null		;shape b
;2_0b_b
	db	shape_null		;shape b

;-----------
PLANET_RANDOM
	db	3,5,6,4,2,7,0,1
	db	6,2,4,3,0,5,7,1
	db	7,6,4,0,3,2,1,5
	db	1,0,3,2,4,5,7,6
	db	6,3,5,1,2,4,7,0
	db	6,7,4,5,1,2,0,3
	db	6,0,4,1,7,3,5,2
	db	2,6,5,3,7,1,4,0
	db	1,0,6,5,3,7,4,2
	db	0,6,3,1,4,7,5,2		;80
	db	1,2,0,4,3,7,5,6
	db	5,2,6,1,4,3,0,7		;96
	db	7,1,4,0,6,5,2,3		;104
	db	7,0,6,3,2,4,1,5		;112
	db	0,4,3,7,1,5,6,2		;120
	db	6,1,7,4,2,3,5,0		;128

SOS_RANDOM
	db	0,6,10,2,8,13,1,7,3,14,9,4
	db	11,1,13,5,6,3,1,8,4,9,12,7
	db	10,14,0,8,15,5,3,13,1,10,15,9
	db	8,12,2,4,11,6,13,9,4,7,15,2
	db	14,11,0,9,15,7,1,8,13,4,12,10
	db	7,9,10,15,5,6,14,2,12,3,13,0
	db	6,11,1,5,7,0,15,3,8,13,4,14
	db	10,15,5,12,2,11,3,13,0,15,10,14
	db	12,0,9,1,6,11,2,8,14,4,12,3
	db	11,9,2,5,7,0,11,5,10,4,6,14
	db	7,3,12,6,2,5,1,8

EASY_MISS_RAND
	db	1,3,0,2,3,0,1,2,0,1,3,2,1,0,1,2
NORM_MISS_RAND
	db	3,1,5,2,4,0,5,2,3,4,0,3,2,4,1,5
HARD_MISS_RAND
	db	5,7,0,4,6,7,3,4,5,6,1,5,3,6,2,7	

VIRUS_SKILL
	db	8
WOLF_SKILL
	db	10

WOLFBOSS_SKILL
	db	11

NORM_STEP_RAND
	db	0,6,1,7,3,5,0,4,1,2,3,0,5,2,1,3
	db	7,0,6,2,4,1,7,2,6,0,3,1,5,2,4,3
HARD_STEP_RAND
	db	3,0,6,4,5,1,7,4,2,6,5,4,3,7,5,6
	db	0,2,4,7,1,5,7,3,6,1,4,7,6,0,5,2

hentai_posx
	dw	625<<2,-625<<2,1250<<2,-1250<<2
hentai_posy
	dw	300<<2,300<<2,600<<2,600<<2
hentai_posz
	dw	-625<<2,-625<<2,-1250<<2,-1250<<2
jumptab
	db	-100,-81,-64,-49,-36,-25,-16,-9,-4,-1
	db	1,4,9,16,25,36,49,64,81,100

div2_jumptab
	db	-50,-40,-32,-24,-18,-12,-8,-4,-2,0
	db	0,2,4,8,12,18,24,32,40,50

track_ang
	db	0,32,64,92,128,160,192,224
track_move
	db	0,10	;0
	db	-10,10	;1
	db	-10,0	;2
	db	-10,-10	;3
	db	0,-10	;4
	db	10,-10	;5
	db	10,0	;6
	db	10,10	;7
k_tori_tab1
	db	0,0,0,-8,-8,-8,-8,-8
k_tori_s_tab
	db	4,4,4,4,-4,-4,-4,-4
	db	-4,-4,-4,-4,4,4,4,4
nin_warp_y
	dw	0
	dw	0
nin_warp_x
	dw	400
	dw	-400
	dw	0
	dw	0
;eguchi end
;-----------------------------
;-----------------------------
;-----------------------------

;--------------------------------------------------
;--------------------------------------------------
;--------------------------------------------------
;--------------------------------------------------
;--------------------------------------------------
;--------------------------------------------------
;--------------------------------------------------
;--------------------------------------------------
; CREDITS SEQUENCE TABLE

CS_TEKI	MACRO	[shape,strat,x,y,z]
	dw	{shape}
	PADDR	p{strat}
	IFEQ	NARG-2
	dw	0,0,0
	ELSEIF
	dw	{x},{y},{z}
	ENDC
	ENDM

CS_VIEW	MACRO	[view,name]
	dw	0
	PADDR	p{view}
noname	=	0
	dw	({name})&WM
	ENDM

CS_END	MACRO
	dw	0,0
	ENDM

cseq_table
	IFEQ	1
	CS_TEKI	batabata,cs_stationary,1000,300,-1000
	CS_TEKI	batabata,cs_stationary,-1000,300,-1000
	CS_TEKI	batabata,cs_stationary,500,-200,-500
	CS_TEKI	batabata,cs_stationary,-500,-200,-500
	CS_TEKI	batabata,cs_stationary
;	CS_TEKI	nullshape,cs_stationary,0,-200,0
	CS_VIEW	cs_sweep_through_mae,batabata_name

	CS_TEKI	dandou,cs_stationary_left,-100,-700,0
	CS_TEKI	dandou,cs_stationary_right,700,0,200
	CS_TEKI	dandou,cs_stationary,-700,0,0
	CS_TEKI	dandou,cs_stationary,0,700,-200
	CS_TEKI	nullshape,cs_stationary,200,0,0
	CS_VIEW	cs_sweep_through,dandou_name

	CS_TEKI	sos_0,cs_stationary,-4000,300,-3000
	CS_TEKI	sos_0,cs_stationary,4000,300,-3000
	CS_TEKI	sos_0,cs_stationary_left,-2000,0,-1500
	CS_TEKI	sos_0,cs_stationary_right,2000,0,-1500
	CS_TEKI	sos_0,cs_stationary
	CS_VIEW	cs_sweep_up2,sos_0_name

	CS_TEKI	taigun,cs_stationary,-3000,-500,-1500
	CS_TEKI	taigun,cs_stationary,3000,-500,-1500
	CS_TEKI	taigun,cs_stationary_left,-1500,500,-800
	CS_TEKI	taigun,cs_stationary_right,1500,500,-800
	CS_TEKI	taigun,cs_stationary
	CS_VIEW	cs_sweep_down,taigun_name

	CS_TEKI	jyouge,cs_stationary,-6000,500,-3000
	CS_TEKI	jyouge,cs_stationary,6000,500,-3000
	CS_TEKI	jyouge,cs_stationary_left,-3000,-500,-1500
	CS_TEKI	jyouge,cs_stationary_right,3000,-500,-1500
	CS_TEKI	sos_1,cs_stationary
	CS_VIEW	cs_sweep_up2,sos_1_name

	CS_TEKI	nullshape,cs_demo_senkan,0,0,0
	CS_TEKI	nullshape,cs_stationary,0,-1200,1000
	CS_VIEW	cs_sweep_through_big,demo_senkan_name

	CS_TEKI	dragon_0,credits_dragon,0,0,0
	CS_TEKI	nullshape,cs_stationary
	CS_VIEW	cs_sweep_through,dragon_name

	CS_TEKI	wolf_1,cs_stationary,-300,-100,100
	CS_TEKI	wolf_1,cs_stationary_left,300,100,-100
	CS_TEKI	wolf_1,cs_stationary_right,200,-100,-100
	CS_TEKI	wolf,cs_stationary
	CS_VIEW	cs_sweep_through_close,wolf_name

	ENDC

	CS_TEKI	mask,cs_stationary
	CS_TEKI	nullshape,cs_stationary,0,-300,0
	CS_VIEW	cs_sweep_andorf,andorf_name

	CS_TEKI	theend_t,cs_theend,1050,0,5
	CS_TEKI	theend_h,cs_theend,650,0,10
	CS_TEKI	theend_e,cs_theend,250,0,15
	CS_TEKI	theend_e,cs_theend,-250,0,20
	CS_TEKI	theend_n,cs_theend,-650,0,25
	CS_TEKI	theend_d,cs_theend,-1050,0,30
	CS_TEKI	nullshape,cs_stationary,-100,0,0
	CS_VIEW	cs_nosweep,noname
	CS_END

cseq_table_norm
	CS_TEKI	enkin,cs_enkin,-1800,800,-2500
	CS_TEKI	enkin,cs_enkin,1800,800,-2500
	CS_TEKI	enkin,cs_enkin,-900,400,-1500
	CS_TEKI	enkin,cs_enkin,900,400,--1500
	CS_TEKI	enkin,cs_enkin,0,0,-300
	CS_VIEW	cs_sweep_through_mae,enkin_name

	CS_TEKI	miss2_1,cs_baramiss
	CS_TEKI	nullshape,cs_stationary,0,0,500
	CS_VIEW	cs_sweep_down,baramiss_name

	CS_TEKI	virus,cs_stationary,-1000,500,0
	CS_TEKI	virus,cs_stationary,1000,0,-1000
	CS_TEKI	virus,cs_stationary
	CS_VIEW	cs_sweep_down,virus_name

;	CS_TEKI	speed_s,cs_stationary,-2400,1300,-1000
	CS_TEKI	speed_lr,cs_speed_lr,-2400,1300,-1000
;	CS_TEKI	speed_s,cs_stationary,2400,1300,-1000
	CS_TEKI	speed_lr,cs_speed_lr,2400,1300,-1000
;	CS_TEKI	speed_s,cs_stationary,-1200,800,-500
	CS_TEKI	speed_lr,cs_speed_lr,-1200,800,-500
;	CS_TEKI	speed_s,cs_stationary,1200,800,-500
	CS_TEKI	speed_lr,cs_speed_lr,1200,800,-500
;	CS_TEKI	jyouge,cs_stationary,-1200,800,-500
;	CS_TEKI	jyouge,cs_stationary,1200,800,-500
;	CS_TEKI	speed_s,cs_stationary
	CS_TEKI	speed_lr,cs_speed_lr
	CS_TEKI	nullshape,cs_stationary,0,500,0
	CS_VIEW	cs_sweep_up2,speed_name

;	CS_TEKI	baku_r,cs_stationaryslow,-40<<bakugeki_scale,0,0
;	CS_TEKI	baku_l,cs_stationaryslow,40<<bakugeki_scale,0,0
	CS_TEKI	nullshape,cs_baku
	CS_TEKI	nullshape,cs_stationary,0,-500,0
	CS_VIEW	cs_sweep_through_big,baku_name

	CS_TEKI	ninja,cs_ninja
	CS_VIEW	cs_sweep_up2,ninja_name

;	CS_TEKI	stepup_0,cs_stationary_left,-1000,200,0
;	CS_TEKI	stepup_0,cs_stationary_right,1000,200,0
;	CS_TEKI	stepup_0,cs_stationary
	CS_TEKI	stepup_0,credits_stepup,0,0,0
	CS_VIEW	cs_sweep_down,stepup_0_name

	CS_TEKI	wolf_1,cs_stationary,-300,200,100
	CS_TEKI	wolf_1,cs_stationary_left,300,100,-100
	CS_TEKI	wolf_1,cs_stationary_right,-200,-100,-100
	CS_TEKI	wolf,cs_stationary
	CS_VIEW	cs_sweep_through_close,wolf_name

	CS_TEKI	mask,cs_andorf
	CS_TEKI	nullshape,cs_stationaryslow,0,-200,0
	CS_VIEW	cs_sweep_andorf,andorf_name

	CS_TEKI	theend_t,cs_theend,1050,0,5
	CS_TEKI	theend_h,cs_theend,650,0,10
	CS_TEKI	theend_e,cs_theend,250,0,15
	CS_TEKI	theend_e,cs_theend,-250,0,20
	CS_TEKI	theend_n,cs_theend,-650,0,25
	CS_TEKI	theend_d,cs_theend,-1050,0,30
	CS_TEKI	nullshape,cs_stationary,-100,0,0
	CS_VIEW	cs_nosweep,noname

cseq_table_hard

	CS_TEKI	jyouge,cs_stationary,-6000,500,-3000
	CS_TEKI	jyouge,cs_stationary,6000,500,-3000
	CS_TEKI	jyouge,cs_stationary_left,-3000,-500,-1500
	CS_TEKI	jyouge,cs_stationary_right,3000,-500,-1500
	CS_TEKI	jyouge_1,cs_stationary
	CS_VIEW	cs_sweep_up2,jyouge_1_name

	CS_TEKI	enban_1,cs_gattai
	CS_TEKI	nullshape,cs_stationary,0,-700,0
	CS_VIEW	cs_sweep_through_big,gattai_name

	CS_TEKI	tate_m_0,cs_toge
	CS_TEKI	nullshape,cs_stationary,0,-800,0
	CS_VIEW	cs_sweep_through_big,toge_name

	CS_TEKI	kuru0_u,cs_stationary_left,-4000,500,-2000
	CS_TEKI	kuru0_u,cs_stationary,4000,500,-2000
	CS_TEKI	kuru0_u,cs_stationary,-2000,-500,-1000
	CS_TEKI	kuru0_u,cs_stationary_right,2000,-500,-1000
	CS_TEKI	kuru1_u,cs_stationary
	CS_VIEW	cs_sweep_down,kuru0_name

	CS_TEKI	sos_2,cs_sos_2
	CS_VIEW	cs_sweep_up2,sos_2_name

	CS_TEKi	nullshape,credits_crusher
	CS_TEKI	nullshape,cs_stationary,0,-500,0
	CS_VIEW	cs_sweep_through_big,crusher_name


	CS_TEKI	wolf_1,cs_stationary,-300,200,100
	CS_TEKI	wolf_1,cs_stationary_left,300,100,-100
	CS_TEKI	wolf_1,cs_stationary_right,-200,-100,-100
	CS_TEKI	wolf,cs_stationary
	CS_VIEW	cs_sweep_through_close,wolf_name

	CS_TEKi	extra1_1,credits_suisei
	CS_TEKI	nullshape,cs_stationaryslow,0,-1000,0
	CS_VIEW	cs_sweep_through_big,suisei_name

	CS_TEKI	andorf_0,cs_monkey
	CS_TEKI	andorf_1,cs_monkey
	CS_TEKI	nullshape,cs_monkey,0,-300,0
	CS_VIEW	cs_sweep_andorf,andorf_name

	CS_TEKI	theend_t,cs_theend,1050,0,5
	CS_TEKI	theend_h,cs_theend,650,0,10
	CS_TEKI	theend_e,cs_theend,250,0,15
	CS_TEKI	theend_e,cs_theend,-250,0,20
	CS_TEKI	theend_n,cs_theend,-650,0,25
	CS_TEKI	theend_d,cs_theend,-1050,0,30
	CS_TEKI	nullshape,cs_stationary,-100,0,0
	CS_VIEW	cs_nosweep,noname



	printf	"cseq size = ",*-cseq_table,"%n"







;-------------------------------------------------------
;-------------------------------------------------------
;-------------------------------------------------------
;-------------------------------------------------------
;-------------------------------------------------------

name_tako	db	"QUEEN DIORAY",0
name_runner	db	"TAL KONG",0
name_crusher	db	"SPACE BLADE",0
name_dodora	db	"KING DODORA",0


;-------------------------------------------------------
;-------------------------------------------------------
;-------------------------------------------------------
;-------------------------------------------------------
;-------------------------------------------------------

	incfile	techdata.asm





;--------------------------------------------------
;--------------------------------------------------



