* 6809 assembly program generated by cmoc 0.1.40
* VECTREX
	ORG	0	
	FCC	'g GCE 2015'
	FCB	$80	
	FDB	vx_music_1
	FCB	$FFFFFFF8
	FCB	$50	
	FCB	$20	
	FCB	$FFFFFFAA
	FCC	'CMOC'	
	FCB	$80	
	FCB	0	
program_start	EQU	*
	LBSR	INILIB		initialize standard library and global variables
	LBSR	_main		call main()
	LBSR	_exit		use LBSR to respect calling convention
functions_start	EQU	*


*******************************************************************************

* FUNCTION Apply_vel_to_ship_pos(): defined at tgvectrex.c:2227
_Apply_vel_to_ship_pos	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:2229: function call: Get_ship_vel()
	LDB	5,U		variable id, declared at tgvectrex.c:2227
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Get_ship_vel(): unsigned char
	LBSR	_Get_ship_vel
	LEAS	2,S	
* Line tgvectrex.c:2230: function call: Get_ship_rotation()
	LDB	5,U		variable id, declared at tgvectrex.c:2227
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Get_ship_rotation(): unsigned char
	LBSR	_Get_ship_rotation
	LEAS	2,S	
* Line tgvectrex.c:2234: function call: Change_ship_pos_by()
* Line tgvectrex.c:2234: function call: mul_short_by_fp2_14_returning_short()
* Line tgvectrex.c:2234: function call: fp2_14_cos()
	LDD	G00185+0,PCR	variable this_X_rotation, declared at tgvectrex.c:1353
	PSHS	B,A		argument 1 of fp2_14_cos(): int
	LBSR	_fp2_14_cos
	LEAS	2,S	
	PSHS	B,A		argument 2 of mul_short_by_fp2_14_returning_short(): int
* Line tgvectrex.c:2234: function call: mul_short_by_fp2_14_returning_short()
* Line tgvectrex.c:2234: function call: fp2_14_cos()
	LDD	G00186+0,PCR	variable this_Y_rotation, declared at tgvectrex.c:1354
	PSHS	B,A		argument 1 of fp2_14_cos(): int
	LBSR	_fp2_14_cos
	LEAS	2,S	
	PSHS	B,A		argument 2 of mul_short_by_fp2_14_returning_short(): int
	LDD	G00181+0,PCR	variable this_vel, declared at tgvectrex.c:1347
	PSHS	B,A		argument 1 of mul_short_by_fp2_14_returning_short(): int
	LBSR	_mul_short_by_fp2_14_returning_short
	LEAS	4,S	
	PSHS	B,A		argument 1 of mul_short_by_fp2_14_returning_short(): int
	LBSR	_mul_short_by_fp2_14_returning_short
	LEAS	4,S	
	PSHS	B,A		argument 4 of Change_ship_pos_by(): int
* Line tgvectrex.c:2233: function call: mul_short_by_fp2_14_returning_short()
* Line tgvectrex.c:2233: function call: fp2_14_sin()
	LDD	G00185+0,PCR	variable this_X_rotation, declared at tgvectrex.c:1353
	PSHS	B,A		argument 1 of fp2_14_sin(): int
	LBSR	_fp2_14_sin
	LEAS	2,S	
	PSHS	B,A		argument 2 of mul_short_by_fp2_14_returning_short(): int
	LDD	G00181+0,PCR	variable this_vel, declared at tgvectrex.c:1347
	PSHS	B,A		argument 1 of mul_short_by_fp2_14_returning_short(): int
	LBSR	_mul_short_by_fp2_14_returning_short
	LEAS	4,S	
	PSHS	B,A		argument 3 of Change_ship_pos_by(): int
* Line tgvectrex.c:2232: function call: mul_short_by_fp2_14_returning_short()
* Line tgvectrex.c:2232: function call: fp2_14_cos()
	LDD	G00185+0,PCR	variable this_X_rotation, declared at tgvectrex.c:1353
	PSHS	B,A		argument 1 of fp2_14_cos(): int
	LBSR	_fp2_14_cos
	LEAS	2,S	
	PSHS	B,A		argument 2 of mul_short_by_fp2_14_returning_short(): int
* Line tgvectrex.c:2232: function call: mul_short_by_fp2_14_returning_short()
* Line tgvectrex.c:2232: function call: fp2_14_sin()
	LDD	G00186+0,PCR	variable this_Y_rotation, declared at tgvectrex.c:1354
	PSHS	B,A		argument 1 of fp2_14_sin(): int
	LBSR	_fp2_14_sin
	LEAS	2,S	
	PSHS	B,A		argument 2 of mul_short_by_fp2_14_returning_short(): int
	LDD	G00181+0,PCR	variable this_vel, declared at tgvectrex.c:1347
	PSHS	B,A		argument 1 of mul_short_by_fp2_14_returning_short(): int
	LBSR	_mul_short_by_fp2_14_returning_short
	LEAS	4,S	
	PSHS	B,A		argument 1 of mul_short_by_fp2_14_returning_short(): int
	LBSR	_mul_short_by_fp2_14_returning_short
	LEAS	4,S	
	PSHS	B,A		argument 2 of Change_ship_pos_by(): int
	LDB	5,U		variable id, declared at tgvectrex.c:2227
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Change_ship_pos_by(): unsigned char
	LBSR	_Change_ship_pos_by
	LEAS	8,S	
L00087	EQU	*		end of Apply_vel_to_ship_pos()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Change_ship_pos_by(): defined at tgvectrex.c:2112
_Change_ship_pos_by	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:2118: assignment: +=
	LDD	6,U		variable dx, declared at tgvectrex.c:2112
	PSHS	B,A	
	LEAX	G00196+0,PCR	address of array ships
	CLRA
	LDB	#$01		decimal 1 unsigned
	PSHS	X,B,A		optim: optimizePshsOps
	LDA	5,U	
	LDB	#$0E	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X	
	ADDD	,S++	
	STD	,X	
* Line tgvectrex.c:2119: assignment: +=
	LDD	8,U		variable dy, declared at tgvectrex.c:2112
	PSHS	B,A	
	LEAX	G00196+0,PCR	address of array ships
	CLRA
	LDB	#$02		decimal 2 unsigned
	PSHS	X,B,A		optim: optimizePshsOps
	LDA	5,U	
	LDB	#$0E	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X	
	ADDD	,S++	
	STD	,X	
* Line tgvectrex.c:2120: assignment: +=
	LDD	10,U		variable dz, declared at tgvectrex.c:2112
	PSHS	B,A	
	LEAX	G00196+0,PCR	address of array ships
	CLRA
	LDB	#$03		decimal 3 unsigned
	PSHS	X,B,A		optim: optimizePshsOps
	LDA	5,U	
	LDB	#$0E	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X	
	ADDD	,S++	
	STD	,X	
L00077	EQU	*		end of Change_ship_pos_by()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Change_ship_rotation_by(): defined at tgvectrex.c:2123
_Change_ship_rotation_by	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:2126: assignment: +=
	LDD	6,U		variable this_X_rotation, declared at tgvectrex.c:2123
	PSHS	B,A	
	LEAX	G00196+0,PCR	address of array ships
	CLRA
	LDB	#$04		decimal 4 unsigned
	PSHS	X,B,A		optim: optimizePshsOps
	LDA	5,U	
	LDB	#$0E	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X	
	ADDD	,S++	
	STD	,X	
* Line tgvectrex.c:2127: assignment: +=
	LDD	8,U		variable this_Y_rotation, declared at tgvectrex.c:2123
	PSHS	B,A	
	LEAX	G00196+0,PCR	address of array ships
	CLRA
	LDB	#$05		decimal 5 unsigned
	PSHS	X,B,A		optim: optimizePshsOps
	LDA	5,U	
	LDB	#$0E	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X	
	ADDD	,S++	
	STD	,X	
* Line tgvectrex.c:2128: assignment: +=
	LDD	10,U		variable this_Z_rotation, declared at tgvectrex.c:2123
	PSHS	B,A	
	LEAX	G00196+0,PCR	address of array ships
	CLRA
	LDB	#$06		decimal 6 unsigned
	PSHS	X,B,A		optim: optimizePshsOps
	LDA	5,U	
	LDB	#$0E	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X	
	ADDD	,S++	
	STD	,X	
L00078	EQU	*		end of Change_ship_rotation_by()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Change_ship_time_by(): defined at tgvectrex.c:2217
_Change_ship_time_by	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:2219: assignment: +=
	LDD	6,U		variable dt, declared at tgvectrex.c:2217
	PSHS	B,A	
	LEAX	G00196+0,PCR	address of array ships
	CLRA
	LDB	#$09		decimal 9 unsigned
	PSHS	X,B,A		optim: optimizePshsOps
	LDA	5,U	
	LDB	#$0E	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X	
	ADDD	,S++	
	STD	,X	
L00085	EQU	*		end of Change_ship_time_by()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Change_ship_velocity_by(): defined at tgvectrex.c:2153
_Change_ship_velocity_by	EQU	*
	PSHS	U	
	LEAU	,S--	
* Line tgvectrex.c:2156: init of variable this_speed
	LDD	#$08		decimal 8 unsigned
	PSHS	B,A	
	LDA	5,U	
	LDB	#$0E	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA
	STD	-2,U		variable this_speed
* Line tgvectrex.c:2161: if
	LDD	#$14		decimal 20 signed
	PSHS	B,A	
	LEAX	G00196+0,PCR	address of array ships
	LDD	-2,U		variable this_speed
	LSLB
	ROLA
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	CMPD	,S++
	BLE	L00208	
* Line tgvectrex.c:2161: assignment: =
	LDD	#$14		decimal 20 signed
	PSHS	B,A	
	LEAX	G00196+0,PCR	address of array ships
	LDD	-2,U		variable this_speed
	LSLB
	ROLA
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
L00208	EQU	*		else
L00209	EQU	*		end if
L00082	EQU	*		end of Change_ship_velocity_by()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Display_Vectrex_point(): defined at tgvectrex.c:181
_Display_Vectrex_point	EQU	*
	PSHS	U	
	LEAU	,S	
L00005	EQU	*		end of Display_Vectrex_point()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Display_Vectrex_vector(): defined at tgvectrex.c:176
_Display_Vectrex_vector	EQU	*
	PSHS	U	
	LEAU	,S	
L00004	EQU	*		end of Display_Vectrex_vector()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Draw_ShipsPassedTotal(): defined at tgvectrex.c:1957
_Draw_ShipsPassedTotal	EQU	*
* Line tgvectrex.c:1958: function call: Drawbignumat()
	LDD	#$82		decimal 130 signed
	PSHS	B,A		argument 3 of Drawbignumat(): int
	LDD	#$C8		decimal 200 signed
	PSHS	B,A		argument 2 of Drawbignumat(): int
	LDD	G00158+0,PCR	variable ShipsPassedTotal, declared at tgvectrex.c:1308
	PSHS	B,A		argument 1 of Drawbignumat(): int
	LBSR	_Drawbignumat
	LEAS	6,S	
L00065	EQU	*		end of Draw_ShipsPassedTotal()
	RTS
* END FUNCTION


*******************************************************************************

* FUNCTION Draw_credits(): defined at tgvectrex.c:1974
_Draw_credits	EQU	*
* Line tgvectrex.c:1976: assignment: =
	LDB	#$9C		constant expression: 65436 decimal
	SEX	
	STD	G00166+0,PCR
* Line tgvectrex.c:1977: assignment: =
	LDD	#$FF88		constant expression: 65416 decimal
	LDD	#$FF88	
	STD	G00167+0,PCR
* Line tgvectrex.c:1978: function call: ch128str()
	LEAX	G00120+0,PCR	address of array CREDITS_STR128
	PSHS	X		argument 1 of ch128str(): unsigned char[]
	LBSR	_ch128str
	LEAS	2,S	
* Line tgvectrex.c:1979: if
	LDB	G00136+0,PCR	variable Credits
	CMPB	#$09	
	LBHI	L00210	
	LBRA	L00211	
L00210	EQU	*		then
* Line tgvectrex.c:1980: function call: ch128()
	LDD	#$0A		decimal 10 signed
	PSHS	B,A		argument 1 of ch128(): int
	LBSR	_ch128	
	LEAS	2,S	
	LBRA	L00212		jump over else clause
L00211	EQU	*		else
* Line tgvectrex.c:1982: function call: ch128()
	LDB	G00136+0,PCR
	CLRA
	ADDD	#$01		1
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of ch128(): unsigned char
	LBSR	_ch128	
	LEAS	2,S	
L00212	EQU	*		end if
L00067	EQU	*		end of Draw_credits()
	RTS
* END FUNCTION


*******************************************************************************

* FUNCTION Draw_highscore(): defined at tgvectrex.c:1938
_Draw_highscore	EQU	*
* Line tgvectrex.c:1940: assignment: =
	LDD	#$2A		decimal 42 signed
	LDD	#$2A	
	STD	G00166+0,PCR
* Line tgvectrex.c:1941: assignment: =
	LDD	#$82		decimal 130 signed
	LDD	#$82	
	STD	G00167+0,PCR
* Line tgvectrex.c:1943: function call: ch96str()
	LEAX	G00119+0,PCR	address of array HIGH_SCORE_STR96
	PSHS	X		argument 1 of ch96str(): unsigned char[]
	LBSR	_ch96str
	LEAS	2,S	
* Line tgvectrex.c:1945: function call: Drawsmallnumat()
	LDD	#$69		decimal 105 signed
	PSHS	B,A		argument 3 of Drawsmallnumat(): int
	LDD	#$0900		constant expression: 2304 decimal
	PSHS	B,A	
	LDD	#$01		decimal 1 signed
	PSHS	B,A	
* Line tgvectrex.c:1945: function call: numdigits()
	LDD	G00150+0,PCR	variable HighScore, declared at tgvectrex.c:1298
	PSHS	B,A		argument 1 of numdigits(): int
	LBSR	_numdigits
	LEAS	2,S	
	CLRA			promotion of binary operand
	LEAS	1,S	
	SUBB	,S+	
	CLRA			promotion of binary operand
	PULS	X	
	LBSR	MUL16	
	LSRA
	RORB
	LSRA
	RORB
	LSRA
	RORB
	LSRA
	RORB
	LSRA
	RORB
	LSRA
	RORB
	LSRA
	RORB
	PSHS	B,A	
	LDD	#$CC		decimal 204 signed
	SUBD	,S++	
	PSHS	B,A		argument 2 of Drawsmallnumat(): int
	LDD	G00150+0,PCR	variable HighScore, declared at tgvectrex.c:1298
	PSHS	B,A		argument 1 of Drawsmallnumat(): int
	LBSR	_Drawsmallnumat
	LEAS	6,S	
L00063	EQU	*		end of Draw_highscore()
	RTS
* END FUNCTION


*******************************************************************************

* FUNCTION Draw_last_game_score(): defined at tgvectrex.c:1986
_Draw_last_game_score	EQU	*
* Line tgvectrex.c:1988: assignment: =
	LDD	#$FF24		constant expression: 65316 decimal
	LDD	#$FF24	
	STD	G00166+0,PCR
* Line tgvectrex.c:1989: assignment: =
	LDD	#$82		decimal 130 signed
	LDD	#$82	
	STD	G00167+0,PCR
* Line tgvectrex.c:1990: function call: ch96str()
	LEAX	G00118+0,PCR	address of array SCORE_STR96
	PSHS	X		argument 1 of ch96str(): unsigned char[]
	LBSR	_ch96str
	LEAS	2,S	
* Line tgvectrex.c:1991: function call: Drawsmallnumat()
	LDD	#$69		decimal 105 signed
	PSHS	B,A		argument 3 of Drawsmallnumat(): int
	LDD	#$FF24		constant expression: 65316 decimal
	PSHS	B,A		argument 2 of Drawsmallnumat(): int
	LDD	G00151+0,PCR	variable LastScore, declared at tgvectrex.c:1299
	PSHS	B,A		argument 1 of Drawsmallnumat(): int
	LBSR	_Drawsmallnumat
	LEAS	6,S	
L00068	EQU	*		end of Draw_last_game_score()
	RTS
* END FUNCTION


*******************************************************************************

* FUNCTION Draw_score(): defined at tgvectrex.c:1933
_Draw_score	EQU	*
* Line tgvectrex.c:1935: function call: Drawbignumat()
	LDD	#$82		decimal 130 signed
	PSHS	B,A		argument 3 of Drawbignumat(): int
	LDD	#$FF24		constant expression: 65316 decimal
	PSHS	B,A		argument 2 of Drawbignumat(): int
	LDD	G00152+0,PCR	variable Score, declared at tgvectrex.c:1300
	PSHS	B,A		argument 1 of Drawbignumat(): int
	LBSR	_Drawbignumat
	LEAS	6,S	
L00062	EQU	*		end of Draw_score()
	RTS
* END FUNCTION


*******************************************************************************

* FUNCTION Draw_shields_left(): defined at tgvectrex.c:1928
_Draw_shields_left	EQU	*
* Line tgvectrex.c:1930: function call: Drawbignumat()
	LDD	#$8C		decimal 140 signed
	PSHS	B,A		argument 3 of Drawbignumat(): int
	LDD	#$FFF6		constant expression: 65526 decimal
	PSHS	B,A		argument 2 of Drawbignumat(): int
	LDD	G00154+0,PCR	variable Shields, declared at tgvectrex.c:1303
	PSHS	B,A		argument 1 of Drawbignumat(): int
	LBSR	_Drawbignumat
	LEAS	6,S	
L00061	EQU	*		end of Draw_shields_left()
	RTS
* END FUNCTION


*******************************************************************************

* FUNCTION Draw_ship_at_rotated_scale(): defined at tgvectrex.c:2179
_Draw_ship_at_rotated_scale	EQU	*
	PSHS	U	
	LEAU	,S	
	LEAS	-1,S	
* Line tgvectrex.c:2183: function call: setintensity()
	LDD	#$55		decimal 85 signed
	PSHS	B,A		argument 1 of setintensity(): int
	LBSR	_setintensity
	LEAS	2,S	
* Line tgvectrex.c:2187: function call: Set_rotation_vars()
	LDD	16,U		variable Zrot, declared at tgvectrex.c:2179
	PSHS	B,A		argument 3 of Set_rotation_vars(): int
	LDD	14,U		variable Yrot, declared at tgvectrex.c:2179
	PSHS	B,A		argument 2 of Set_rotation_vars(): int
	LDD	12,U		variable Xrot, declared at tgvectrex.c:2179
	PSHS	B,A		argument 1 of Set_rotation_vars(): int
	LBSR	_Set_rotation_vars
	LEAS	6,S	
* Line tgvectrex.c:2188: for init
* Line tgvectrex.c:2188: assignment: =
	LEAX	G00131+0,PCR	address of array ShipMeshPointers
	LDB	5,U		variable model
	CLRA			index expression is of byte type
	LEAX	D,X		add byte offset
	LDB	,X		get r-value
	STB	-1,U	
	LBRA	L00214		jump to for condition
L00213	EQU	*
* Line tgvectrex.c:2188: for body
* Line tgvectrex.c:2196: function call: Transform_point()
* Line tgvectrex.c:2196: function call: mul_short_by_fp2_14_returning_short()
	LDD	18,U		variable scale_fp, declared at tgvectrex.c:2179
	PSHS	B,A		argument 2 of mul_short_by_fp2_14_returning_short(): int
	LEAX	G00132+0,PCR	address of array ShipMesh
	PSHS	X		preserve array address, then eval array index
	LDD	#$02		decimal 2 signed
	PSHS	B,A	
	LDA	-1,U	
	LDB	#$06	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDB	,X		get r-value
	SEX			promoting byte argument to word
	PSHS	B,A		argument 1 of mul_short_by_fp2_14_returning_short(): char
	LBSR	_mul_short_by_fp2_14_returning_short
	LEAS	4,S	
	PSHS	B,A		argument 3 of Transform_point(): int
* Line tgvectrex.c:2195: function call: mul_short_by_fp2_14_returning_short()
	LDD	18,U		variable scale_fp, declared at tgvectrex.c:2179
	PSHS	B,A		argument 2 of mul_short_by_fp2_14_returning_short(): int
	LEAX	G00132+0,PCR	address of array ShipMesh
	PSHS	X		preserve array address, then eval array index
	LDD	#$01		decimal 1 signed
	PSHS	B,A	
	LDA	-1,U	
	LDB	#$06	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDB	,X		get r-value
	SEX			promoting byte argument to word
	PSHS	B,A		argument 1 of mul_short_by_fp2_14_returning_short(): char
	LBSR	_mul_short_by_fp2_14_returning_short
	LEAS	4,S	
	PSHS	B,A		argument 2 of Transform_point(): int
* Line tgvectrex.c:2194: function call: mul_short_by_fp2_14_returning_short()
	LDD	18,U		variable scale_fp, declared at tgvectrex.c:2179
	PSHS	B,A		argument 2 of mul_short_by_fp2_14_returning_short(): int
	LEAX	G00132+0,PCR	address of array ShipMesh
	PSHS	X		preserve array address, then eval array index
	CLRA
	CLRB
	PSHS	B,A	
	LDA	-1,U	
	LDB	#$06	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDB	,X		get r-value
	SEX			promoting byte argument to word
	PSHS	B,A		argument 1 of mul_short_by_fp2_14_returning_short(): char
	LBSR	_mul_short_by_fp2_14_returning_short
	LEAS	4,S	
	PSHS	B,A		argument 1 of Transform_point(): int
	LBSR	_Transform_point
	LEAS	6,S	
* Line tgvectrex.c:2197: function call: Get_screenpos()
	LDD	G00190+0,PCR	variable transformed_Z, declared at tgvectrex.c:1362
	PSHS	B,A	
	LDD	10,U		variable z, declared at tgvectrex.c:2179
	ADDD	,S++	
	PSHS	B,A		argument 3 of Get_screenpos(): int
	LDD	G00189+0,PCR	variable transformed_Y, declared at tgvectrex.c:1361
	PSHS	B,A	
	LDD	8,U		variable y, declared at tgvectrex.c:2179
	ADDD	,S++	
	PSHS	B,A		argument 2 of Get_screenpos(): int
	LDD	G00188+0,PCR	variable transformed_X, declared at tgvectrex.c:1360
	PSHS	B,A	
	LDD	6,U		variable x, declared at tgvectrex.c:2179
	ADDD	,S++	
	PSHS	B,A		argument 1 of Get_screenpos(): int
	LBSR	_Get_screenpos
	LEAS	6,S	
* Line tgvectrex.c:2200: function call: gotoxy()
	LDX	G00114+0,PCR	left
	LDD	#$02		right
	LBSR	SDIV16	
	TFR	X,D		quotient
	PSHS	B,A	
	LDD	G00202+0,PCR	variable screen_y, declared at tgvectrex.c:2051
	ADDD	,S++	
	PSHS	B,A		argument 2 of gotoxy(): int
	LDX	G00113+0,PCR	left
	LDD	#$02		right
	LBSR	SDIV16	
	TFR	X,D		quotient
	PSHS	B,A	
	LDD	G00201+0,PCR	variable screen_x, declared at tgvectrex.c:2050
	ADDD	,S++	
	PSHS	B,A		argument 1 of gotoxy(): int
	LBSR	_gotoxy	
	LEAS	4,S	
* Line tgvectrex.c:2201: function call: putPenDown()
	LBSR	_putPenDown
* Line tgvectrex.c:2205: function call: Transform_point()
* Line tgvectrex.c:2205: function call: mul_short_by_fp2_14_returning_short()
	LDD	18,U		variable scale_fp, declared at tgvectrex.c:2179
	PSHS	B,A		argument 2 of mul_short_by_fp2_14_returning_short(): int
	LEAX	G00132+0,PCR	address of array ShipMesh
	PSHS	X		preserve array address, then eval array index
	LDD	#$05		decimal 5 signed
	PSHS	B,A	
	LDA	-1,U	
	LDB	#$06	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDB	,X		get r-value
	SEX			promoting byte argument to word
	PSHS	B,A		argument 1 of mul_short_by_fp2_14_returning_short(): char
	LBSR	_mul_short_by_fp2_14_returning_short
	LEAS	4,S	
	PSHS	B,A		argument 3 of Transform_point(): int
* Line tgvectrex.c:2204: function call: mul_short_by_fp2_14_returning_short()
	LDD	18,U		variable scale_fp, declared at tgvectrex.c:2179
	PSHS	B,A		argument 2 of mul_short_by_fp2_14_returning_short(): int
	LEAX	G00132+0,PCR	address of array ShipMesh
	PSHS	X		preserve array address, then eval array index
	LDD	#$04		decimal 4 signed
	PSHS	B,A	
	LDA	-1,U	
	LDB	#$06	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDB	,X		get r-value
	SEX			promoting byte argument to word
	PSHS	B,A		argument 1 of mul_short_by_fp2_14_returning_short(): char
	LBSR	_mul_short_by_fp2_14_returning_short
	LEAS	4,S	
	PSHS	B,A		argument 2 of Transform_point(): int
* Line tgvectrex.c:2203: function call: mul_short_by_fp2_14_returning_short()
	LDD	18,U		variable scale_fp, declared at tgvectrex.c:2179
	PSHS	B,A		argument 2 of mul_short_by_fp2_14_returning_short(): int
	LEAX	G00132+0,PCR	address of array ShipMesh
	PSHS	X		preserve array address, then eval array index
	LDD	#$03		decimal 3 signed
	PSHS	B,A	
	LDA	-1,U	
	LDB	#$06	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDB	,X		get r-value
	SEX			promoting byte argument to word
	PSHS	B,A		argument 1 of mul_short_by_fp2_14_returning_short(): char
	LBSR	_mul_short_by_fp2_14_returning_short
	LEAS	4,S	
	PSHS	B,A		argument 1 of Transform_point(): int
	LBSR	_Transform_point
	LEAS	6,S	
* Line tgvectrex.c:2206: function call: Get_screenpos()
	LDD	G00190+0,PCR	variable transformed_Z, declared at tgvectrex.c:1362
	PSHS	B,A	
	LDD	10,U		variable z, declared at tgvectrex.c:2179
	ADDD	,S++	
	PSHS	B,A		argument 3 of Get_screenpos(): int
	LDD	G00189+0,PCR	variable transformed_Y, declared at tgvectrex.c:1361
	PSHS	B,A	
	LDD	8,U		variable y, declared at tgvectrex.c:2179
	ADDD	,S++	
	PSHS	B,A		argument 2 of Get_screenpos(): int
	LDD	G00188+0,PCR	variable transformed_X, declared at tgvectrex.c:1360
	PSHS	B,A	
	LDD	6,U		variable x, declared at tgvectrex.c:2179
	ADDD	,S++	
	PSHS	B,A		argument 1 of Get_screenpos(): int
	LBSR	_Get_screenpos
	LEAS	6,S	
* Line tgvectrex.c:2209: function call: gotoxy()
	LDX	G00114+0,PCR	left
	LDD	#$02		right
	LBSR	SDIV16	
	TFR	X,D		quotient
	PSHS	B,A	
	LDD	G00202+0,PCR	variable screen_y, declared at tgvectrex.c:2051
	ADDD	,S++	
	PSHS	B,A		argument 2 of gotoxy(): int
	LDX	G00113+0,PCR	left
	LDD	#$02		right
	LBSR	SDIV16	
	TFR	X,D		quotient
	PSHS	B,A	
	LDD	G00201+0,PCR	variable screen_x, declared at tgvectrex.c:2050
	ADDD	,S++	
	PSHS	B,A		argument 1 of gotoxy(): int
	LBSR	_gotoxy	
	LEAS	4,S	
* Line tgvectrex.c:2211: function call: putPenUp()
	LBSR	_putPenUp
L00215	EQU	*
* Line tgvectrex.c:2188: for increment(s)
	INC	-1,U	
L00214	EQU	*
* Line tgvectrex.c:2188: for condition
	LEAX	G00131+0,PCR	address of array ShipMeshPointers
	PSHS	X		preserve array address, then eval array index
	LDB	5,U	
	CLRA
	ADDD	#$01		1
	CLRA			index expression is of byte type
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDB	,X		get r-value
	CLRA			promotion of binary operand
	PSHS	B,A	
	LDB	-1,U		variable meshIndex, declared at tgvectrex.c:2181
	CLRA			promotion of binary operand
	LEAS	1,S		disregard MSB
	CMPB	,S+		compare with LSB
	LBLO	L00213	
	LBRA	L00216	
L00216	EQU	*		end for
* Line tgvectrex.c:2214: function call: setintensity()
	LDD	#$6E		decimal 110 signed
	PSHS	B,A		argument 1 of setintensity(): int
	LBSR	_setintensity
	LEAS	2,S	
L00084	EQU	*		end of Draw_ship_at_rotated_scale()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Drawbignum(): defined at tgvectrex.c:1911
_Drawbignum	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:1913: function call: Drawnum()
	LDD	#$80		decimal 128 signed
	PSHS	B,A		argument 2 of Drawnum(): int
	LDD	4,U		variable num, declared at tgvectrex.c:1911
	PSHS	B,A		argument 1 of Drawnum(): int
	LBSR	_Drawnum
	LEAS	4,S	
L00058	EQU	*		end of Drawbignum()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Drawbignumat(): defined at tgvectrex.c:1916
_Drawbignumat	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:1918: assignment: =
	LDD	6,U		variable x, declared at tgvectrex.c:1916
	LDD	6,U	
	STD	G00166+0,PCR
* Line tgvectrex.c:1918: assignment: =
	LDD	8,U		variable y, declared at tgvectrex.c:1916
	LDD	8,U	
	STD	G00167+0,PCR
* Line tgvectrex.c:1919: function call: Drawbignum()
	LDD	4,U		variable num, declared at tgvectrex.c:1916
	PSHS	B,A		argument 1 of Drawbignum(): int
	LBSR	_Drawbignum
	LEAS	2,S	
L00059	EQU	*		end of Drawbignumat()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Drawnum(): defined at tgvectrex.c:1887
_Drawnum	EQU	*
	PSHS	U	
	LEAU	,S	
	LEAS	-3,S	
* Line tgvectrex.c:1890: init of variable tens
	LDD	#$2710		10000
	STD	-2,U		variable tens
* Line tgvectrex.c:1892: assignment: =
	LDD	#$04		decimal 4 unsigned
	LDB	#$04	
	STB	-3,U	
L00217	EQU	*
* Line tgvectrex.c:1893: for body
* Line tgvectrex.c:1894: if
	LDD	4,U		variable num
	CMPD	-2,U		variable tens
	LBGE	L00221	
	LBRA	L00223	
L00223	EQU	*
	LDB	-3,U		variable i, declared at tgvectrex.c:1889
	TSTB
	BNE	L00222	
* Line tgvectrex.c:1896: function call: ch()
	LDB	7,U		variable size, declared at tgvectrex.c:1887
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 2 of ch(): unsigned char
	LDX	4,U		left
	LDD	-2,U		right
	LBSR	SDIV16	
	TFR	X,D		quotient
	PSHS	B,A	
	LDD	#$0A		decimal 10 signed
	PULS	X	
	LBSR	SDIV16	
	PSHS	B,A	
	LDD	#$01		decimal 1 signed
	ADDD	,S++	
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of ch(): unsigned char
	LBSR	_ch	
	LEAS	4,S	
L00222	EQU	*		else
L00224	EQU	*		end if
* Line tgvectrex.c:1898: assignment: /=
	LEAX	-2,U		variable tens, declared at tgvectrex.c:1890
	PSHS	X		preserve address of left side of assignment
	LDD	#$0A		decimal 10 signed
	LDX	[,S]		get value of left side of assignment
	LBSR	SDIV16	
	TFR	X,D		quotient to D
	STD	[,S]		store quotient at address of left side of assignment
	LEAS	2,S		dispose of address of left side of assignment
* Line tgvectrex.c:1899: if
	LDB	-3,U		variable i, declared at tgvectrex.c:1889
	TSTB
	BNE	L00226	
	LBRA	L00056		return (tgvectrex.c:1899)
L00226	EQU	*		else
L00227	EQU	*		end if
* Line tgvectrex.c:1900: assignment: -=
	LDB	-3,U		variable i
	SUBB	#$01		-= operator at tgvectrex.c:1900
	STB	-3,U	
L00219	EQU	*
	LBRA	L00217	
L00220	EQU	*		end for
L00056	EQU	*		end of Drawnum()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Drawsmallnum(): defined at tgvectrex.c:1906
_Drawsmallnum	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:1908: function call: Drawnum()
	LDD	#$60		decimal 96 signed
	PSHS	B,A		argument 2 of Drawnum(): int
	LDD	4,U		variable num, declared at tgvectrex.c:1906
	PSHS	B,A		argument 1 of Drawnum(): int
	LBSR	_Drawnum
	LEAS	4,S	
L00057	EQU	*		end of Drawsmallnum()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Drawsmallnumat(): defined at tgvectrex.c:1922
_Drawsmallnumat	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:1924: assignment: =
	LDD	6,U		variable x, declared at tgvectrex.c:1922
	LDD	6,U	
	STD	G00166+0,PCR
* Line tgvectrex.c:1924: assignment: =
	LDD	8,U		variable y, declared at tgvectrex.c:1922
	LDD	8,U	
	STD	G00167+0,PCR
* Line tgvectrex.c:1925: function call: Drawsmallnum()
	LDD	4,U		variable num, declared at tgvectrex.c:1922
	PSHS	B,A		argument 1 of Drawsmallnum(): int
	LBSR	_Drawsmallnum
	LEAS	2,S	
L00060	EQU	*		end of Drawsmallnumat()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Get_eigenvector_to(): defined at tgvectrex.c:2245
_Get_eigenvector_to	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:2254: assignment: =
* Line tgvectrex.c:2254: function call: Scratch_atan2_fakedegrees()
	LDD	8,U		variable dz, declared at tgvectrex.c:2245
	PSHS	B,A		argument 2 of Scratch_atan2_fakedegrees(): int
	LDD	4,U		variable dx, declared at tgvectrex.c:2245
	PSHS	B,A		argument 1 of Scratch_atan2_fakedegrees(): int
	LBSR	_Scratch_atan2_fakedegrees
	LEAS	4,S	
	STD	G00194+0,PCR
* Line tgvectrex.c:2256: if
	LDD	8,U		variable dz
	ADDD	#0	
	LBLT	L00228	
	LBRA	L00229	
L00228	EQU	*		then
* Line tgvectrex.c:2256: assignment: +=
	LDD	G00194+0,PCR	variable dirXZ
	ADDD	#$80		+= operator at tgvectrex.c:2256
	STD	G00194+0,PCR
L00229	EQU	*		else
L00230	EQU	*		end if
* Line tgvectrex.c:2259: assignment: =
* Line tgvectrex.c:2259: function call: asin_of_fp2_14()
	LDD	6,U		variable dy, declared at tgvectrex.c:2245
	PSHS	B,A	
* Line tgvectrex.c:2259: function call: isqrt()
	LDX	8,U		left
	LDD	8,U		right
	LBSR	MUL16	
	PSHS	B,A	
	LDX	6,U		left
	LDD	6,U		right
	LBSR	MUL16	
	PSHS	B,A	
	LDX	4,U		left
	LDD	4,U		right
	LBSR	MUL16	
	ADDD	,S++	
	ADDD	,S++	
	PSHS	B,A		argument 1 of isqrt(): int
	LBSR	_isqrt	
	LEAS	2,S	
	PULS	X	
	LBSR	SDIV16	
	TFR	X,D		quotient
	PSHS	B,A		argument 1 of asin_of_fp2_14(): int
	LBSR	_asin_of_fp2_14
	LEAS	2,S	
	STD	G00195+0,PCR
L00089	EQU	*		end of Get_eigenvector_to()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Get_screenpos(): defined at tgvectrex.c:2055
_Get_screenpos	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:2057: assignment: =
	LDX	#$0400		left
	LDD	4,U		right
	LBSR	MUL16	
	PSHS	B,A	
	LDD	8,U		variable z, declared at tgvectrex.c:2055
	PULS	X	
	LBSR	SDIV16	
	TFR	X,D		quotient
	STD	G00201+0,PCR
* Line tgvectrex.c:2057: assignment: =
	LDX	#$0400		left
	LDD	6,U		right
	LBSR	MUL16	
	PSHS	B,A	
	LDD	8,U		variable z, declared at tgvectrex.c:2055
	PULS	X	
	LBSR	SDIV16	
	TFR	X,D		quotient
	STD	G00202+0,PCR
L00073	EQU	*		end of Get_screenpos()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Get_ship_destination(): defined at tgvectrex.c:2144
_Get_ship_destination	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:2148: assignment: =
	LEAX	G00196+0,PCR	address of array ships
	CLRA
	LDB	#$0A		decimal 10 unsigned
	PSHS	X,B,A		optim: optimizePshsOps
	LDA	5,U	
	LDB	#$0E	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STD	G00182+0,PCR
* Line tgvectrex.c:2149: assignment: =
	LEAX	G00196+0,PCR	address of array ships
	CLRA
	LDB	#$0B		decimal 11 unsigned
	PSHS	X,B,A		optim: optimizePshsOps
	LDA	5,U	
	LDB	#$0E	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STD	G00183+0,PCR
* Line tgvectrex.c:2150: assignment: =
	LEAX	G00196+0,PCR	address of array ships
	CLRA
	LDB	#$0C		decimal 12 unsigned
	PSHS	X,B,A		optim: optimizePshsOps
	LDA	5,U	
	LDB	#$0E	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STD	G00184+0,PCR
L00081	EQU	*		end of Get_ship_destination()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Get_ship_pos(): defined at tgvectrex.c:2030
_Get_ship_pos	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:2035: assignment: =
	LEAX	G00196+0,PCR	address of array ships
	CLRA
	LDB	#$01		decimal 1 unsigned
	PSHS	X,B,A		optim: optimizePshsOps
	LDA	5,U	
	LDB	#$0E	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STD	G00178+0,PCR
* Line tgvectrex.c:2036: assignment: =
	LEAX	G00196+0,PCR	address of array ships
	CLRA
	LDB	#$02		decimal 2 unsigned
	PSHS	X,B,A		optim: optimizePshsOps
	LDA	5,U	
	LDB	#$0E	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STD	G00179+0,PCR
* Line tgvectrex.c:2037: assignment: =
	LEAX	G00196+0,PCR	address of array ships
	CLRA
	LDB	#$03		decimal 3 unsigned
	PSHS	X,B,A		optim: optimizePshsOps
	LDA	5,U	
	LDB	#$0E	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STD	G00180+0,PCR
L00070	EQU	*		end of Get_ship_pos()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Get_ship_rotation(): defined at tgvectrex.c:2131
_Get_ship_rotation	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:2134: assignment: =
	LEAX	G00196+0,PCR	address of array ships
	CLRA
	LDB	#$04		decimal 4 unsigned
	PSHS	X,B,A		optim: optimizePshsOps
	LDA	5,U	
	LDB	#$0E	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STD	G00185+0,PCR
* Line tgvectrex.c:2135: assignment: =
	LEAX	G00196+0,PCR	address of array ships
	CLRA
	LDB	#$05		decimal 5 unsigned
	PSHS	X,B,A		optim: optimizePshsOps
	LDA	5,U	
	LDB	#$0E	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STD	G00186+0,PCR
* Line tgvectrex.c:2136: assignment: =
	LEAX	G00196+0,PCR	address of array ships
	CLRA
	LDB	#$06		decimal 6 unsigned
	PSHS	X,B,A		optim: optimizePshsOps
	LDA	5,U	
	LDB	#$0E	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STD	G00187+0,PCR
L00079	EQU	*		end of Get_ship_rotation()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Get_ship_scale(): defined at tgvectrex.c:2040
_Get_ship_scale	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:2042: assignment: =
	LEAX	G00196+0,PCR	address of array ships
	CLRA
	LDB	#$07		decimal 7 unsigned
	PSHS	X,B,A		optim: optimizePshsOps
	LDA	5,U	
	LDB	#$0E	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STD	G00175+0,PCR
L00071	EQU	*		end of Get_ship_scale()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Get_ship_status(): defined at tgvectrex.c:2045
_Get_ship_status	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:2047: assignment: =
	LEAX	G00196+0,PCR	address of array ships
	CLRA
	LDB	#$0D		decimal 13 unsigned
	PSHS	X,B,A		optim: optimizePshsOps
	LDA	5,U	
	LDB	#$0E	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STB	G00174+0,PCR
L00072	EQU	*		end of Get_ship_status()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Get_ship_time(): defined at tgvectrex.c:2139
_Get_ship_time	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:2141: assignment: =
	LEAX	G00196+0,PCR	address of array ships
	CLRA
	LDB	#$09		decimal 9 unsigned
	PSHS	X,B,A		optim: optimizePshsOps
	LDA	5,U	
	LDB	#$0E	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STD	G00176+0,PCR
L00080	EQU	*		end of Get_ship_time()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Get_ship_type(): defined at tgvectrex.c:2445
_Get_ship_type	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:2447: assignment: =
	LEAX	G00196+0,PCR	address of array ships
	PSHS	X		preserve array address, then eval array index
	CLRA
	CLRB
	PSHS	B,A	
	LDA	5,U	
	LDB	#$0E	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STB	G00177+0,PCR
L00097	EQU	*		end of Get_ship_type()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Get_ship_vel(): defined at tgvectrex.c:2222
_Get_ship_vel	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:2224: assignment: =
	LEAX	G00196+0,PCR	address of array ships
	CLRA
	LDB	#$08		decimal 8 unsigned
	PSHS	X,B,A		optim: optimizePshsOps
	LDA	5,U	
	LDB	#$0E	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STD	G00181+0,PCR
L00086	EQU	*		end of Get_ship_vel()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Head_ship_towards_destination(): defined at tgvectrex.c:2292
_Head_ship_towards_destination	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:2294: function call: Get_ship_pos()
	LDB	5,U		variable id, declared at tgvectrex.c:2292
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Get_ship_pos(): unsigned char
	LBSR	_Get_ship_pos
	LEAS	2,S	
* Line tgvectrex.c:2295: function call: Get_ship_destination()
	LDB	5,U		variable id, declared at tgvectrex.c:2292
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Get_ship_destination(): unsigned char
	LBSR	_Get_ship_destination
	LEAS	2,S	
* Line tgvectrex.c:2297: function call: Rotate_ship_toward_by_fakepercent()
	LDD	#$10		decimal 16 signed
	PSHS	B,A		argument 5 of Rotate_ship_toward_by_fakepercent(): int
	LDD	G00184+0,PCR	variable this_Z_destination, declared at tgvectrex.c:1351
	PSHS	B,A		argument 4 of Rotate_ship_toward_by_fakepercent(): int
	LDD	G00183+0,PCR	variable this_Y_destination, declared at tgvectrex.c:1350
	PSHS	B,A		argument 3 of Rotate_ship_toward_by_fakepercent(): int
	LDD	G00182+0,PCR	variable this_X_destination, declared at tgvectrex.c:1349
	PSHS	B,A		argument 2 of Rotate_ship_toward_by_fakepercent(): int
	LDB	5,U		variable id, declared at tgvectrex.c:2292
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Rotate_ship_toward_by_fakepercent(): unsigned char
	LBSR	_Rotate_ship_toward_by_fakepercent
	LEAS	10,S	
L00092	EQU	*		end of Head_ship_towards_destination()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION InsertCoin(): defined at tgvectrex.c:1948
_InsertCoin	EQU	*
* Line tgvectrex.c:1950: assignment: =
	LDD	#$FF79		constant expression: 65401 decimal
	LDD	#$FF79	
	STD	G00166+0,PCR
* Line tgvectrex.c:1951: assignment: =
	LDD	#$FF88		constant expression: 65416 decimal
	LDD	#$FF88	
	STD	G00167+0,PCR
* Line tgvectrex.c:1952: function call: setintensity()
	LDB	G00142+0,PCR	variable global_flashing_intensity, declared at tgvectrex.c:1282
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of setintensity(): unsigned char
	LBSR	_setintensity
	LEAS	2,S	
* Line tgvectrex.c:1953: function call: ch128str()
	LEAX	G00121+0,PCR	address of array INSERT_COIN_STR128
	PSHS	X		argument 1 of ch128str(): unsigned char[]
	LBSR	_ch128str
	LEAS	2,S	
* Line tgvectrex.c:1954: function call: setintensity()
	LDD	#$6E		decimal 110 signed
	PSHS	B,A		argument 1 of setintensity(): int
	LBSR	_setintensity
	LEAS	2,S	
L00064	EQU	*		end of InsertCoin()
	RTS
* END FUNCTION


*******************************************************************************

* FUNCTION Main_loop(): defined at tgvectrex.c:168
_Main_loop	EQU	*
L00231	EQU	*
* Line tgvectrex.c:169: for body
* Line tgvectrex.c:170: function call: playTailgunner()
	LBSR	_playTailgunner
* Line tgvectrex.c:172: assignment: +=
	LDX	#$03E8		left
	LDD	G00104+0,PCR	right
	LBSR	SDIV16	
	TFR	X,D		quotient
	PSHS	B,A	
	LDD	G00106+0,PCR
	ADDD	,S++	
	STD	G00106+0,PCR
L00233	EQU	*
	LBRA	L00231	
L00234	EQU	*		end for
L00003	EQU	*		end of Main_loop()
	RTS
* END FUNCTION


*******************************************************************************

* FUNCTION Playintro(): defined at tgvectrex.c:1714
_Playintro	EQU	*
* Line tgvectrex.c:1716: assignment: =
	LDD	#$CE		decimal 206 signed
	LDD	#$CE	
	STD	G00137+0,PCR
* Line tgvectrex.c:1716: assignment: =
	LDD	#$40		decimal 64 signed
	LDB	#$40	
	STB	G00138+0,PCR
* Line tgvectrex.c:1717: assignment: =
	CLRA
	CLRB
	LDD	#$00	
	STD	G00141+0,PCR
* Line tgvectrex.c:1717: assignment: =
	CLRA
	CLRB
	LDD	#$00	
	STD	G00144+0,PCR
* Line tgvectrex.c:1718: assignment: =
	CLRA
	CLRB
	LDD	#$00	
	STD	G00165+0,PCR
L00044	EQU	*		end of Playintro()
	RTS
* END FUNCTION


*******************************************************************************

* FUNCTION Press_start(): defined at tgvectrex.c:1965
_Press_start	EQU	*
* Line tgvectrex.c:1967: assignment: =
	LDD	#$FF88		constant expression: 65416 decimal
	LDD	#$FF88	
	STD	G00166+0,PCR
* Line tgvectrex.c:1968: assignment: =
	LDB	#$F6		constant expression: 65526 decimal
	SEX	
	STD	G00167+0,PCR
* Line tgvectrex.c:1969: function call: setintensity()
	LDB	G00142+0,PCR	variable global_flashing_intensity, declared at tgvectrex.c:1282
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of setintensity(): unsigned char
	LBSR	_setintensity
	LEAS	2,S	
* Line tgvectrex.c:1970: function call: ch128str()
	LEAX	G00122+0,PCR	address of array PRESS_START_STR128
	PSHS	X		argument 1 of ch128str(): unsigned char[]
	LBSR	_ch128str
	LEAS	2,S	
* Line tgvectrex.c:1971: function call: setintensity()
	LDD	#$6E		decimal 110 signed
	PSHS	B,A		argument 1 of setintensity(): int
	LBSR	_setintensity
	LEAS	2,S	
L00066	EQU	*		end of Press_start()
	RTS
* END FUNCTION


*******************************************************************************

* FUNCTION Render_lasers(): defined at tgvectrex.c:2377
_Render_lasers	EQU	*
* Line tgvectrex.c:2380: if
	LDB	G00108+0,PCR	variable Pressed_Key
	CMPB	#$0A	
	LBEQ	L00235	
	LBRA	L00238	
L00238	EQU	*
	LDB	G00108+0,PCR	variable Pressed_Key
	CMPB	#$0D	
	LBEQ	L00235	
	LBRA	L00237	
L00237	EQU	*
	LDB	G00111+0,PCR	variable mouse_fire, declared at tgvectrex.c:142
	TSTB
	LBNE	L00235	
	LBRA	L00236	
L00235	EQU	*		then
* Line tgvectrex.c:2381: assignment: =
	CLRA
	CLRB
	CLRB
	STB	G00108+0,PCR
* Line tgvectrex.c:2382: if
	LDB	G00203+0,PCR	variable firing, declared at tgvectrex.c:2376
	TSTB
	LBNE	L00240	
	LBRA	L00241	
L00241	EQU	*
	LDB	G00206+0,PCR	variable reloaded, declared at tgvectrex.c:2376
	TSTB
	LBNE	L00239	
	LBRA	L00240	
L00239	EQU	*		then
* Line tgvectrex.c:2384: assignment: =
	LDD	#$01		decimal 1 signed
	LDB	#$01	
	STB	G00203+0,PCR
* Line tgvectrex.c:2384: assignment: =
	CLRA
	CLRB
	CLRB
	STB	G00206+0,PCR
* Line tgvectrex.c:2385: assignment: =
* Line tgvectrex.c:2385: function call: plot_fire()
	LDD	G00110+0,PCR	variable mouse_y, declared at tgvectrex.c:141
	PSHS	B,A		argument 5 of plot_fire(): int
	LDD	G00109+0,PCR	variable mouse_x, declared at tgvectrex.c:141
	PSHS	B,A		argument 4 of plot_fire(): int
	LDD	#$28		decimal 40 signed
	PSHS	B,A		argument 3 of plot_fire(): int
	LDD	#$28		decimal 40 signed
	PSHS	B,A		argument 2 of plot_fire(): int
	CLRA
	CLRB
	PSHS	B,A		argument 1 of plot_fire(): int
	LBSR	_plot_fire
	LEAS	10,S	
	STB	G00204+0,PCR
* Line tgvectrex.c:2386: assignment: =
* Line tgvectrex.c:2386: function call: plot_fire()
	LDD	G00110+0,PCR	variable mouse_y, declared at tgvectrex.c:141
	PSHS	B,A		argument 5 of plot_fire(): int
	LDD	G00109+0,PCR	variable mouse_x, declared at tgvectrex.c:141
	PSHS	B,A		argument 4 of plot_fire(): int
	LDD	#$28		decimal 40 signed
	PSHS	B,A		argument 3 of plot_fire(): int
	LDD	#$03E8		decimal 1000 signed
	PSHS	B,A		argument 2 of plot_fire(): int
	LDD	#$01		decimal 1 signed
	PSHS	B,A		argument 1 of plot_fire(): int
	LBSR	_plot_fire
	LEAS	10,S	
	STB	G00205+0,PCR
	LBRA	L00242		jump over else clause
L00240	EQU	*		else
* Line tgvectrex.c:2388: if
	LDB	G00204+0,PCR	variable firedone1, declared at tgvectrex.c:2376
	TSTB
	LBNE	L00244	
	LBRA	L00243	
L00243	EQU	*		then
* Line tgvectrex.c:2389: assignment: =
* Line tgvectrex.c:2389: function call: plot_fire()
	LDD	G00110+0,PCR	variable mouse_y, declared at tgvectrex.c:141
	PSHS	B,A		argument 5 of plot_fire(): int
	LDD	G00109+0,PCR	variable mouse_x, declared at tgvectrex.c:141
	PSHS	B,A		argument 4 of plot_fire(): int
	LDD	G00200+0,PCR	index 0 in array firey[]
	PSHS	B,A		argument 3 of plot_fire(): int
	LDD	G00199+0,PCR	index 0 in array firex[]
	PSHS	B,A		argument 2 of plot_fire(): int
	CLRA
	CLRB
	PSHS	B,A		argument 1 of plot_fire(): int
	LBSR	_plot_fire
	LEAS	10,S	
	STB	G00204+0,PCR
L00244	EQU	*		else
L00245	EQU	*		end if
* Line tgvectrex.c:2391: if
	LDB	G00205+0,PCR	variable firedone2, declared at tgvectrex.c:2376
	TSTB
	LBNE	L00247	
	LBRA	L00246	
L00246	EQU	*		then
* Line tgvectrex.c:2392: assignment: =
* Line tgvectrex.c:2392: function call: plot_fire()
	LDD	G00110+0,PCR	variable mouse_y, declared at tgvectrex.c:141
	PSHS	B,A		argument 5 of plot_fire(): int
	LDD	G00109+0,PCR	variable mouse_x, declared at tgvectrex.c:141
	PSHS	B,A		argument 4 of plot_fire(): int
	LDD	G00200+2,PCR	index 1 in array firey[]
	PSHS	B,A		argument 3 of plot_fire(): int
	LDD	G00199+2,PCR	index 1 in array firex[]
	PSHS	B,A		argument 2 of plot_fire(): int
	LDD	#$01		decimal 1 signed
	PSHS	B,A		argument 1 of plot_fire(): int
	LBSR	_plot_fire
	LEAS	10,S	
	STB	G00205+0,PCR
L00247	EQU	*		else
L00248	EQU	*		end if
* Line tgvectrex.c:2394: assignment: =
	LDB	G00204+0,PCR	variable firedone1, declared at tgvectrex.c:2376
	TSTB			boolean negation: get Z flag
	TFR	CC,B	
	ANDB	#4		keep Z flag
	LSRB			shift Z flag to bit 0 of B
	LSRB
	TSTB			||
	LBNE	L00249		|| yields true
	LDB	G00205+0,PCR	variable firedone2, declared at tgvectrex.c:2376
	TSTB			boolean negation: get Z flag
	TFR	CC,B	
	ANDB	#4		keep Z flag
	LSRB			shift Z flag to bit 0 of B
	LSRB
	TSTB			||
	LBEQ	L00250	
L00249	EQU	*		|| at tgvectrex.c:2394 yields true, B != 0
L00250	EQU	*
	STB	G00203+0,PCR
L00242	EQU	*		end if
	LBRA	L00251		jump over else clause
L00236	EQU	*		else
* Line tgvectrex.c:2397: if
	LDB	G00203+0,PCR	variable firing, declared at tgvectrex.c:2376
	TSTB
	LBNE	L00252	
	LBRA	L00253	
L00252	EQU	*		then
* Line tgvectrex.c:2398: if
	LDB	G00204+0,PCR	variable firedone1, declared at tgvectrex.c:2376
	TSTB
	LBNE	L00255	
	LBRA	L00254	
L00254	EQU	*		then
* Line tgvectrex.c:2399: assignment: =
* Line tgvectrex.c:2399: function call: plot_fire()
	LDD	G00110+0,PCR	variable mouse_y, declared at tgvectrex.c:141
	PSHS	B,A		argument 5 of plot_fire(): int
	LDD	G00109+0,PCR	variable mouse_x, declared at tgvectrex.c:141
	PSHS	B,A		argument 4 of plot_fire(): int
	LDD	G00200+0,PCR	index 0 in array firey[]
	PSHS	B,A		argument 3 of plot_fire(): int
	LDD	G00199+0,PCR	index 0 in array firex[]
	PSHS	B,A		argument 2 of plot_fire(): int
	CLRA
	CLRB
	PSHS	B,A		argument 1 of plot_fire(): int
	LBSR	_plot_fire
	LEAS	10,S	
	STB	G00204+0,PCR
L00255	EQU	*		else
L00256	EQU	*		end if
* Line tgvectrex.c:2401: if
	LDB	G00205+0,PCR	variable firedone2, declared at tgvectrex.c:2376
	TSTB
	LBNE	L00258	
	LBRA	L00257	
L00257	EQU	*		then
* Line tgvectrex.c:2402: assignment: =
* Line tgvectrex.c:2402: function call: plot_fire()
	LDD	G00110+0,PCR	variable mouse_y, declared at tgvectrex.c:141
	PSHS	B,A		argument 5 of plot_fire(): int
	LDD	G00109+0,PCR	variable mouse_x, declared at tgvectrex.c:141
	PSHS	B,A		argument 4 of plot_fire(): int
	LDD	G00200+2,PCR	index 1 in array firey[]
	PSHS	B,A		argument 3 of plot_fire(): int
	LDD	G00199+2,PCR	index 1 in array firex[]
	PSHS	B,A		argument 2 of plot_fire(): int
	LDD	#$01		decimal 1 signed
	PSHS	B,A		argument 1 of plot_fire(): int
	LBSR	_plot_fire
	LEAS	10,S	
	STB	G00205+0,PCR
L00258	EQU	*		else
L00259	EQU	*		end if
* Line tgvectrex.c:2404: assignment: =
	LDB	G00204+0,PCR	variable firedone1, declared at tgvectrex.c:2376
	TSTB			&&
	LBEQ	L00260		&& at tgvectrex.c:2404 yields false, B == 0
	LDB	G00205+0,PCR	variable firedone2, declared at tgvectrex.c:2376
	TSTB			&&
	LBEQ	L00260		&& at tgvectrex.c:2404 yields false, B == 0
	LDB	#1		&& yields true
L00260	EQU	*
	TSTB			boolean negation: get Z flag
	TFR	CC,B	
	ANDB	#4		keep Z flag
	LSRB			shift Z flag to bit 0 of B
	LSRB
	STB	G00203+0,PCR
	LBRA	L00261		jump over else clause
L00253	EQU	*		else
* Line tgvectrex.c:2405: assignment: =
	LDD	#$01		decimal 1 signed
	LDB	#$01	
	STB	G00206+0,PCR
L00261	EQU	*		end if
L00251	EQU	*		end if
L00096	EQU	*		end of Render_lasers()
	RTS
* END FUNCTION


*******************************************************************************

* FUNCTION Render_ships(): defined at tgvectrex.c:2450
_Render_ships	EQU	*
	PSHS	U	
	LEAU	,S	
	LEAS	-1,S	
* Line tgvectrex.c:2452: init of variable id
	CLR	-1,U		variable id
* Line tgvectrex.c:2453: for init
* Line tgvectrex.c:2453: assignment: =
	CLRA
	CLRB
	CLRB
	STB	-1,U	
	LBRA	L00263		jump to for condition
L00262	EQU	*
* Line tgvectrex.c:2453: for body
* Line tgvectrex.c:2454: function call: Get_ship_status()
	LDB	-1,U		variable id, declared at tgvectrex.c:2452
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Get_ship_status(): unsigned char
	LBSR	_Get_ship_status
	LEAS	2,S	
* Line tgvectrex.c:2455: if
	LDB	G00174+0,PCR	variable this_status, declared at tgvectrex.c:1337
	TSTB
	BNE	L00267	
* Line tgvectrex.c:2456: function call: Get_ship_type()
	LDB	-1,U		variable id, declared at tgvectrex.c:2452
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Get_ship_type(): unsigned char
	LBSR	_Get_ship_type
	LEAS	2,S	
* Line tgvectrex.c:2457: function call: Get_ship_pos()
	LDB	-1,U		variable id, declared at tgvectrex.c:2452
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Get_ship_pos(): unsigned char
	LBSR	_Get_ship_pos
	LEAS	2,S	
* Line tgvectrex.c:2458: function call: Get_ship_rotation()
	LDB	-1,U		variable id, declared at tgvectrex.c:2452
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Get_ship_rotation(): unsigned char
	LBSR	_Get_ship_rotation
	LEAS	2,S	
* Line tgvectrex.c:2459: function call: Get_ship_scale()
	LDB	-1,U		variable id, declared at tgvectrex.c:2452
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Get_ship_scale(): unsigned char
	LBSR	_Get_ship_scale
	LEAS	2,S	
* Line tgvectrex.c:2463: function call: Draw_ship_at_rotated_scale()
	LDD	G00175+0,PCR	variable this_scale_fp, declared at tgvectrex.c:1338
	PSHS	B,A		argument 8 of Draw_ship_at_rotated_scale(): int
	LDD	G00187+0,PCR	variable this_Z_rotation, declared at tgvectrex.c:1355
	PSHS	B,A		argument 7 of Draw_ship_at_rotated_scale(): int
	LDD	G00186+0,PCR	variable this_Y_rotation, declared at tgvectrex.c:1354
	PSHS	B,A		argument 6 of Draw_ship_at_rotated_scale(): int
	LDD	G00185+0,PCR	variable this_X_rotation, declared at tgvectrex.c:1353
	PSHS	B,A		argument 5 of Draw_ship_at_rotated_scale(): int
	LDD	G00180+0,PCR	variable this_Z, declared at tgvectrex.c:1345
	PSHS	B,A		argument 4 of Draw_ship_at_rotated_scale(): int
	LDD	G00179+0,PCR	variable this_Y, declared at tgvectrex.c:1344
	PSHS	B,A		argument 3 of Draw_ship_at_rotated_scale(): int
	LDD	G00178+0,PCR	variable this_X, declared at tgvectrex.c:1343
	PSHS	B,A		argument 2 of Draw_ship_at_rotated_scale(): int
	LDB	G00177+0,PCR	variable this_model, declared at tgvectrex.c:1342
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Draw_ship_at_rotated_scale(): unsigned char
	LBSR	_Draw_ship_at_rotated_scale
	LEAS	16,S	
L00267	EQU	*		else
L00268	EQU	*		end if
L00264	EQU	*
* Line tgvectrex.c:2453: for increment(s)
	INC	-1,U	
L00263	EQU	*
* Line tgvectrex.c:2453: for condition
	LDB	-1,U		variable id
	CMPB	#$03	
	LBLO	L00262	
	LBRA	L00265	
L00265	EQU	*		end for
L00098	EQU	*		end of Render_ships()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Rotate_ship_toward_by_fakepercent(): defined at tgvectrex.c:2270
_Rotate_ship_toward_by_fakepercent	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:2274: function call: Get_ship_pos()
	LDB	5,U		variable id, declared at tgvectrex.c:2270
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Get_ship_pos(): unsigned char
	LBSR	_Get_ship_pos
	LEAS	2,S	
* Line tgvectrex.c:2275: function call: Get_eigenvector_to()
	LDD	G00180+0,PCR	variable this_Z, declared at tgvectrex.c:1345
	PSHS	B,A	
	LDD	10,U		variable z, declared at tgvectrex.c:2270
	SUBD	,S++	
	PSHS	B,A		argument 3 of Get_eigenvector_to(): int
	LDD	G00179+0,PCR	variable this_Y, declared at tgvectrex.c:1344
	PSHS	B,A	
	LDD	8,U		variable y, declared at tgvectrex.c:2270
	SUBD	,S++	
	PSHS	B,A		argument 2 of Get_eigenvector_to(): int
	LDD	G00178+0,PCR	variable this_X, declared at tgvectrex.c:1343
	PSHS	B,A	
	LDD	6,U		variable x, declared at tgvectrex.c:2270
	SUBD	,S++	
	PSHS	B,A		argument 1 of Get_eigenvector_to(): int
	LBSR	_Get_eigenvector_to
	LEAS	6,S	
* Line tgvectrex.c:2276: function call: Get_ship_rotation()
	LDB	5,U		variable id, declared at tgvectrex.c:2270
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Get_ship_rotation(): unsigned char
	LBSR	_Get_ship_rotation
	LEAS	2,S	
* Line tgvectrex.c:2282: function call: Change_ship_rotation_by()
	LDD	12,U		variable fakepercent, declared at tgvectrex.c:2270
	PSHS	B,A	
	LDD	G00187+0,PCR	variable this_Z_rotation, declared at tgvectrex.c:1355
	COMA
	COMB
	ADDD	#1	
	PULS	X	
	LBSR	MUL16	
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	PSHS	B,A		argument 4 of Change_ship_rotation_by(): int
	LDD	12,U		variable fakepercent, declared at tgvectrex.c:2270
	PSHS	B,A	
	LDD	#$80		decimal 128 signed
	PSHS	B,A	
	LDD	#$FF		decimal 255 signed
	PSHS	B,A	
	LDD	#$80		decimal 128 signed
	PSHS	B,A	
	LDD	G00186+0,PCR	variable this_Y_rotation, declared at tgvectrex.c:1354
	PSHS	B,A	
	LDD	G00194+0,PCR	variable dirXZ, declared at tgvectrex.c:1366
	SUBD	,S++	
	ADDD	,S++	
	ANDA	,S+	
	ANDB	,S+	
	SUBD	,S++	
	PULS	X	
	LBSR	MUL16	
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	PSHS	B,A		argument 3 of Change_ship_rotation_by(): int
	LDD	12,U		variable fakepercent, declared at tgvectrex.c:2270
	PSHS	B,A	
	LDD	#$80		decimal 128 signed
	PSHS	B,A	
	LDD	#$FF		decimal 255 signed
	PSHS	B,A	
	LDD	#$80		decimal 128 signed
	PSHS	B,A	
	LDD	G00185+0,PCR	variable this_X_rotation, declared at tgvectrex.c:1353
	PSHS	B,A	
	LDD	G00195+0,PCR	variable dirY, declared at tgvectrex.c:1367
	SUBD	,S++	
	ADDD	,S++	
	ANDA	,S+	
	ANDB	,S+	
	SUBD	,S++	
	PULS	X	
	LBSR	MUL16	
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	PSHS	B,A		argument 2 of Change_ship_rotation_by(): int
	LDB	5,U		variable id, declared at tgvectrex.c:2270
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Change_ship_rotation_by(): unsigned char
	LBSR	_Change_ship_rotation_by
	LEAS	8,S	
L00091	EQU	*		end of Rotate_ship_toward_by_fakepercent()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Scratch_atan2_fakedegrees(): defined at tgvectrex.c:1158
_Scratch_atan2_fakedegrees	EQU	*
	PSHS	U	
	LEAU	,S--	
* Line tgvectrex.c:1160: init of variable result
	LDD	#$80		decimal 128 signed
	PSHS	B,A	
* Line tgvectrex.c:1160: function call: fxpt_atan2()
	LDD	6,U		variable y, declared at tgvectrex.c:1158
	PSHS	B,A		argument 2 of fxpt_atan2(): int
	LDD	4,U		variable x, declared at tgvectrex.c:1158
	PSHS	B,A		argument 1 of fxpt_atan2(): int
	LBSR	_fxpt_atan2
	LEAS	4,S	
	TFR	A,B		shift D 8 bits right
	CLRA			unsigned
	SUBD	,S++	
	STD	-2,U		variable result
* Line tgvectrex.c:1162: if
	LDD	-2,U		variable result
	CMPD	#$FFC0
	BGT	L00270	
* Line tgvectrex.c:1163: return with value
	LDD	-2,U		variable result
	ADDD	#$80		128
	LBRA	L00024		return (tgvectrex.c:1163)
	LBRA	L00271		jump over else clause
L00270	EQU	*		else
* Line tgvectrex.c:1164: if
	LDD	-2,U		variable result
	CMPD	#$40	
	LBGE	L00272	
	LBRA	L00273	
L00272	EQU	*		then
* Line tgvectrex.c:1165: return with value
	LDD	-2,U		variable result
	ADDD	#$FF80		65408
	LBRA	L00024		return (tgvectrex.c:1165)
L00273	EQU	*		else
L00274	EQU	*		end if
L00271	EQU	*		end if
* Line tgvectrex.c:1167: return with value
	LDD	-2,U		variable result, declared at tgvectrex.c:1160
	LBRA	L00024		return (tgvectrex.c:1167)
L00024	EQU	*		end of Scratch_atan2_fakedegrees()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Set_rotation_vars(): defined at tgvectrex.c:2164
_Set_rotation_vars	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:2166: assignment: =
* Line tgvectrex.c:2166: function call: fp2_14_sin()
	LDD	4,U		variable Xrot, declared at tgvectrex.c:2164
	PSHS	B,A		argument 1 of fp2_14_sin(): int
	LBSR	_fp2_14_sin
	LEAS	2,S	
	STD	G00162+0,PCR
* Line tgvectrex.c:2167: assignment: =
* Line tgvectrex.c:2167: function call: fp2_14_cos()
	LDD	4,U		variable Xrot, declared at tgvectrex.c:2164
	PSHS	B,A		argument 1 of fp2_14_cos(): int
	LBSR	_fp2_14_cos
	LEAS	2,S	
	STD	G00159+0,PCR
* Line tgvectrex.c:2168: assignment: =
* Line tgvectrex.c:2168: function call: fp2_14_sin()
	LDD	6,U		variable Yrot, declared at tgvectrex.c:2164
	PSHS	B,A		argument 1 of fp2_14_sin(): int
	LBSR	_fp2_14_sin
	LEAS	2,S	
	STD	G00163+0,PCR
* Line tgvectrex.c:2169: assignment: =
* Line tgvectrex.c:2169: function call: fp2_14_cos()
	LDD	6,U		variable Yrot, declared at tgvectrex.c:2164
	PSHS	B,A		argument 1 of fp2_14_cos(): int
	LBSR	_fp2_14_cos
	LEAS	2,S	
	STD	G00160+0,PCR
* Line tgvectrex.c:2170: assignment: =
* Line tgvectrex.c:2170: function call: fp2_14_sin()
	LDD	8,U		variable Zrot, declared at tgvectrex.c:2164
	PSHS	B,A		argument 1 of fp2_14_sin(): int
	LBSR	_fp2_14_sin
	LEAS	2,S	
	STD	G00164+0,PCR
* Line tgvectrex.c:2171: assignment: =
* Line tgvectrex.c:2171: function call: fp2_14_cos()
	LDD	8,U		variable Zrot, declared at tgvectrex.c:2164
	PSHS	B,A		argument 1 of fp2_14_cos(): int
	LBSR	_fp2_14_cos
	LEAS	2,S	
	STD	G00161+0,PCR
L00083	EQU	*		end of Set_rotation_vars()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Set_ship_destinationto(): defined at tgvectrex.c:2313
_Set_ship_destinationto	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:2316: assignment: =
	LDD	6,U		variable x, declared at tgvectrex.c:2313
	PSHS	B,A	
	LEAX	G00196+0,PCR	address of array ships
	CLRA
	LDB	#$0A		decimal 10 unsigned
	PSHS	X,B,A		optim: optimizePshsOps
	LDA	5,U	
	LDB	#$0E	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
* Line tgvectrex.c:2317: assignment: =
	LDD	8,U		variable y, declared at tgvectrex.c:2313
	PSHS	B,A	
	LEAX	G00196+0,PCR	address of array ships
	CLRA
	LDB	#$0B		decimal 11 unsigned
	PSHS	X,B,A		optim: optimizePshsOps
	LDA	5,U	
	LDB	#$0E	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
* Line tgvectrex.c:2318: assignment: =
	LDD	10,U		variable z, declared at tgvectrex.c:2313
	PSHS	B,A	
	LEAX	G00196+0,PCR	address of array ships
	CLRA
	LDB	#$0C		decimal 12 unsigned
	PSHS	X,B,A		optim: optimizePshsOps
	LDA	5,U	
	LDB	#$0E	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
L00094	EQU	*		end of Set_ship_destinationto()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Set_ship_status(): defined at tgvectrex.c:2066
_Set_ship_status	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:2068: assignment: =
	LDB	7,U		variable NewStatus, declared at tgvectrex.c:2066
	CLRA
	PSHS	B,A	
	LEAX	G00196+0,PCR	address of array ships
	CLRA
	LDB	#$0D		decimal 13 unsigned
	PSHS	X,B,A		optim: optimizePshsOps
	LDA	5,U	
	LDB	#$0E	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
L00074	EQU	*		end of Set_ship_status()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Set_ship_velocityto(): defined at tgvectrex.c:2308
_Set_ship_velocityto	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:2310: assignment: =
	LDD	6,U		variable vel, declared at tgvectrex.c:2308
	PSHS	B,A	
	LEAX	G00196+0,PCR	address of array ships
	CLRA
	LDB	#$08		decimal 8 unsigned
	PSHS	X,B,A		optim: optimizePshsOps
	LDA	5,U	
	LDB	#$0E	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
L00093	EQU	*		end of Set_ship_velocityto()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Shield(): defined at tgvectrex.c:1994
_Shield	EQU	*
* Line tgvectrex.c:1996: if
	LDD	G00156+0,PCR	variable shieldsubticksleft, declared at tgvectrex.c:1305
	ADDD	#0	
	LBEQ	L00275	
	LBRA	L00276	
L00275	EQU	*		then
* Line tgvectrex.c:1997: function call: startAsyncSound()
	LDD	#$04		decimal 4 signed
	PSHS	B,A		argument 1 of startAsyncSound(): int
	LBSR	_startAsyncSound
	LEAS	2,S	
* Line tgvectrex.c:2000: assignment: =
* Line tgvectrex.c:2000: function call: div_int_by_int_returning_fp2_14()
	LDD	#$03		decimal 3 signed
	PSHS	B,A		argument 2 of div_int_by_int_returning_fp2_14(): int
	LDD	#$0A		decimal 10 signed
	PSHS	B,A		argument 1 of div_int_by_int_returning_fp2_14(): int
	LBSR	_div_int_by_int_returning_fp2_14
	LEAS	4,S	
	STD	G00156+0,PCR
* Line tgvectrex.c:2003: assignment: -=
	LDD	G00154+0,PCR	variable Shields
	SUBD	#$01		-= operator at tgvectrex.c:2003
	STD	G00154+0,PCR
	LBRA	L00277		jump over else clause
L00276	EQU	*		else
* Line tgvectrex.c:2005: assignment: -=
	LDD	G00156+0,PCR	variable shieldsubticksleft
	SUBD	#$01		-= operator at tgvectrex.c:2005
	STD	G00156+0,PCR
L00277	EQU	*		end if
* Line tgvectrex.c:2007: function call: draw_shields()
	LBSR	_draw_shields
L00069	EQU	*		end of Shield()
	RTS
* END FUNCTION


*******************************************************************************

* FUNCTION Start_attack_wave(): defined at tgvectrex.c:1781
_Start_attack_wave	EQU	*
	PSHS	U	
	LEAU	,S	
	LEAS	-13,S	
* Line tgvectrex.c:1783: init of variable Z
	LDD	#$07D0		2000
	STD	-7,U		variable Z
* Line tgvectrex.c:1783: init of variable scale_fp
* Line tgvectrex.c:1783: function call: div_int_by_int_returning_fp2_14()
	LDD	#$1388		decimal 5000 signed
	PSHS	B,A		argument 2 of div_int_by_int_returning_fp2_14(): int
	LDD	#$07CF		decimal 1999 signed
	PSHS	B,A		argument 1 of div_int_by_int_returning_fp2_14(): int
	LBSR	_div_int_by_int_returning_fp2_14
	LEAS	4,S	
	STD	-3,U		variable scale_fp
* Line tgvectrex.c:1787: for init
* Line tgvectrex.c:1787: assignment: =
	CLRA
	CLRB
	CLRB
	STB	-1,U	
	LBRA	L00279		jump to for condition
L00278	EQU	*
* Line tgvectrex.c:1787: for body
* Line tgvectrex.c:1788: assignment: =
* Line tgvectrex.c:1788: function call: pickrandom()
	LDD	#$03		decimal 3 signed
	PSHS	B,A		argument 2 of pickrandom(): int
	LDD	#$01		decimal 1 signed
	PSHS	B,A		argument 1 of pickrandom(): int
	LBSR	_pickrandom
	LEAS	4,S	
	STD	-13,U	
* Line tgvectrex.c:1789: if
	LDD	-13,U		variable randomedge
	CMPD	#$01
	BNE	L00283	
* Line tgvectrex.c:1790: assignment: =
	LDD	#$FC7C		constant expression: 64636 decimal
	LDD	#$FC7C	
	STD	-11,U	
* Line tgvectrex.c:1790: assignment: =
* Line tgvectrex.c:1790: function call: pickrandom()
	LDD	#$01F4		decimal 500 signed
	PSHS	B,A		argument 2 of pickrandom(): int
	LDD	#$FE0C		constant expression: 65036 decimal
	PSHS	B,A		argument 1 of pickrandom(): int
	LBSR	_pickrandom
	LEAS	4,S	
	STD	-9,U	
* Line tgvectrex.c:1790: assignment: =
	LDD	#$40		decimal 64 signed
	LDD	#$40	
	STD	-5,U	
	LBRA	L00284		jump over else clause
L00283	EQU	*		else
* Line tgvectrex.c:1791: if
	LDD	-13,U		variable randomedge
	CMPD	#$02
	BNE	L00286	
* Line tgvectrex.c:1792: assignment: =
* Line tgvectrex.c:1792: function call: pickrandom()
	LDD	#$01F4		decimal 500 signed
	PSHS	B,A		argument 2 of pickrandom(): int
	LDD	#$FE0C		constant expression: 65036 decimal
	PSHS	B,A		argument 1 of pickrandom(): int
	LBSR	_pickrandom
	LEAS	4,S	
	STD	-11,U	
* Line tgvectrex.c:1792: assignment: =
	LDD	#$02BC		decimal 700 signed
	LDD	#$02BC	
	STD	-9,U	
* Line tgvectrex.c:1792: assignment: =
	CLRA
	CLRB
	LDD	#$00	
	STD	-5,U	
	LBRA	L00287		jump over else clause
L00286	EQU	*		else
* Line tgvectrex.c:1794: assignment: =
	LDD	#$0384		decimal 900 signed
	LDD	#$0384	
	STD	-11,U	
* Line tgvectrex.c:1794: assignment: =
* Line tgvectrex.c:1794: function call: pickrandom()
	LDD	#$01F4		decimal 500 signed
	PSHS	B,A		argument 2 of pickrandom(): int
	LDD	#$FE0C		constant expression: 65036 decimal
	PSHS	B,A		argument 1 of pickrandom(): int
	LBSR	_pickrandom
	LEAS	4,S	
	STD	-9,U	
* Line tgvectrex.c:1794: assignment: =
	LDD	#$C0		constant expression: 192 decimal
	LDD	#$C0	
	STD	-5,U	
L00287	EQU	*		end if
L00284	EQU	*		end if
* Line tgvectrex.c:1796: function call: initialise_ship()
	LDD	-3,U		variable scale_fp, declared at tgvectrex.c:1783
	PSHS	B,A		argument 9 of initialise_ship(): int
	LDD	-5,U		variable Zrot, declared at tgvectrex.c:1783
	PSHS	B,A		argument 8 of initialise_ship(): int
	LDD	#$80		decimal 128 signed
	PSHS	B,A		argument 7 of initialise_ship(): int
	LDD	#$C0		constant expression: 192 decimal
	PSHS	B,A		argument 6 of initialise_ship(): int
	LDD	-7,U		variable Z, declared at tgvectrex.c:1783
	PSHS	B,A		argument 5 of initialise_ship(): int
	LDD	-9,U		variable Y, declared at tgvectrex.c:1783
	PSHS	B,A		argument 4 of initialise_ship(): int
	LDD	-11,U		variable X, declared at tgvectrex.c:1783
	PSHS	B,A		argument 3 of initialise_ship(): int
	LDB	G00173+0,PCR	variable nextwaveshiptype, declared at tgvectrex.c:1331
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 2 of initialise_ship(): unsigned char
	LDB	-1,U		variable i, declared at tgvectrex.c:1785
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of initialise_ship(): unsigned char
	LBSR	_initialise_ship
	LEAS	18,S	
L00280	EQU	*
* Line tgvectrex.c:1787: for increment(s)
	INC	-1,U	
L00279	EQU	*
* Line tgvectrex.c:1787: for condition
	LDB	-1,U		variable i
	CMPB	#$03	
	LBLO	L00278	
	LBRA	L00281	
L00281	EQU	*		end for
* Line tgvectrex.c:1801: assignment: =
	LDD	#$03		decimal 3 signed
	PSHS	B,A	
	LDB	G00173+0,PCR
	CLRA
	ADDD	#$01		1
	CLRA			promotion of binary operand
	ANDA	,S+	
	ANDB	,S+	
	STB	G00173+0,PCR
* Line tgvectrex.c:1803: assignment: =
	CLRA
	CLRB
	LDD	#$00	
	STD	G00157+0,PCR
L00047	EQU	*		end of Start_attack_wave()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Start_new_game(): defined at tgvectrex.c:1806
_Start_new_game	EQU	*
* Line tgvectrex.c:1808: assignment: =
	LDD	#$02		decimal 2 signed
	LDD	#$02	
	STD	G00165+0,PCR
* Line tgvectrex.c:1809: assignment: =
	CLRA
	CLRB
	LDD	#$00	
	STD	G00152+0,PCR
* Line tgvectrex.c:1811: assignment: =
	LDD	#$50		decimal 80 signed
	LDD	#$50	
	STD	G00154+0,PCR
* Line tgvectrex.c:1812: assignment: =
	CLRA
	CLRB
	LDD	#$00	
	STD	G00158+0,PCR
* Line tgvectrex.c:1814: assignment: =
	CLRA
	CLRB
	CLRB
	STB	G00173+0,PCR
* Line tgvectrex.c:1817: function call: Start_attack_wave()
	LBSR	_Start_attack_wave
* Line tgvectrex.c:1821: assignment: =
* Line tgvectrex.c:1821: function call: millis()
	LBSR	_millis	
	STD	G00149+0,PCR
L00048	EQU	*		end of Start_new_game()
	RTS
* END FUNCTION


*******************************************************************************

* FUNCTION Transform_point(): defined at tgvectrex.c:2101
_Transform_point	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:2104: assignment: =
* Line tgvectrex.c:2104: function call: mul_short_by_fp2_14_returning_short()
	LDD	G00162+0,PCR	variable sinX, declared at tgvectrex.c:1313
	PSHS	B,A		argument 2 of mul_short_by_fp2_14_returning_short(): int
	LDD	8,U		variable z, declared at tgvectrex.c:2101
	PSHS	B,A		argument 1 of mul_short_by_fp2_14_returning_short(): int
	LBSR	_mul_short_by_fp2_14_returning_short
	LEAS	4,S	
	PSHS	B,A	
* Line tgvectrex.c:2104: function call: mul_short_by_fp2_14_returning_short()
	LDD	G00159+0,PCR	variable cosX, declared at tgvectrex.c:1310
	PSHS	B,A		argument 2 of mul_short_by_fp2_14_returning_short(): int
	LDD	6,U		variable y, declared at tgvectrex.c:2101
	PSHS	B,A		argument 1 of mul_short_by_fp2_14_returning_short(): int
	LBSR	_mul_short_by_fp2_14_returning_short
	LEAS	4,S	
	SUBD	,S++	
	STD	G00191+0,PCR
* Line tgvectrex.c:2105: assignment: =
* Line tgvectrex.c:2105: function call: mul_short_by_fp2_14_returning_short()
	LDD	G00159+0,PCR	variable cosX, declared at tgvectrex.c:1310
	PSHS	B,A		argument 2 of mul_short_by_fp2_14_returning_short(): int
	LDD	8,U		variable z, declared at tgvectrex.c:2101
	PSHS	B,A		argument 1 of mul_short_by_fp2_14_returning_short(): int
	LBSR	_mul_short_by_fp2_14_returning_short
	LEAS	4,S	
	PSHS	B,A	
* Line tgvectrex.c:2105: function call: mul_short_by_fp2_14_returning_short()
	LDD	G00162+0,PCR	variable sinX, declared at tgvectrex.c:1313
	PSHS	B,A		argument 2 of mul_short_by_fp2_14_returning_short(): int
	LDD	6,U		variable y, declared at tgvectrex.c:2101
	PSHS	B,A		argument 1 of mul_short_by_fp2_14_returning_short(): int
	LBSR	_mul_short_by_fp2_14_returning_short
	LEAS	4,S	
	ADDD	,S++	
	STD	G00192+0,PCR
* Line tgvectrex.c:2106: assignment: =
* Line tgvectrex.c:2106: function call: mul_short_by_fp2_14_returning_short()
	LDD	G00163+0,PCR	variable sinY, declared at tgvectrex.c:1314
	PSHS	B,A		argument 2 of mul_short_by_fp2_14_returning_short(): int
	LDD	4,U		variable x, declared at tgvectrex.c:2101
	PSHS	B,A		argument 1 of mul_short_by_fp2_14_returning_short(): int
	LBSR	_mul_short_by_fp2_14_returning_short
	LEAS	4,S	
	PSHS	B,A	
* Line tgvectrex.c:2106: function call: mul_short_by_fp2_14_returning_short()
	LDD	G00160+0,PCR	variable cosY, declared at tgvectrex.c:1311
	PSHS	B,A		argument 2 of mul_short_by_fp2_14_returning_short(): int
	LDD	G00192+0,PCR	variable XZ, declared at tgvectrex.c:1364
	PSHS	B,A		argument 1 of mul_short_by_fp2_14_returning_short(): int
	LBSR	_mul_short_by_fp2_14_returning_short
	LEAS	4,S	
	SUBD	,S++	
	STD	G00190+0,PCR
* Line tgvectrex.c:2107: assignment: =
* Line tgvectrex.c:2107: function call: mul_short_by_fp2_14_returning_short()
	LDD	G00160+0,PCR	variable cosY, declared at tgvectrex.c:1311
	PSHS	B,A		argument 2 of mul_short_by_fp2_14_returning_short(): int
	LDD	4,U		variable x, declared at tgvectrex.c:2101
	PSHS	B,A		argument 1 of mul_short_by_fp2_14_returning_short(): int
	LBSR	_mul_short_by_fp2_14_returning_short
	LEAS	4,S	
	PSHS	B,A	
* Line tgvectrex.c:2107: function call: mul_short_by_fp2_14_returning_short()
	LDD	G00163+0,PCR	variable sinY, declared at tgvectrex.c:1314
	PSHS	B,A		argument 2 of mul_short_by_fp2_14_returning_short(): int
	LDD	G00192+0,PCR	variable XZ, declared at tgvectrex.c:1364
	PSHS	B,A		argument 1 of mul_short_by_fp2_14_returning_short(): int
	LBSR	_mul_short_by_fp2_14_returning_short
	LEAS	4,S	
	ADDD	,S++	
	STD	G00193+0,PCR
* Line tgvectrex.c:2108: assignment: =
* Line tgvectrex.c:2108: function call: mul_short_by_fp2_14_returning_short()
	LDD	G00164+0,PCR	variable sinZ, declared at tgvectrex.c:1315
	PSHS	B,A		argument 2 of mul_short_by_fp2_14_returning_short(): int
	LDD	G00191+0,PCR	variable XY, declared at tgvectrex.c:1363
	PSHS	B,A		argument 1 of mul_short_by_fp2_14_returning_short(): int
	LBSR	_mul_short_by_fp2_14_returning_short
	LEAS	4,S	
	PSHS	B,A	
* Line tgvectrex.c:2108: function call: mul_short_by_fp2_14_returning_short()
	LDD	G00161+0,PCR	variable cosZ, declared at tgvectrex.c:1312
	PSHS	B,A		argument 2 of mul_short_by_fp2_14_returning_short(): int
	LDD	G00193+0,PCR	variable YX, declared at tgvectrex.c:1365
	PSHS	B,A		argument 1 of mul_short_by_fp2_14_returning_short(): int
	LBSR	_mul_short_by_fp2_14_returning_short
	LEAS	4,S	
	SUBD	,S++	
	STD	G00188+0,PCR
* Line tgvectrex.c:2109: assignment: =
* Line tgvectrex.c:2109: function call: mul_short_by_fp2_14_returning_short()
	LDD	G00161+0,PCR	variable cosZ, declared at tgvectrex.c:1312
	PSHS	B,A		argument 2 of mul_short_by_fp2_14_returning_short(): int
	LDD	G00191+0,PCR	variable XY, declared at tgvectrex.c:1363
	PSHS	B,A		argument 1 of mul_short_by_fp2_14_returning_short(): int
	LBSR	_mul_short_by_fp2_14_returning_short
	LEAS	4,S	
	PSHS	B,A	
* Line tgvectrex.c:2109: function call: mul_short_by_fp2_14_returning_short()
	LDD	G00164+0,PCR	variable sinZ, declared at tgvectrex.c:1315
	PSHS	B,A		argument 2 of mul_short_by_fp2_14_returning_short(): int
	LDD	G00193+0,PCR	variable YX, declared at tgvectrex.c:1365
	PSHS	B,A		argument 1 of mul_short_by_fp2_14_returning_short(): int
	LBSR	_mul_short_by_fp2_14_returning_short
	LEAS	4,S	
	ADDD	,S++	
	STD	G00189+0,PCR
L00076	EQU	*		end of Transform_point()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Update_ship(): defined at tgvectrex.c:2321
_Update_ship	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:2323: function call: Get_ship_pos()
	LDB	5,U		variable id, declared at tgvectrex.c:2321
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Get_ship_pos(): unsigned char
	LBSR	_Get_ship_pos
	LEAS	2,S	
* Line tgvectrex.c:2324: function call: Apply_vel_to_ship_pos()
	LDB	5,U		variable id, declared at tgvectrex.c:2321
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Apply_vel_to_ship_pos(): unsigned char
	LBSR	_Apply_vel_to_ship_pos
	LEAS	2,S	
* Line tgvectrex.c:2326: function call: Change_ship_velocity_by()
* Line tgvectrex.c:2326: function call: div_int_by_int_returning_fp2_14()
	LDD	#$0A		decimal 10 signed
	PSHS	B,A		argument 2 of div_int_by_int_returning_fp2_14(): int
	LDD	#$01		decimal 1 signed
	PSHS	B,A		argument 1 of div_int_by_int_returning_fp2_14(): int
	LBSR	_div_int_by_int_returning_fp2_14
	LEAS	4,S	
	PSHS	B,A		argument 2 of Change_ship_velocity_by(): int
	LDB	5,U		variable id, declared at tgvectrex.c:2321
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Change_ship_velocity_by(): unsigned char
	LBSR	_Change_ship_velocity_by
	LEAS	4,S	
* Line tgvectrex.c:2327: if
	LDD	G00180+0,PCR	variable this_Z
	CMPD	#$64	
	LBLT	L00290	
	LBRA	L00289	
L00290	EQU	*
	LDD	G00153+0,PCR	variable UsingShields
	CMPD	#$01
	BNE	L00289	
* Line tgvectrex.c:2328: function call: startAsyncSound()
	LDD	#$01		decimal 1 signed
	PSHS	B,A		argument 1 of startAsyncSound(): int
	LBSR	_startAsyncSound
	LEAS	2,S	
* Line tgvectrex.c:2332: function call: Set_ship_destinationto()
	LDD	#$0BB8		constant expression: 3000 decimal
	PSHS	B,A		argument 4 of Set_ship_destinationto(): int
* Line tgvectrex.c:2331: function call: pickrandom()
	LDD	#$64		decimal 100 signed
	PSHS	B,A		argument 2 of pickrandom(): int
	LDD	#$FF9C		constant expression: 65436 decimal
	PSHS	B,A		argument 1 of pickrandom(): int
	LBSR	_pickrandom
	LEAS	4,S	
	PSHS	B,A		argument 3 of Set_ship_destinationto(): int
* Line tgvectrex.c:2330: function call: pickrandom()
	LDD	#$64		decimal 100 signed
	PSHS	B,A		argument 2 of pickrandom(): int
	LDD	#$FF9C		constant expression: 65436 decimal
	PSHS	B,A		argument 1 of pickrandom(): int
	LBSR	_pickrandom
	LEAS	4,S	
	PSHS	B,A		argument 2 of Set_ship_destinationto(): int
	LDB	5,U		variable id, declared at tgvectrex.c:2321
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Set_ship_destinationto(): unsigned char
	LBSR	_Set_ship_destinationto
	LEAS	8,S	
* Line tgvectrex.c:2334: function call: Get_ship_vel()
	LDB	5,U		variable id, declared at tgvectrex.c:2321
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Get_ship_vel(): unsigned char
	LBSR	_Get_ship_vel
	LEAS	2,S	
* Line tgvectrex.c:2335: function call: Set_ship_velocityto()
	LDD	G00181+0,PCR	variable this_vel, declared at tgvectrex.c:1347
	COMA
	COMB
	ADDD	#1	
	PSHS	B,A		argument 2 of Set_ship_velocityto(): int
	LDB	5,U		variable id, declared at tgvectrex.c:2321
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Set_ship_velocityto(): unsigned char
	LBSR	_Set_ship_velocityto
	LEAS	4,S	
* Line tgvectrex.c:2336: function call: Apply_vel_to_ship_pos()
	LDB	5,U		variable id, declared at tgvectrex.c:2321
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Apply_vel_to_ship_pos(): unsigned char
	LBSR	_Apply_vel_to_ship_pos
	LEAS	2,S	
* Line tgvectrex.c:2337: function call: Head_ship_towards_destination()
	LDB	5,U		variable id, declared at tgvectrex.c:2321
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Head_ship_towards_destination(): unsigned char
	LBSR	_Head_ship_towards_destination
	LEAS	2,S	
* Line tgvectrex.c:2338: function call: Change_ship_time_by()
	LDD	#$01		decimal 1 signed
	PSHS	B,A		argument 2 of Change_ship_time_by(): int
	LDB	5,U		variable id, declared at tgvectrex.c:2321
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Change_ship_time_by(): unsigned char
	LBSR	_Change_ship_time_by
	LEAS	4,S	
* Line tgvectrex.c:2339: function call: Get_ship_pos()
	LDB	5,U		variable id, declared at tgvectrex.c:2321
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Get_ship_pos(): unsigned char
	LBSR	_Get_ship_pos
	LEAS	2,S	
L00289	EQU	*		else
L00291	EQU	*		end if
* Line tgvectrex.c:2341: if
	LDD	G00180+0,PCR	variable this_Z
	CMPD	#$09C4
	BLE	L00293	
* Line tgvectrex.c:2342: function call: Set_ship_status()
	LDD	#$02		decimal 2 unsigned
	PSHS	B,A		argument 2 of Set_ship_status(): unsigned int
	LDB	5,U		variable id, declared at tgvectrex.c:2321
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Set_ship_status(): unsigned char
	LBSR	_Set_ship_status
	LEAS	4,S	
	LBRA	L00294		jump over else clause
L00293	EQU	*		else
* Line tgvectrex.c:2344: if
	LDD	G00180+0,PCR	variable this_Z
	CMPD	#$32	
	LBLT	L00295	
	LBRA	L00297	
L00297	EQU	*
	LDD	G00178+0,PCR	variable this_X
	CMPD	#$F894	
	LBLT	L00295	
	LBRA	L00300	
L00300	EQU	*
	LDD	G00178+0,PCR	variable this_X
	CMPD	#$076C	
	LBGT	L00295	
	LBRA	L00299	
L00299	EQU	*
	LDD	G00179+0,PCR	variable this_Y
	CMPD	#$F894	
	LBLT	L00295	
	LBRA	L00298	
L00298	EQU	*
	LDD	G00179+0,PCR	variable this_Y
	CMPD	#$076C
	BLE	L00296	
* Line tgvectrex.c:2345: if
	LDD	G00180+0,PCR	variable this_Z
	CMPD	#$32	
	LBLT	L00301	
	LBRA	L00302	
L00301	EQU	*		then
* Line tgvectrex.c:2346: function call: Set_ship_status()
	LDD	#$03		decimal 3 unsigned
	PSHS	B,A		argument 2 of Set_ship_status(): unsigned int
	LDB	5,U		variable id, declared at tgvectrex.c:2321
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Set_ship_status(): unsigned char
	LBSR	_Set_ship_status
	LEAS	4,S	
	LBRA	L00303		jump over else clause
L00302	EQU	*		else
* Line tgvectrex.c:2348: function call: Set_ship_status()
	LDD	#$04		decimal 4 unsigned
	PSHS	B,A		argument 2 of Set_ship_status(): unsigned int
	LDB	5,U		variable id, declared at tgvectrex.c:2321
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Set_ship_status(): unsigned char
	LBSR	_Set_ship_status
	LEAS	4,S	
L00303	EQU	*		end if
* Line tgvectrex.c:2350: assignment: +=
	LDD	G00157+0,PCR	variable ShipsPassedThisWave
	ADDD	#$01		+= operator at tgvectrex.c:2350
	STD	G00157+0,PCR
* Line tgvectrex.c:2351: assignment: +=
	LDD	G00158+0,PCR	variable ShipsPassedTotal
	ADDD	#$01		+= operator at tgvectrex.c:2351
	STD	G00158+0,PCR
	LBRA	L00304		jump over else clause
L00296	EQU	*		else
* Line tgvectrex.c:2353: function call: Get_ship_destination()
	LDB	5,U		variable id, declared at tgvectrex.c:2321
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Get_ship_destination(): unsigned char
	LBSR	_Get_ship_destination
	LEAS	2,S	
* Line tgvectrex.c:2354: if
	LDD	G00178+0,PCR	variable this_X, declared at tgvectrex.c:1343
	ADDD	#0	
	LBEQ	L00308	
	LBRA	L00305	
L00308	EQU	*
	LDD	G00179+0,PCR	variable this_Y, declared at tgvectrex.c:1344
	ADDD	#0	
	LBEQ	L00307	
	LBRA	L00305	
L00307	EQU	*
	LDD	G00180+0,PCR	variable this_Z
	CMPD	#$07D0	
	LBGT	L00306	
	LBRA	L00305	
L00305	EQU	*		then
* Line tgvectrex.c:2356: function call: Get_ship_time()
	LDB	5,U		variable id, declared at tgvectrex.c:2321
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Get_ship_time(): unsigned char
	LBSR	_Get_ship_time
	LEAS	2,S	
* Line tgvectrex.c:2357: if
	LDD	#$27		decimal 39 signed
	PSHS	B,A	
	LDX	G00176+0,PCR	left
	LDD	#$28		right
	LBSR	SDIV16	
	CMPD	,S++
	BNE	L00310	
* Line tgvectrex.c:2358: function call: Get_ship_pos()
	LDB	5,U		variable id, declared at tgvectrex.c:2321
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Get_ship_pos(): unsigned char
	LBSR	_Get_ship_pos
	LEAS	2,S	
* Line tgvectrex.c:2359: if
	LDD	G00180+0,PCR	variable this_Z
	CMPD	#$03E8	
	LBLT	L00311	
	LBRA	L00312	
L00311	EQU	*		then
* Line tgvectrex.c:2360: function call: Set_ship_destinationto()
	CLRA
	CLRB
	PSHS	B,A		argument 4 of Set_ship_destinationto(): int
	CLRA
	CLRB
	PSHS	B,A		argument 3 of Set_ship_destinationto(): int
	CLRA
	CLRB
	PSHS	B,A		argument 2 of Set_ship_destinationto(): int
	LDB	5,U		variable id, declared at tgvectrex.c:2321
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Set_ship_destinationto(): unsigned char
	LBSR	_Set_ship_destinationto
	LEAS	8,S	
	LBRA	L00313		jump over else clause
L00312	EQU	*		else
* Line tgvectrex.c:2366: function call: Set_ship_destinationto()
	LDD	#$FF38		constant expression: 65336 decimal
	PSHS	B,A		argument 4 of Set_ship_destinationto(): int
* Line tgvectrex.c:2365: function call: pickrandom()
	LDX	#$C8		left
	LDD	G00180+0,PCR	right
	LBSR	MUL16	
	PSHS	B,A	
	LDD	#$07D0		decimal 2000 signed
	PULS	X	
	LBSR	SDIV16	
	TFR	X,D		quotient
	PSHS	B,A		argument 2 of pickrandom(): int
	LDX	#$FF38		left
	LDD	G00180+0,PCR	right
	LBSR	MUL16	
	PSHS	B,A	
	LDD	#$07D0		decimal 2000 signed
	PULS	X	
	LBSR	SDIV16	
	TFR	X,D		quotient
	PSHS	B,A		argument 1 of pickrandom(): int
	LBSR	_pickrandom
	LEAS	4,S	
	PSHS	B,A		argument 3 of Set_ship_destinationto(): int
* Line tgvectrex.c:2364: function call: pickrandom()
	LDX	#$012C		left
	LDD	G00180+0,PCR	right
	LBSR	MUL16	
	PSHS	B,A	
	LDD	#$07D0		decimal 2000 signed
	PULS	X	
	LBSR	SDIV16	
	TFR	X,D		quotient
	PSHS	B,A		argument 2 of pickrandom(): int
	LDX	#$FED4		left
	LDD	G00180+0,PCR	right
	LBSR	MUL16	
	PSHS	B,A	
	LDD	#$07D0		decimal 2000 signed
	PULS	X	
	LBSR	SDIV16	
	TFR	X,D		quotient
	PSHS	B,A		argument 1 of pickrandom(): int
	LBSR	_pickrandom
	LEAS	4,S	
	PSHS	B,A		argument 2 of Set_ship_destinationto(): int
	LDB	5,U		variable id, declared at tgvectrex.c:2321
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Set_ship_destinationto(): unsigned char
	LBSR	_Set_ship_destinationto
	LEAS	8,S	
L00313	EQU	*		end if
L00310	EQU	*		else
L00314	EQU	*		end if
L00306	EQU	*		else
L00315	EQU	*		end if
* Line tgvectrex.c:2370: function call: Head_ship_towards_destination()
	LDB	5,U		variable id, declared at tgvectrex.c:2321
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Head_ship_towards_destination(): unsigned char
	LBSR	_Head_ship_towards_destination
	LEAS	2,S	
* Line tgvectrex.c:2371: function call: Change_ship_time_by()
	LDD	#$01		decimal 1 signed
	PSHS	B,A		argument 2 of Change_ship_time_by(): int
	LDB	5,U		variable id, declared at tgvectrex.c:2321
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Change_ship_time_by(): unsigned char
	LBSR	_Change_ship_time_by
	LEAS	4,S	
L00304	EQU	*		end if
L00294	EQU	*		end if
L00095	EQU	*		end of Update_ship()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION Update_ships(): defined at tgvectrex.c:2468
_Update_ships	EQU	*
	PSHS	U	
	LEAU	,S	
	LEAS	-1,S	
* Line tgvectrex.c:2470: init of variable shipid
	CLR	-1,U		variable shipid
* Line tgvectrex.c:2471: for init
* Line tgvectrex.c:2471: assignment: =
	CLRA
	CLRB
	CLRB
	STB	-1,U	
	LBRA	L00317		jump to for condition
L00316	EQU	*
* Line tgvectrex.c:2471: for body
* Line tgvectrex.c:2472: function call: Get_ship_status()
	LDB	-1,U		variable shipid, declared at tgvectrex.c:2470
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Get_ship_status(): unsigned char
	LBSR	_Get_ship_status
	LEAS	2,S	
* Line tgvectrex.c:2473: if
	LDB	G00174+0,PCR	variable this_status
	CMPB	#$02	
	LBLO	L00320	
	LBRA	L00321	
L00320	EQU	*		then
* Line tgvectrex.c:2474: function call: Update_ship()
	LDB	-1,U		variable shipid, declared at tgvectrex.c:2470
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of Update_ship(): unsigned char
	LBSR	_Update_ship
	LEAS	2,S	
L00321	EQU	*		else
L00322	EQU	*		end if
L00318	EQU	*
* Line tgvectrex.c:2471: for increment(s)
	INC	-1,U	
L00317	EQU	*
* Line tgvectrex.c:2471: for condition
	LDB	-1,U		variable shipid
	CMPB	#$03	
	LBLO	L00316	
	LBRA	L00319	
L00319	EQU	*		end for
L00099	EQU	*		end of Update_ships()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION asin_of_fp2_14(): defined at tgvectrex.c:946
_asin_of_fp2_14	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:963: if
	LDD	4,U		variable angle
	CMPD	#$80
	BLE	L00324	
* Line tgvectrex.c:963: return with value
	LEAX	G00124+0,PCR	address of array asintab
	PSHS	X		preserve array address, then eval array index
	LDD	4,U		variable angle, declared at tgvectrex.c:946
	PSHS	B,A	
	LDD	#$0100		decimal 256 signed
	SUBD	,S++	
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	COMA
	COMB
	ADDD	#1	
	LBRA	L00018		return (tgvectrex.c:963)
L00324	EQU	*		else
L00325	EQU	*		end if
* Line tgvectrex.c:964: return with value
	LEAX	G00124+0,PCR	address of array asintab
	LDD	4,U		variable angle
	LSLB
	ROLA
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	LBRA	L00018		return (tgvectrex.c:964)
L00018	EQU	*		end of asin_of_fp2_14()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION ch(): defined at tgvectrex.c:1852
_ch	EQU	*
	PSHS	U	
	LEAU	,S	
	LEAS	-1,S	
* Line tgvectrex.c:1854: if
	LDB	5,U		variable charno, declared at tgvectrex.c:1852
	TSTB
	LBNE	L00326	
	LBRA	L00327	
L00326	EQU	*		then
* Line tgvectrex.c:1858: for init
* Line tgvectrex.c:1858: assignment: =
	LEAX	G00128+0,PCR	address of array font_index
	PSHS	X		preserve array address, then eval array index
	LDB	5,U	
	CLRA
	ADDD	#$FFFF		65535
	CLRA			index expression is of byte type
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDB	,X		get r-value
	STB	-1,U	
	LBRA	L00329		jump to for condition
L00328	EQU	*
* Line tgvectrex.c:1858: for body
* Line tgvectrex.c:1859: function call: segment()
	LDD	6,U		variable textscale, declared at tgvectrex.c:1852
	PSHS	B,A		argument 2 of segment(): int
	LEAX	G00126+0,PCR	address of array font_points
	LDB	-1,U		variable i
	CLRA			index expression is of byte type
	LEAX	D,X		add byte offset
	LDB	,X		get r-value
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of segment(): unsigned char
	LBSR	_segment
	LEAS	4,S	
L00330	EQU	*
* Line tgvectrex.c:1858: for increment(s)
	INC	-1,U	
L00329	EQU	*
* Line tgvectrex.c:1858: for condition
	LEAX	G00127+0,PCR	address of array font_length
	PSHS	X		preserve array address, then eval array index
	LDB	5,U	
	CLRA
	ADDD	#$FFFF		65535
	CLRA			index expression is of byte type
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDB	,X		get r-value
	CLRA			promotion of binary operand
	PSHS	B,A	
	LEAX	G00128+0,PCR	address of array font_index
	PSHS	X		preserve array address, then eval array index
	LDB	5,U	
	CLRA
	ADDD	#$FFFF		65535
	CLRA			index expression is of byte type
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDB	,X		get r-value
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			promotion of binary operand
	PSHS	B,A	
	LDB	-1,U		variable i, declared at tgvectrex.c:1855
	CLRA			promotion of binary operand
	LEAS	1,S		disregard MSB
	CMPB	,S+		compare with LSB
	LBLO	L00328	
	LBRA	L00331	
L00331	EQU	*		end for
L00327	EQU	*		else
L00332	EQU	*		end if
* Line tgvectrex.c:1863: assignment: +=
	LDX	#$18		left
	LDD	6,U		right
	LBSR	MUL16	
	PSHS	B,A	
	LDD	#$80		decimal 128 signed
	PULS	X	
	LBSR	SDIV16	
	TFR	X,D		quotient
	PSHS	B,A	
	LDD	G00166+0,PCR
	ADDD	,S++	
	STD	G00166+0,PCR
L00051	EQU	*		end of ch()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION ch128(): defined at tgvectrex.c:1877
_ch128	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:1879: function call: ch()
	LDD	#$80		decimal 128 signed
	PSHS	B,A		argument 2 of ch(): int
	LDB	5,U		variable charno, declared at tgvectrex.c:1877
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of ch(): unsigned char
	LBSR	_ch	
	LEAS	4,S	
L00054	EQU	*		end of ch128()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION ch128str(): defined at tgvectrex.c:1882
_ch128str	EQU	*
	PSHS	U	
	LEAU	,S	
	LEAS	-1,S	
* Line tgvectrex.c:1884: for init
* Line tgvectrex.c:1884: assignment: =
	LDD	#$01		decimal 1 signed
	LDB	#$01	
	STB	-1,U	
	LBRA	L00334		jump to for condition
L00333	EQU	*
* Line tgvectrex.c:1884: for body
* Line tgvectrex.c:1884: function call: ch128()
	LDX	4,U		pointer text
	LDB	-1,U		variable i
	CLRA			index expression is of byte type
	LEAX	D,X		add byte offset
	LDB	,X		get r-value
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of ch128(): unsigned char
	LBSR	_ch128	
	LEAS	2,S	
L00335	EQU	*
* Line tgvectrex.c:1884: for increment(s)
	INC	-1,U	
L00334	EQU	*
* Line tgvectrex.c:1884: for condition
	LDX	4,U		get pointer value
	LDB	,X	
	CLRA			promotion of binary operand
	PSHS	B,A	
	LDB	-1,U		variable i, declared at tgvectrex.c:1883
	CLRA			promotion of binary operand
	LEAS	1,S		disregard MSB
	CMPB	,S+		compare with LSB
	LBLS	L00333	
	LBRA	L00336	
L00336	EQU	*		end for
L00055	EQU	*		end of ch128str()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION ch96(): defined at tgvectrex.c:1867
_ch96	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:1869: function call: ch()
	LDD	#$60		decimal 96 signed
	PSHS	B,A		argument 2 of ch(): int
	LDB	5,U		variable charno, declared at tgvectrex.c:1867
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of ch(): unsigned char
	LBSR	_ch	
	LEAS	4,S	
L00052	EQU	*		end of ch96()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION ch96str(): defined at tgvectrex.c:1872
_ch96str	EQU	*
	PSHS	U	
	LEAU	,S	
	LEAS	-1,S	
* Line tgvectrex.c:1874: for init
* Line tgvectrex.c:1874: assignment: =
	LDD	#$01		decimal 1 signed
	LDB	#$01	
	STB	-1,U	
	LBRA	L00338		jump to for condition
L00337	EQU	*
* Line tgvectrex.c:1874: for body
* Line tgvectrex.c:1874: function call: ch96()
	LDX	4,U		pointer text
	LDB	-1,U		variable i
	CLRA			index expression is of byte type
	LEAX	D,X		add byte offset
	LDB	,X		get r-value
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of ch96(): unsigned char
	LBSR	_ch96	
	LEAS	2,S	
L00339	EQU	*
* Line tgvectrex.c:1874: for increment(s)
	INC	-1,U	
L00338	EQU	*
* Line tgvectrex.c:1874: for condition
	LDX	4,U		get pointer value
	LDB	,X	
	CLRA			promotion of binary operand
	PSHS	B,A	
	LDB	-1,U		variable i, declared at tgvectrex.c:1873
	CLRA			promotion of binary operand
	LEAS	1,S		disregard MSB
	CMPB	,S+		compare with LSB
	LBLS	L00337	
	LBRA	L00340	
L00340	EQU	*		end for
L00053	EQU	*		end of ch96str()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION clipoff(): defined at tgvectrex.c:1461
_clipoff	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:1465: return with value
	LDD	4,U		variable x, declared at tgvectrex.c:1461
	PSHS	B,A	
	LDD	#$FFB0		constant expression: 65456 decimal
	CMPD	,S++	
	LBLE	L00344		if true
	CLRB
	BRA	L00345		false
L00344	EQU	*
	LDB	#1	
L00345	EQU	*
	TSTB			&&
	LBEQ	L00343		&& at tgvectrex.c:1465 yields false, B == 0
	LDD	4,U		variable x
	CMPD	#$50	
	LBLT	L00346		if true
	CLRB
	BRA	L00347		false
L00346	EQU	*
	LDB	#1	
L00347	EQU	*
	TSTB			&&
	LBEQ	L00343		&& at tgvectrex.c:1465 yields false, B == 0
	LDB	#1		&& yields true
L00343	EQU	*
	TSTB			&&
	LBEQ	L00342		&& at tgvectrex.c:1465 yields false, B == 0
	LDD	6,U		variable y, declared at tgvectrex.c:1461
	PSHS	B,A	
	LDD	#$FFC0		constant expression: 65472 decimal
	CMPD	,S++	
	LBLE	L00348		if true
	CLRB
	BRA	L00349		false
L00348	EQU	*
	LDB	#1	
L00349	EQU	*
	TSTB			&&
	LBEQ	L00342		&& at tgvectrex.c:1465 yields false, B == 0
	LDB	#1		&& yields true
L00342	EQU	*
	TSTB			&&
	LBEQ	L00341		&& at tgvectrex.c:1465 yields false, B == 0
	LDD	6,U		variable y
	CMPD	#$40	
	LBLT	L00350		if true
	CLRB
	BRA	L00351		false
L00350	EQU	*
	LDB	#1	
L00351	EQU	*
	TSTB			&&
	LBEQ	L00341		&& at tgvectrex.c:1465 yields false, B == 0
	LDB	#1		&& yields true
L00341	EQU	*
	LBRA	L00033		return (tgvectrex.c:1465)
L00033	EQU	*		end of clipoff()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION debug_ship(): defined at tgvectrex.c:1746
_debug_ship	EQU	*
	PSHS	U	
	LEAU	,S	
	LEAS	-30,S	
* Line tgvectrex.c:1749: init of variable ship_next
	LDA	5,U	
	LDB	#$0E	
	MUL			result of type byte in B
	CLRA
	STD	-2,U		variable ship_next
* Line tgvectrex.c:1752: assignment: =
	LEAX	G00196+0,PCR	address of array ships
	PSHS	X		preserve array address, then eval array index
	LEAX	-2,U		variable ship_next, declared at tgvectrex.c:1749
	LDD	,X	
	ADDD	#1	
	STD	,X	
	SUBD	#1		post increment yields initial value
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STD	-30,U	
* Line tgvectrex.c:1753: assignment: =
	LEAX	G00196+0,PCR	address of array ships
	PSHS	X		preserve array address, then eval array index
	LEAX	-2,U		variable ship_next, declared at tgvectrex.c:1749
	LDD	,X	
	ADDD	#1	
	STD	,X	
	SUBD	#1		post increment yields initial value
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STD	-28,U	
* Line tgvectrex.c:1754: assignment: =
	LEAX	G00196+0,PCR	address of array ships
	PSHS	X		preserve array address, then eval array index
	LEAX	-2,U		variable ship_next, declared at tgvectrex.c:1749
	LDD	,X	
	ADDD	#1	
	STD	,X	
	SUBD	#1		post increment yields initial value
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STD	-26,U	
* Line tgvectrex.c:1755: assignment: =
	LEAX	G00196+0,PCR	address of array ships
	PSHS	X		preserve array address, then eval array index
	LEAX	-2,U		variable ship_next, declared at tgvectrex.c:1749
	LDD	,X	
	ADDD	#1	
	STD	,X	
	SUBD	#1		post increment yields initial value
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STD	-24,U	
* Line tgvectrex.c:1756: assignment: =
	LEAX	G00196+0,PCR	address of array ships
	PSHS	X		preserve array address, then eval array index
	LEAX	-2,U		variable ship_next, declared at tgvectrex.c:1749
	LDD	,X	
	ADDD	#1	
	STD	,X	
	SUBD	#1		post increment yields initial value
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STD	-22,U	
* Line tgvectrex.c:1757: assignment: =
	LEAX	G00196+0,PCR	address of array ships
	PSHS	X		preserve array address, then eval array index
	LEAX	-2,U		variable ship_next, declared at tgvectrex.c:1749
	LDD	,X	
	ADDD	#1	
	STD	,X	
	SUBD	#1		post increment yields initial value
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STD	-20,U	
* Line tgvectrex.c:1758: assignment: =
	LEAX	G00196+0,PCR	address of array ships
	PSHS	X		preserve array address, then eval array index
	LEAX	-2,U		variable ship_next, declared at tgvectrex.c:1749
	LDD	,X	
	ADDD	#1	
	STD	,X	
	SUBD	#1		post increment yields initial value
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STD	-18,U	
* Line tgvectrex.c:1759: assignment: =
	LEAX	G00196+0,PCR	address of array ships
	PSHS	X		preserve array address, then eval array index
	LEAX	-2,U		variable ship_next, declared at tgvectrex.c:1749
	LDD	,X	
	ADDD	#1	
	STD	,X	
	SUBD	#1		post increment yields initial value
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STD	-16,U	
* Line tgvectrex.c:1760: assignment: =
	LEAX	G00196+0,PCR	address of array ships
	PSHS	X		preserve array address, then eval array index
	LEAX	-2,U		variable ship_next, declared at tgvectrex.c:1749
	LDD	,X	
	ADDD	#1	
	STD	,X	
	SUBD	#1		post increment yields initial value
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STD	-14,U	
* Line tgvectrex.c:1761: assignment: =
	LEAX	G00196+0,PCR	address of array ships
	PSHS	X		preserve array address, then eval array index
	LEAX	-2,U		variable ship_next, declared at tgvectrex.c:1749
	LDD	,X	
	ADDD	#1	
	STD	,X	
	SUBD	#1		post increment yields initial value
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STD	-12,U	
* Line tgvectrex.c:1762: assignment: =
	LEAX	G00196+0,PCR	address of array ships
	PSHS	X		preserve array address, then eval array index
	LEAX	-2,U		variable ship_next, declared at tgvectrex.c:1749
	LDD	,X	
	ADDD	#1	
	STD	,X	
	SUBD	#1		post increment yields initial value
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STD	-10,U	
* Line tgvectrex.c:1763: assignment: =
	LEAX	G00196+0,PCR	address of array ships
	PSHS	X		preserve array address, then eval array index
	LEAX	-2,U		variable ship_next, declared at tgvectrex.c:1749
	LDD	,X	
	ADDD	#1	
	STD	,X	
	SUBD	#1		post increment yields initial value
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STD	-8,U	
* Line tgvectrex.c:1764: assignment: =
	LEAX	G00196+0,PCR	address of array ships
	PSHS	X		preserve array address, then eval array index
	LEAX	-2,U		variable ship_next, declared at tgvectrex.c:1749
	LDD	,X	
	ADDD	#1	
	STD	,X	
	SUBD	#1		post increment yields initial value
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STD	-6,U	
* Line tgvectrex.c:1765: assignment: =
	LEAX	G00196+0,PCR	address of array ships
	PSHS	X		preserve array address, then eval array index
	LEAX	-2,U		variable ship_next, declared at tgvectrex.c:1749
	LDD	,X	
	ADDD	#1	
	STD	,X	
	SUBD	#1		post increment yields initial value
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STD	-4,U	
L00046	EQU	*		end of debug_ship()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION div_int_by_int_returning_fp2_14(): defined at tgvectrex.c:1399
_div_int_by_int_returning_fp2_14	EQU	*
	PSHS	U	
	LEAU	,S--	
* Line tgvectrex.c:1402: init of variable sign
	LDD	#$01		1
	STD	-2,U		variable sign
* Line tgvectrex.c:1403: if
	LDD	4,U		variable num
	ADDD	#0	
	LBLT	L00352	
	LBRA	L00353	
L00352	EQU	*		then
* Line tgvectrex.c:1403: assignment: =
	LDD	4,U		variable num, declared at tgvectrex.c:1399
	COMA
	COMB
	ADDD	#1	
	STD	4,U	
* Line tgvectrex.c:1403: assignment: =
	LDD	-2,U		variable sign, declared at tgvectrex.c:1402
	COMA
	COMB
	ADDD	#1	
	STD	-2,U	
L00353	EQU	*		else
L00354	EQU	*		end if
* Line tgvectrex.c:1404: if
	LDD	6,U		variable den
	ADDD	#0	
	LBLT	L00355	
	LBRA	L00356	
L00355	EQU	*		then
* Line tgvectrex.c:1404: assignment: =
	LDD	6,U		variable den, declared at tgvectrex.c:1399
	COMA
	COMB
	ADDD	#1	
	STD	6,U	
* Line tgvectrex.c:1404: assignment: =
	LDD	-2,U		variable sign, declared at tgvectrex.c:1402
	COMA
	COMB
	ADDD	#1	
	STD	-2,U	
L00356	EQU	*		else
L00357	EQU	*		end if
* Line tgvectrex.c:1405: return with value
	LDD	-2,U		variable sign, declared at tgvectrex.c:1402
	PSHS	B,A	
* Line tgvectrex.c:1405: function call: muldiv()
	LDD	6,U		variable den, declared at tgvectrex.c:1399
	PSHS	B,A		argument 3 of muldiv(): int
	LDD	#$4000		constant expression: 16384 decimal
	PSHS	B,A		argument 2 of muldiv(): int
	LDD	4,U		variable num, declared at tgvectrex.c:1399
	PSHS	B,A		argument 1 of muldiv(): int
	LBSR	_muldiv	
	LEAS	6,S	
	PULS	X	
	LBSR	MUL16	
	LBRA	L00030		return (tgvectrex.c:1405)
L00030	EQU	*		end of div_int_by_int_returning_fp2_14()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION draw_crosshair(): defined at tgvectrex.c:1677
_draw_crosshair	EQU	*
	PSHS	U	
	LEAU	,S	
	LEAS	-1,S	
* Line tgvectrex.c:1680: for init
* Line tgvectrex.c:1680: assignment: =
	CLRA
	CLRB
	CLRB
	STB	-1,U	
	LBRA	L00359		jump to for condition
L00358	EQU	*
* Line tgvectrex.c:1680: for body
* Line tgvectrex.c:1683: function call: Display_Vectrex_vector()
	LDD	#$80		decimal 128 signed
	PSHS	B,A	
	LEAX	G00129+0,PCR	address of array crosshair
	PSHS	X		preserve array address, then eval array index
	LDD	#$03		decimal 3 signed
	PSHS	B,A	
	LDB	-1,U		to be multiplied by 4
	LSLB
	LSLB
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDB	,X		get r-value
	CLRA			promotion of binary operand
	PSHS	B,A	
	LDD	6,U		variable y, declared at tgvectrex.c:1677
	ADDD	,S++	
	SUBD	,S++	
	PSHS	B,A		argument 4 of Display_Vectrex_vector(): int
	LDD	#$80		decimal 128 signed
	PSHS	B,A	
	LEAX	G00129+0,PCR	address of array crosshair
	PSHS	X		preserve array address, then eval array index
	LDD	#$02		decimal 2 signed
	PSHS	B,A	
	LDB	-1,U		to be multiplied by 4
	LSLB
	LSLB
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDB	,X		get r-value
	CLRA			promotion of binary operand
	PSHS	B,A	
	LDD	4,U		variable x, declared at tgvectrex.c:1677
	ADDD	,S++	
	SUBD	,S++	
	PSHS	B,A		argument 3 of Display_Vectrex_vector(): int
	LDD	#$80		decimal 128 signed
	PSHS	B,A	
	LEAX	G00129+0,PCR	address of array crosshair
	PSHS	X		preserve array address, then eval array index
	LDD	#$01		decimal 1 signed
	PSHS	B,A	
	LDB	-1,U		to be multiplied by 4
	LSLB
	LSLB
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDB	,X		get r-value
	CLRA			promotion of binary operand
	PSHS	B,A	
	LDD	6,U		variable y, declared at tgvectrex.c:1677
	ADDD	,S++	
	SUBD	,S++	
	PSHS	B,A		argument 2 of Display_Vectrex_vector(): int
	LDD	#$80		decimal 128 signed
	PSHS	B,A	
	LEAX	G00129+0,PCR	address of array crosshair
	PSHS	X		preserve array address, then eval array index
	LDB	-1,U		to be multiplied by 4
	LSLB
	LSLB
	CLRA			index expression is of byte type
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDB	,X		get r-value
	CLRA			promotion of binary operand
	PSHS	B,A	
	LDD	4,U		variable x, declared at tgvectrex.c:1677
	ADDD	,S++	
	SUBD	,S++	
	PSHS	B,A		argument 1 of Display_Vectrex_vector(): int
	LBSR	_Display_Vectrex_vector
	LEAS	8,S	
L00360	EQU	*
* Line tgvectrex.c:1680: for increment(s)
	INC	-1,U	
L00359	EQU	*
* Line tgvectrex.c:1680: for condition
	LDB	-1,U		variable i
	CMPB	#$0A	
	LBLO	L00358	
	LBRA	L00361	
L00361	EQU	*		end for
L00042	EQU	*		end of draw_crosshair()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION draw_shields(): defined at tgvectrex.c:1658
_draw_shields	EQU	*
	PSHS	U	
	LEAU	,S	
	LEAS	-1,S	
* Line tgvectrex.c:1662: if
	CLRA
	CLRB
	PSHS	B,A	
* Line tgvectrex.c:1662: function call: pickrandom()
	LDD	#$03		decimal 3 signed
	PSHS	B,A		argument 2 of pickrandom(): int
	CLRA
	CLRB
	PSHS	B,A		argument 1 of pickrandom(): int
	LBSR	_pickrandom
	LEAS	4,S	
	CMPD	,S++
	BLE	L00363	
* Line tgvectrex.c:1664: function call: setintensity()
* Line tgvectrex.c:1664: function call: pickrandom()
	LDD	#$7F		decimal 127 signed
	PSHS	B,A		argument 2 of pickrandom(): int
	LDD	#$50		decimal 80 signed
	PSHS	B,A		argument 1 of pickrandom(): int
	LBSR	_pickrandom
	LEAS	4,S	
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of setintensity(): unsigned char
	LBSR	_setintensity
	LEAS	2,S	
* Line tgvectrex.c:1665: for init
* Line tgvectrex.c:1665: assignment: =
	CLRA
	CLRB
	CLRB
	STB	-1,U	
	LBRA	L00365		jump to for condition
L00364	EQU	*
* Line tgvectrex.c:1665: for body
* Line tgvectrex.c:1671: function call: Display_Vectrex_vector()
	LEAX	G00130+0,PCR	address of array shieldvec
	PSHS	X		preserve array address, then eval array index
	LDD	#$03		decimal 3 signed
	PSHS	B,A	
	LDB	-1,U		to be multiplied by 2
	LSLB
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDB	,X		get r-value
	CLRA			promotion of binary operand
	PSHS	B,A	
	LDD	G00114+0,PCR	variable ScreenHeight, declared at tgvectrex.c:143
	PULS	X	
	LBSR	MUL16	
	LSRA
	RORB
	LSRA
	RORB
	LSRA
	RORB
	PSHS	B,A		argument 4 of Display_Vectrex_vector(): unsigned int
	LEAX	G00130+0,PCR	address of array shieldvec
	PSHS	X		preserve array address, then eval array index
	LDD	#$02		decimal 2 signed
	PSHS	B,A	
	LDB	-1,U		to be multiplied by 2
	LSLB
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDB	,X		get r-value
	CLRA			promotion of binary operand
	PSHS	B,A	
	LDD	G00113+0,PCR	variable ScreenWidth, declared at tgvectrex.c:143
	PULS	X	
	LBSR	MUL16	
	LSRA
	RORB
	LSRA
	RORB
	LSRA
	RORB
	PSHS	B,A		argument 3 of Display_Vectrex_vector(): unsigned int
	LEAX	G00130+0,PCR	address of array shieldvec
	PSHS	X		preserve array address, then eval array index
	LDD	#$01		decimal 1 signed
	PSHS	B,A	
	LDB	-1,U		to be multiplied by 2
	LSLB
	CLRA			promotion of binary operand
	LEAS	1,S	
	ADDB	,S+	
	CLRA			index expression is of byte type
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDB	,X		get r-value
	CLRA			promotion of binary operand
	PSHS	B,A	
	LDD	G00114+0,PCR	variable ScreenHeight, declared at tgvectrex.c:143
	PULS	X	
	LBSR	MUL16	
	LSRA
	RORB
	LSRA
	RORB
	LSRA
	RORB
	PSHS	B,A		argument 2 of Display_Vectrex_vector(): unsigned int
	LEAX	G00130+0,PCR	address of array shieldvec
	PSHS	X		preserve array address, then eval array index
	LDB	-1,U		to be multiplied by 2
	LSLB
	CLRA			index expression is of byte type
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDB	,X		get r-value
	CLRA			promotion of binary operand
	PSHS	B,A	
	LDD	G00113+0,PCR	variable ScreenWidth, declared at tgvectrex.c:143
	PULS	X	
	LBSR	MUL16	
	LSRA
	RORB
	LSRA
	RORB
	LSRA
	RORB
	PSHS	B,A		argument 1 of Display_Vectrex_vector(): unsigned int
	LBSR	_Display_Vectrex_vector
	LEAS	8,S	
L00366	EQU	*
* Line tgvectrex.c:1665: for increment(s)
	INC	-1,U	
L00365	EQU	*
* Line tgvectrex.c:1665: for condition
	LDB	-1,U		variable i
	CMPB	#$0C	
	LBLO	L00364	
	LBRA	L00367	
L00367	EQU	*		end for
* Line tgvectrex.c:1673: function call: setintensity()
	LDD	#$6E		decimal 110 signed
	PSHS	B,A		argument 1 of setintensity(): int
	LBSR	_setintensity
	LEAS	2,S	
L00363	EQU	*		else
L00368	EQU	*		end if
L00041	EQU	*		end of draw_shields()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION draw_text_line(): defined at tgvectrex.c:1824
_draw_text_line	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:1826: function call: Display_Vectrex_vector()
	LDX	G00114+0,PCR	left
	LDD	#$02		right
	LBSR	SDIV16	
	TFR	X,D		quotient
	PSHS	B,A	
	LDD	G00167+0,PCR	variable texty, declared at tgvectrex.c:1323
	PSHS	B,A	
	LDD	10,U		variable toy, declared at tgvectrex.c:1824
	ADDD	,S++	
	ADDD	,S++	
	PSHS	B,A		argument 4 of Display_Vectrex_vector(): int
	LDX	G00113+0,PCR	left
	LDD	#$02		right
	LBSR	SDIV16	
	TFR	X,D		quotient
	PSHS	B,A	
	LDD	G00166+0,PCR	variable textx, declared at tgvectrex.c:1322
	PSHS	B,A	
	LDD	8,U		variable tox, declared at tgvectrex.c:1824
	ADDD	,S++	
	ADDD	,S++	
	PSHS	B,A		argument 3 of Display_Vectrex_vector(): int
	LDX	G00114+0,PCR	left
	LDD	#$02		right
	LBSR	SDIV16	
	TFR	X,D		quotient
	PSHS	B,A	
	LDD	G00167+0,PCR	variable texty, declared at tgvectrex.c:1323
	PSHS	B,A	
	LDD	6,U		variable fromy, declared at tgvectrex.c:1824
	ADDD	,S++	
	ADDD	,S++	
	PSHS	B,A		argument 2 of Display_Vectrex_vector(): int
	LDX	G00113+0,PCR	left
	LDD	#$02		right
	LBSR	SDIV16	
	TFR	X,D		quotient
	PSHS	B,A	
	LDD	G00166+0,PCR	variable textx, declared at tgvectrex.c:1322
	PSHS	B,A	
	LDD	4,U		variable fromx, declared at tgvectrex.c:1824
	ADDD	,S++	
	ADDD	,S++	
	PSHS	B,A		argument 1 of Display_Vectrex_vector(): int
	LBSR	_Display_Vectrex_vector
	LEAS	8,S	
L00049	EQU	*		end of draw_text_line()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION draw_tg_intro_with_rolling_rotation(): defined at tgvectrex.c:1417
_draw_tg_intro_with_rolling_rotation	EQU	*
	PSHS	U	
	LEAU	,S	
	LEAS	-10,S	
* Line tgvectrex.c:1419: if
	LDD	4,U		variable from_x
	CMPD	8,U		variable to_x
	LBNE	L00369	
	LBRA	L00371	
L00371	EQU	*
	LDD	6,U		variable from_y
	CMPD	10,U		variable to_y
	LBNE	L00369	
	LBRA	L00370	
L00369	EQU	*		then
* Line tgvectrex.c:1424: assignment: =
	LDD	4,U		variable from_x, declared at tgvectrex.c:1417
	LDD	4,U	
	STD	G00170+0,PCR
* Line tgvectrex.c:1424: assignment: =
	LDD	6,U		variable from_y, declared at tgvectrex.c:1417
	LDD	6,U	
	STD	G00171+0,PCR
* Line tgvectrex.c:1424: assignment: =
	CLRA
	CLRB
	LDD	#$00	
	STD	G00172+0,PCR
* Line tgvectrex.c:1426: assignment: =
	LDD	8,U		variable to_x, declared at tgvectrex.c:1417
	LDD	8,U	
	STD	-10,U	
* Line tgvectrex.c:1426: assignment: =
	LDD	10,U		variable to_y, declared at tgvectrex.c:1417
	LDD	10,U	
	STD	-8,U	
* Line tgvectrex.c:1426: assignment: =
	CLRA
	CLRB
	LDD	#$00	
	STD	-6,U	
* Line tgvectrex.c:1427: assignment: +=
* Line tgvectrex.c:1427: function call: mul_short_by_fp2_14_returning_short()
* Line tgvectrex.c:1427: function call: fp2_14_sin()
	LDB	13,U		variable rot, declared at tgvectrex.c:1417
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of fp2_14_sin(): unsigned char
	LBSR	_fp2_14_sin
	LEAS	2,S	
	PSHS	B,A		argument 2 of mul_short_by_fp2_14_returning_short(): int
	LDD	-8,U		variable PackY, declared at tgvectrex.c:1420
	PSHS	B,A		argument 1 of mul_short_by_fp2_14_returning_short(): int
	LBSR	_mul_short_by_fp2_14_returning_short
	LEAS	4,S	
	PSHS	B,A	
	LDD	-6,U	
	ADDD	,S++	
	STD	-6,U	
* Line tgvectrex.c:1428: assignment: =
* Line tgvectrex.c:1428: function call: mul_short_by_fp2_14_returning_short()
* Line tgvectrex.c:1428: function call: fp2_14_cos()
	LDB	13,U		variable rot, declared at tgvectrex.c:1417
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of fp2_14_cos(): unsigned char
	LBSR	_fp2_14_cos
	LEAS	2,S	
	PSHS	B,A		argument 2 of mul_short_by_fp2_14_returning_short(): int
	LDD	-8,U		variable PackY, declared at tgvectrex.c:1420
	PSHS	B,A		argument 1 of mul_short_by_fp2_14_returning_short(): int
	LBSR	_mul_short_by_fp2_14_returning_short
	LEAS	4,S	
	STD	-8,U	
* Line tgvectrex.c:1430: assignment: +=
	LDD	-6,U		variable PackZ
	ADDD	G00137+0,PCR	variable intro_z
	STD	-6,U		variable PackZ
* Line tgvectrex.c:1432: assignment: =
	LDX	#$0400		left
	LDD	-10,U		right
	LBSR	MUL16	
	PSHS	B,A	
	LDD	-6,U		variable PackZ, declared at tgvectrex.c:1420
	PSHS	B,A	
	LDD	#$0400		decimal 1024 signed
	ADDD	,S++	
	PULS	X	
	LBSR	SDIV16	
	TFR	X,D		quotient
	STD	-4,U	
* Line tgvectrex.c:1433: assignment: =
	LDX	#$0400		left
	LDD	-8,U		right
	LBSR	MUL16	
	PSHS	B,A	
	LDD	-6,U		variable PackZ, declared at tgvectrex.c:1420
	PSHS	B,A	
	LDD	#$0400		decimal 1024 signed
	ADDD	,S++	
	PULS	X	
	LBSR	SDIV16	
	TFR	X,D		quotient
	STD	-2,U	
* Line tgvectrex.c:1434: function call: gotoxy()
	LDD	-2,U		variable screeny, declared at tgvectrex.c:1422
	PSHS	B,A	
	LDD	G00116+0,PCR	variable intro_y, declared at tgvectrex.c:145
	ADDD	,S++	
	PSHS	B,A		argument 2 of gotoxy(): int
	LDD	-4,U		variable screenx, declared at tgvectrex.c:1421
	PSHS	B,A	
	LDD	G00115+0,PCR	variable intro_x, declared at tgvectrex.c:144
	ADDD	,S++	
	PSHS	B,A		argument 1 of gotoxy(): int
	LBSR	_gotoxy	
	LEAS	4,S	
* Line tgvectrex.c:1436: assignment: +=
* Line tgvectrex.c:1436: function call: mul_short_by_fp2_14_returning_short()
* Line tgvectrex.c:1436: function call: fp2_14_sin()
	LDB	13,U		variable rot, declared at tgvectrex.c:1417
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of fp2_14_sin(): unsigned char
	LBSR	_fp2_14_sin
	LEAS	2,S	
	PSHS	B,A		argument 2 of mul_short_by_fp2_14_returning_short(): int
	LDD	G00171+0,PCR	variable tgy, declared at tgvectrex.c:1328
	PSHS	B,A		argument 1 of mul_short_by_fp2_14_returning_short(): int
	LBSR	_mul_short_by_fp2_14_returning_short
	LEAS	4,S	
	PSHS	B,A	
	LDD	G00172+0,PCR
	ADDD	,S++	
	STD	G00172+0,PCR
* Line tgvectrex.c:1437: assignment: =
* Line tgvectrex.c:1437: function call: mul_short_by_fp2_14_returning_short()
* Line tgvectrex.c:1437: function call: fp2_14_cos()
	LDB	13,U		variable rot, declared at tgvectrex.c:1417
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of fp2_14_cos(): unsigned char
	LBSR	_fp2_14_cos
	LEAS	2,S	
	PSHS	B,A		argument 2 of mul_short_by_fp2_14_returning_short(): int
	LDD	G00171+0,PCR	variable tgy, declared at tgvectrex.c:1328
	PSHS	B,A		argument 1 of mul_short_by_fp2_14_returning_short(): int
	LBSR	_mul_short_by_fp2_14_returning_short
	LEAS	4,S	
	STD	G00171+0,PCR
* Line tgvectrex.c:1439: assignment: +=
	LDD	G00172+0,PCR	variable tgz
	ADDD	G00137+0,PCR	variable intro_z
	STD	G00172+0,PCR	variable tgz
* Line tgvectrex.c:1441: assignment: =
	LDX	#$0400		left
	LDD	G00170+0,PCR	right
	LBSR	MUL16	
	PSHS	B,A	
	LDD	G00172+0,PCR	variable tgz, declared at tgvectrex.c:1329
	PSHS	B,A	
	LDD	#$0400		decimal 1024 signed
	ADDD	,S++	
	PULS	X	
	LBSR	SDIV16	
	TFR	X,D		quotient
	STD	-4,U	
* Line tgvectrex.c:1442: assignment: =
	LDX	#$0400		left
	LDD	G00171+0,PCR	right
	LBSR	MUL16	
	PSHS	B,A	
	LDD	G00172+0,PCR	variable tgz, declared at tgvectrex.c:1329
	PSHS	B,A	
	LDD	#$0400		decimal 1024 signed
	ADDD	,S++	
	PULS	X	
	LBSR	SDIV16	
	TFR	X,D		quotient
	STD	-2,U	
* Line tgvectrex.c:1445: function call: putPenDown()
	LBSR	_putPenDown
* Line tgvectrex.c:1445: function call: gotoxy()
	LDD	-2,U		variable screeny, declared at tgvectrex.c:1422
	PSHS	B,A	
	LDD	G00116+0,PCR	variable intro_y, declared at tgvectrex.c:145
	ADDD	,S++	
	PSHS	B,A		argument 2 of gotoxy(): int
	LDD	-4,U		variable screenx, declared at tgvectrex.c:1421
	PSHS	B,A	
	LDD	G00115+0,PCR	variable intro_x, declared at tgvectrex.c:144
	ADDD	,S++	
	PSHS	B,A		argument 1 of gotoxy(): int
	LBSR	_gotoxy	
	LEAS	4,S	
* Line tgvectrex.c:1445: function call: putPenUp()
	LBSR	_putPenUp
L00370	EQU	*		else
L00372	EQU	*		end if
L00031	EQU	*		end of draw_tg_intro_with_rolling_rotation()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION drawtgintro(): defined at tgvectrex.c:1687
_drawtgintro	EQU	*
	PSHS	U	
	LEAU	,S	
	LEAS	-10,S	
* Line tgvectrex.c:1690: if
	LDD	G00165+0,PCR	variable stopintroflag
	CMPD	#$02
	BNE	L00374	
	LBRA	L00043		return (tgvectrex.c:1690)
L00374	EQU	*		else
L00375	EQU	*		end if
* Line tgvectrex.c:1692: if
	CLRA
	CLRB
	PSHS	B,A	
* Line tgvectrex.c:1692: function call: fp2_14_cos()
	LDB	G00138+0,PCR	variable intro_rot, declared at tgvectrex.c:1270
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of fp2_14_cos(): unsigned char
	LBSR	_fp2_14_cos
	LEAS	2,S	
	CMPD	,S++
	BLE	L00377	
* Line tgvectrex.c:1694: assignment: =
	LDD	#$27		constant expression: 39 decimal
	LDB	#$27	
	STB	-1,U	
	LBRA	L00378		jump over else clause
L00377	EQU	*		else
* Line tgvectrex.c:1696: assignment: =
	LDD	#$08		decimal 8 signed
	LDB	#$08	
	STB	-1,U	
L00378	EQU	*		end if
* Line tgvectrex.c:1700: assignment: =
	CLRA
	CLRB
	LDD	#$00	
	STD	G00169+0,PCR
* Line tgvectrex.c:1701: for init
* Line tgvectrex.c:1701: assignment: =
	CLRA
	CLRB
	CLRB
	STB	-10,U	
	LBRA	L00380		jump to for condition
L00379	EQU	*
* Line tgvectrex.c:1701: for body
* Line tgvectrex.c:1702: assignment: =
	LDD	#$80		decimal 128 signed
	PSHS	B,A	
	LEAX	G00125+0,PCR	address of array tg_intro_placard
	PSHS	X		preserve array address, then eval array index
	LEAX	G00169+0,PCR	variable tgi, declared at tgvectrex.c:1326
	LDD	,X	
	ADDD	#1	
	STD	,X	
	SUBD	#1		post increment yields initial value
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDB	,X		get r-value
	CLRA			promotion of binary operand
	LEAS	1,S	
	SUBB	,S+	
	CLRA
	STD	-9,U	
* Line tgvectrex.c:1703: assignment: =
	LDD	#$80		decimal 128 signed
	PSHS	B,A	
	LEAX	G00125+0,PCR	address of array tg_intro_placard
	PSHS	X		preserve array address, then eval array index
	LEAX	G00169+0,PCR	variable tgi, declared at tgvectrex.c:1326
	LDD	,X	
	ADDD	#1	
	STD	,X	
	SUBD	#1		post increment yields initial value
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDB	,X		get r-value
	CLRA			promotion of binary operand
	LEAS	1,S	
	SUBB	,S+	
	CLRA
	STD	-7,U	
* Line tgvectrex.c:1704: assignment: =
	LDD	#$80		decimal 128 signed
	PSHS	B,A	
	LEAX	G00125+0,PCR	address of array tg_intro_placard
	PSHS	X		preserve array address, then eval array index
	LEAX	G00169+0,PCR	variable tgi, declared at tgvectrex.c:1326
	LDD	,X	
	ADDD	#1	
	STD	,X	
	SUBD	#1		post increment yields initial value
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDB	,X		get r-value
	CLRA			promotion of binary operand
	LEAS	1,S	
	SUBB	,S+	
	CLRA
	STD	-5,U	
* Line tgvectrex.c:1705: assignment: =
	LDD	#$80		decimal 128 signed
	PSHS	B,A	
	LEAX	G00125+0,PCR	address of array tg_intro_placard
	PSHS	X		preserve array address, then eval array index
	LEAX	G00169+0,PCR	variable tgi, declared at tgvectrex.c:1326
	LDD	,X	
	ADDD	#1	
	STD	,X	
	SUBD	#1		post increment yields initial value
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDB	,X		get r-value
	CLRA			promotion of binary operand
	LEAS	1,S	
	SUBB	,S+	
	CLRA
	STD	-3,U	
* Line tgvectrex.c:1707: function call: draw_tg_intro_with_rolling_rotation()
	LDB	G00138+0,PCR	variable intro_rot, declared at tgvectrex.c:1270
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 5 of draw_tg_intro_with_rolling_rotation(): unsigned char
	LDD	-5,U		variable tgto_x, declared at tgvectrex.c:1699
	PSHS	B,A		argument 4 of draw_tg_intro_with_rolling_rotation(): int
	LDD	-3,U		variable tgto_y, declared at tgvectrex.c:1699
	PSHS	B,A		argument 3 of draw_tg_intro_with_rolling_rotation(): int
	LDD	-9,U		variable tgfrom_x, declared at tgvectrex.c:1699
	PSHS	B,A		argument 2 of draw_tg_intro_with_rolling_rotation(): int
	LDD	-7,U		variable tgfrom_y, declared at tgvectrex.c:1699
	PSHS	B,A		argument 1 of draw_tg_intro_with_rolling_rotation(): int
	LBSR	_draw_tg_intro_with_rolling_rotation
	LEAS	10,S	
L00381	EQU	*
* Line tgvectrex.c:1701: for increment(s)
	INC	-10,U	
L00380	EQU	*
* Line tgvectrex.c:1701: for condition
	LDB	-10,U		variable i
	CMPB	-1,U		variable objects
	LBLO	L00379	
	LBRA	L00382	
L00382	EQU	*		end for
* Line tgvectrex.c:1711: function call: setintensity()
	LDD	#$6E		decimal 110 signed
	PSHS	B,A		argument 1 of setintensity(): int
	LBSR	_setintensity
	LEAS	2,S	
L00043	EQU	*		end of drawtgintro()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION fp2_14_cos(): defined at tgvectrex.c:1386
_fp2_14_cos	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:1388: return with value
* Line tgvectrex.c:1388: function call: fp2_14_sin()
	LDD	4,U		variable angle256
	ADDD	#$40		64
	PSHS	B,A		argument 1 of fp2_14_sin(): int
	LBSR	_fp2_14_sin
	LEAS	2,S	
	LBRA	L00028		return (tgvectrex.c:1388)
L00028	EQU	*		end of fp2_14_cos()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION fp2_14_sin(): defined at tgvectrex.c:1381
_fp2_14_sin	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:1383: if
	LDD	#$80		decimal 128 unsigned
	PSHS	B,A	
	LDD	4,U		variable angle256, declared at tgvectrex.c:1381
	CLRA			promotion of binary operand
	LEAS	1,S		disregard MSB
	CMPB	,S+		compare with LSB
	LBHS	L00383	
	LBRA	L00384	
L00383	EQU	*		then
* Line tgvectrex.c:1383: return with value
* Line tgvectrex.c:1383: function call: sinsymmetry()
	LDD	#$7F		decimal 127 signed
	PSHS	B,A	
	LDD	4,U		variable angle256
	ADDD	#$FF80		65408
	CLRA			promotion of binary operand
	ANDA	,S+	
	ANDB	,S+	
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of sinsymmetry(): unsigned char
	LBSR	_sinsymmetry
	LEAS	2,S	
	COMA
	COMB
	ADDD	#1	
	LBRA	L00027		return (tgvectrex.c:1383)
	LBRA	L00385		jump over else clause
L00384	EQU	*		else
* Line tgvectrex.c:1383: return with value
* Line tgvectrex.c:1383: function call: sinsymmetry()
	LDB	5,U		variable angle256, cast to byte
	ANDB	#$7F	
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of sinsymmetry(): unsigned char
	LBSR	_sinsymmetry
	LEAS	2,S	
	LBRA	L00027		return (tgvectrex.c:1383)
L00385	EQU	*		end if
L00027	EQU	*		end of fp2_14_sin()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION fxpt_atan2(): defined at tgvectrex.c:1109
_fxpt_atan2	EQU	*
	PSHS	U	
	LEAU	,S	
	LEAS	-10,S	
* Line tgvectrex.c:1111: if
	LDD	6,U		variable x
	CMPD	4,U		variable y
	LBEQ	L00386	
	LBRA	L00387	
L00386	EQU	*		then
* Line tgvectrex.c:1112: if
	LDD	4,U		variable y
	ADDD	#0	
	LBGT	L00388	
	LBRA	L00389	
L00388	EQU	*		then
* Line tgvectrex.c:1113: return with value
	LDD	#$2000		decimal 8192 unsigned
	LBRA	L00023		return (tgvectrex.c:1113)
	LBRA	L00390		jump over else clause
L00389	EQU	*		else
* Line tgvectrex.c:1114: if
	LDD	4,U		variable y
	ADDD	#0	
	LBLT	L00391	
	LBRA	L00392	
L00391	EQU	*		then
* Line tgvectrex.c:1115: return with value
	LDD	#$A000		decimal 40960 unsigned
	LBRA	L00023		return (tgvectrex.c:1115)
	LBRA	L00393		jump over else clause
L00392	EQU	*		else
* Line tgvectrex.c:1117: return with value
	CLRA
	CLRB
	LBRA	L00023		return (tgvectrex.c:1117)
L00393	EQU	*		end if
L00390	EQU	*		end if
L00387	EQU	*		else
L00394	EQU	*		end if
* Line tgvectrex.c:1120: assignment: =
* Line tgvectrex.c:1120: function call: s16_nabs()
	LDD	4,U		variable y, declared at tgvectrex.c:1109
	PSHS	B,A		argument 1 of s16_nabs(): int
	LBSR	_s16_nabs
	LEAS	2,S	
	STD	-4,U	
* Line tgvectrex.c:1120: assignment: =
* Line tgvectrex.c:1120: function call: s16_nabs()
	LDD	6,U		variable x, declared at tgvectrex.c:1109
	PSHS	B,A		argument 1 of s16_nabs(): int
	LBSR	_s16_nabs
	LEAS	2,S	
	STD	-2,U	
* Line tgvectrex.c:1121: if
	LDD	-2,U		variable nabs_x
	CMPD	-4,U		variable nabs_y
	LBLT	L00395	
	LBRA	L00396	
L00395	EQU	*		then
* Line tgvectrex.c:1122: init of variable y_over_x
* Line tgvectrex.c:1122: function call: q15_div()
	LDD	6,U		variable x, declared at tgvectrex.c:1109
	PSHS	B,A		argument 2 of q15_div(): int
	LDD	4,U		variable y, declared at tgvectrex.c:1109
	PSHS	B,A		argument 1 of q15_div(): int
	LBSR	_q15_div
	LEAS	4,S	
	STD	-10,U		variable y_over_x
* Line tgvectrex.c:1123: init of variable correction
* Line tgvectrex.c:1123: function call: q15_mul()
* Line tgvectrex.c:1123: function call: s16_nabs()
	LDD	-10,U		variable y_over_x, declared at tgvectrex.c:1122
	PSHS	B,A		argument 1 of s16_nabs(): int
	LBSR	_s16_nabs
	LEAS	2,S	
	PSHS	B,A		argument 2 of q15_mul(): int
	LDD	#$0B1F		decimal 2847 signed
	PSHS	B,A		argument 1 of q15_mul(): int
	LBSR	_q15_mul
	LEAS	4,S	
	STD	-8,U		variable correction
* Line tgvectrex.c:1124: init of variable unrotated
* Line tgvectrex.c:1124: function call: q15_mul()
	LDD	-10,U		variable y_over_x, declared at tgvectrex.c:1122
	PSHS	B,A		argument 2 of q15_mul(): int
	LDD	-8,U		variable correction, declared at tgvectrex.c:1123
	PSHS	B,A	
	LDD	#$2B1F		decimal 11039 signed
	ADDD	,S++	
	PSHS	B,A		argument 1 of q15_mul(): int
	LBSR	_q15_mul
	LEAS	4,S	
	STD	-6,U		variable unrotated
* Line tgvectrex.c:1125: if
	LDD	6,U		variable x
	ADDD	#0	
	LBGT	L00397	
	LBRA	L00398	
L00397	EQU	*		then
* Line tgvectrex.c:1126: return with value
	LDD	-6,U		variable unrotated, declared at tgvectrex.c:1124
	LBRA	L00023		return (tgvectrex.c:1126)
	LBRA	L00399		jump over else clause
L00398	EQU	*		else
* Line tgvectrex.c:1128: return with value
	LDD	-6,U		variable unrotated, declared at tgvectrex.c:1124
	PSHS	B,A	
	LDD	#$8000		decimal 32768 unsigned
	ADDD	,S++	
	LBRA	L00023		return (tgvectrex.c:1128)
L00399	EQU	*		end if
	LBRA	L00400		jump over else clause
L00396	EQU	*		else
* Line tgvectrex.c:1131: init of variable x_over_y
* Line tgvectrex.c:1131: function call: q15_div()
	LDD	4,U		variable y, declared at tgvectrex.c:1109
	PSHS	B,A		argument 2 of q15_div(): int
	LDD	6,U		variable x, declared at tgvectrex.c:1109
	PSHS	B,A		argument 1 of q15_div(): int
	LBSR	_q15_div
	LEAS	4,S	
	STD	-10,U		variable x_over_y
* Line tgvectrex.c:1132: init of variable correction
* Line tgvectrex.c:1132: function call: q15_mul()
* Line tgvectrex.c:1132: function call: s16_nabs()
	LDD	-10,U		variable x_over_y, declared at tgvectrex.c:1131
	PSHS	B,A		argument 1 of s16_nabs(): int
	LBSR	_s16_nabs
	LEAS	2,S	
	PSHS	B,A		argument 2 of q15_mul(): int
	LDD	#$0B1F		decimal 2847 signed
	PSHS	B,A		argument 1 of q15_mul(): int
	LBSR	_q15_mul
	LEAS	4,S	
	STD	-8,U		variable correction
* Line tgvectrex.c:1133: init of variable unrotated
* Line tgvectrex.c:1133: function call: q15_mul()
	LDD	-10,U		variable x_over_y, declared at tgvectrex.c:1131
	PSHS	B,A		argument 2 of q15_mul(): int
	LDD	-8,U		variable correction, declared at tgvectrex.c:1132
	PSHS	B,A	
	LDD	#$2B1F		decimal 11039 signed
	ADDD	,S++	
	PSHS	B,A		argument 1 of q15_mul(): int
	LBSR	_q15_mul
	LEAS	4,S	
	STD	-6,U		variable unrotated
* Line tgvectrex.c:1134: if
	LDD	4,U		variable y
	ADDD	#0	
	LBGT	L00401	
	LBRA	L00402	
L00401	EQU	*		then
* Line tgvectrex.c:1135: return with value
	LDD	-6,U		variable unrotated, declared at tgvectrex.c:1133
	PSHS	B,A	
	LDD	#$4000		decimal 16384 unsigned
	SUBD	,S++	
	LBRA	L00023		return (tgvectrex.c:1135)
	LBRA	L00403		jump over else clause
L00402	EQU	*		else
* Line tgvectrex.c:1137: return with value
	LDD	-6,U		variable unrotated, declared at tgvectrex.c:1133
	PSHS	B,A	
	LDD	#$C000		decimal 49152 unsigned
	SUBD	,S++	
	LBRA	L00023		return (tgvectrex.c:1137)
L00403	EQU	*		end if
L00400	EQU	*		end if
L00023	EQU	*		end of fxpt_atan2()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION gotoxy(): defined at tgvectrex.c:878
_gotoxy	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:883: if
	LDB	G00133+0,PCR	variable pen
	CMPB	#$01
	BNE	L00405	
* Line tgvectrex.c:883: function call: Display_Vectrex_vector()
	LDD	6,U		variable y, declared at tgvectrex.c:878
	PSHS	B,A		argument 4 of Display_Vectrex_vector(): int
	LDD	4,U		variable x, declared at tgvectrex.c:878
	PSHS	B,A		argument 3 of Display_Vectrex_vector(): int
	LDD	G00135+0,PCR	variable last_y, declared at tgvectrex.c:877
	PSHS	B,A		argument 2 of Display_Vectrex_vector(): int
	LDD	G00134+0,PCR	variable last_x, declared at tgvectrex.c:877
	PSHS	B,A		argument 1 of Display_Vectrex_vector(): int
	LBSR	_Display_Vectrex_vector
	LEAS	8,S	
L00405	EQU	*		else
L00406	EQU	*		end if
* Line tgvectrex.c:884: assignment: =
	LDD	4,U		variable x, declared at tgvectrex.c:878
	LDD	4,U	
	STD	G00134+0,PCR
* Line tgvectrex.c:884: assignment: =
	LDD	6,U		variable y, declared at tgvectrex.c:878
	LDD	6,U	
	STD	G00135+0,PCR
L00013	EQU	*		end of gotoxy()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION graphics_initialisation(): defined at tgvectrex.c:161
_graphics_initialisation	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:164: assignment: =
	LDD	#$0320		decimal 800 signed
	LDD	#$0320	
	STD	G00114+0,PCR
* Line tgvectrex.c:165: assignment: =
	LDD	#$0400		decimal 1024 signed
	LDD	#$0400	
	STD	G00113+0,PCR
L00002	EQU	*		end of graphics_initialisation()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION init_stars(): defined at tgvectrex.c:1547
_init_stars	EQU	*
	PSHS	U	
	LEAU	,S--	
* Line tgvectrex.c:1551: for init
* Line tgvectrex.c:1551: assignment: =
	CLRA
	CLRB
	CLRB
	STB	-1,U	
	LBRA	L00408		jump to for condition
L00407	EQU	*
* Line tgvectrex.c:1551: for body
* Line tgvectrex.c:1552: assignment: =
* Line tgvectrex.c:1552: function call: star_x1()
	LDB	-1,U		variable star, declared at tgvectrex.c:1549
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of star_x1(): unsigned char
	LBSR	_star_x1
	LEAS	2,S	
	PSHS	B,A	
	LEAX	G00197+0,PCR	address of array px
	LDB	-1,U		variable star
	CLRA			index expression is of byte type
	LSLB
	ROLA
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
* Line tgvectrex.c:1552: assignment: =
* Line tgvectrex.c:1552: function call: star_y1()
	LDB	-1,U		variable star, declared at tgvectrex.c:1549
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of star_y1(): unsigned char
	LBSR	_star_y1
	LEAS	2,S	
	PSHS	B,A	
	LEAX	G00198+0,PCR	address of array py
	LDB	-1,U		variable star
	CLRA			index expression is of byte type
	LSLB
	ROLA
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
* Line tgvectrex.c:1553: for init
* Line tgvectrex.c:1553: assignment: =
	CLRA
	CLRB
	CLRB
	STB	-2,U	
	LBRA	L00412		jump to for condition
L00411	EQU	*
* Line tgvectrex.c:1553: for body
* Line tgvectrex.c:1553: function call: move_star()
	LDB	-1,U		variable star, declared at tgvectrex.c:1549
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of move_star(): unsigned char
	LBSR	_move_star
	LEAS	2,S	
L00413	EQU	*
* Line tgvectrex.c:1553: for increment(s)
	INC	-2,U	
L00412	EQU	*
* Line tgvectrex.c:1553: for condition
	LDA	-1,U	
	LDB	#$0D	
	MUL			result of type byte in B
	CLRA			promotion of binary operand
	PSHS	B,A	
	LDB	-2,U		variable i, declared at tgvectrex.c:1549
	CLRA			promotion of binary operand
	LEAS	1,S		disregard MSB
	CMPB	,S+		compare with LSB
	LBLO	L00411	
	LBRA	L00414	
L00414	EQU	*		end for
L00409	EQU	*
* Line tgvectrex.c:1551: for increment(s)
	INC	-1,U	
L00408	EQU	*
* Line tgvectrex.c:1551: for condition
	LDB	-1,U		variable star
	CMPB	#$10	
	LBLO	L00407	
	LBRA	L00410	
L00410	EQU	*		end for
L00038	EQU	*		end of init_stars()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION initialise_ship(): defined at tgvectrex.c:1721
_initialise_ship	EQU	*
	PSHS	U	
	LEAU	,S	
	LEAS	-1,S	
* Line tgvectrex.c:1723: init of variable ship_next
	LDA	5,U	
	LDB	#$0E	
	MUL			result of type byte in B
	STB	-1,U		variable ship_next
* Line tgvectrex.c:1726: assignment: =
	LDB	7,U		variable model_type, declared at tgvectrex.c:1721
	CLRA
	PSHS	B,A	
	LEAX	G00196+0,PCR	address of array ships
	PSHS	X		preserve array address, then eval array index
	LEAX	-1,U		variable ship_next, declared at tgvectrex.c:1723
	LDB	,X	
	INC	,X	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
* Line tgvectrex.c:1727: assignment: =
	LDD	8,U		variable x, declared at tgvectrex.c:1721
	PSHS	B,A	
	LEAX	G00196+0,PCR	address of array ships
	PSHS	X		preserve array address, then eval array index
	LEAX	-1,U		variable ship_next, declared at tgvectrex.c:1723
	LDB	,X	
	INC	,X	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
* Line tgvectrex.c:1728: assignment: =
	LDD	10,U		variable y, declared at tgvectrex.c:1721
	PSHS	B,A	
	LEAX	G00196+0,PCR	address of array ships
	PSHS	X		preserve array address, then eval array index
	LEAX	-1,U		variable ship_next, declared at tgvectrex.c:1723
	LDB	,X	
	INC	,X	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
* Line tgvectrex.c:1729: assignment: =
	LDD	12,U		variable z, declared at tgvectrex.c:1721
	PSHS	B,A	
	LEAX	G00196+0,PCR	address of array ships
	PSHS	X		preserve array address, then eval array index
	LEAX	-1,U		variable ship_next, declared at tgvectrex.c:1723
	LDB	,X	
	INC	,X	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
* Line tgvectrex.c:1730: assignment: =
	LDD	14,U		variable Xrot, declared at tgvectrex.c:1721
	PSHS	B,A	
	LEAX	G00196+0,PCR	address of array ships
	PSHS	X		preserve array address, then eval array index
	LEAX	-1,U		variable ship_next, declared at tgvectrex.c:1723
	LDB	,X	
	INC	,X	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
* Line tgvectrex.c:1731: assignment: =
	LDD	16,U		variable Yrot, declared at tgvectrex.c:1721
	PSHS	B,A	
	LEAX	G00196+0,PCR	address of array ships
	PSHS	X		preserve array address, then eval array index
	LEAX	-1,U		variable ship_next, declared at tgvectrex.c:1723
	LDB	,X	
	INC	,X	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
* Line tgvectrex.c:1732: assignment: =
	LDD	18,U		variable Zrot, declared at tgvectrex.c:1721
	PSHS	B,A	
	LEAX	G00196+0,PCR	address of array ships
	PSHS	X		preserve array address, then eval array index
	LEAX	-1,U		variable ship_next, declared at tgvectrex.c:1723
	LDB	,X	
	INC	,X	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
* Line tgvectrex.c:1733: assignment: =
	LDD	20,U		variable scale_fp, declared at tgvectrex.c:1721
	PSHS	B,A	
	LEAX	G00196+0,PCR	address of array ships
	PSHS	X		preserve array address, then eval array index
	LEAX	-1,U		variable ship_next, declared at tgvectrex.c:1723
	LDB	,X	
	INC	,X	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
* Line tgvectrex.c:1734: assignment: =
	LDD	#$14		decimal 20 signed
	PSHS	B,A	
* Line tgvectrex.c:1734: function call: pickrandom()
	LDD	#$78		decimal 120 signed
	PSHS	B,A		argument 2 of pickrandom(): int
	LDD	#$50		decimal 80 signed
	PSHS	B,A		argument 1 of pickrandom(): int
	LBSR	_pickrandom
	LEAS	4,S	
	PULS	X	
	LBSR	MUL16	
	PSHS	B,A	
	LDD	#$64		decimal 100 signed
	PULS	X	
	LBSR	SDIV16	
	TFR	X,D		quotient
	PSHS	B,A	
	LEAX	G00196+0,PCR	address of array ships
	PSHS	X		preserve array address, then eval array index
	LEAX	-1,U		variable ship_next, declared at tgvectrex.c:1723
	LDB	,X	
	INC	,X	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
* Line tgvectrex.c:1736: assignment: =
	CLRA
	CLRB
	PSHS	B,A	
	LEAX	G00196+0,PCR	address of array ships
	PSHS	X		preserve array address, then eval array index
	LEAX	-1,U		variable ship_next, declared at tgvectrex.c:1723
	LDB	,X	
	INC	,X	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
* Line tgvectrex.c:1737: assignment: =
* Line tgvectrex.c:1737: function call: pickrandom()
	LDD	#$0190		decimal 400 signed
	PSHS	B,A		argument 2 of pickrandom(): int
	LDD	#$FE70		constant expression: 65136 decimal
	PSHS	B,A		argument 1 of pickrandom(): int
	LBSR	_pickrandom
	LEAS	4,S	
	PSHS	B,A	
	LEAX	G00196+0,PCR	address of array ships
	PSHS	X		preserve array address, then eval array index
	LEAX	-1,U		variable ship_next, declared at tgvectrex.c:1723
	LDB	,X	
	INC	,X	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
* Line tgvectrex.c:1738: assignment: =
* Line tgvectrex.c:1738: function call: pickrandom()
	LDD	#$012C		decimal 300 signed
	PSHS	B,A		argument 2 of pickrandom(): int
	LDD	#$FED4		constant expression: 65236 decimal
	PSHS	B,A		argument 1 of pickrandom(): int
	LBSR	_pickrandom
	LEAS	4,S	
	PSHS	B,A	
	LEAX	G00196+0,PCR	address of array ships
	PSHS	X		preserve array address, then eval array index
	LEAX	-1,U		variable ship_next, declared at tgvectrex.c:1723
	LDB	,X	
	INC	,X	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
* Line tgvectrex.c:1739: assignment: =
	LDD	12,U		variable z, declared at tgvectrex.c:1721
	PSHS	B,A	
	LEAX	G00196+0,PCR	address of array ships
	PSHS	X		preserve array address, then eval array index
	LEAX	-1,U		variable ship_next, declared at tgvectrex.c:1723
	LDB	,X	
	INC	,X	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
* Line tgvectrex.c:1743: assignment: =
	CLRA
	CLRB
	PSHS	B,A	
	LEAX	G00196+0,PCR	address of array ships
	PSHS	X		preserve array address, then eval array index
	LEAX	-1,U		variable ship_next, declared at tgvectrex.c:1723
	LDB	,X	
	INC	,X	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
L00045	EQU	*		end of initialise_ship()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION irand(): defined at tgvectrex.c:887
_irand	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:889: return with value
* Line tgvectrex.c:889: function call: urandom16()
	LBSR	_urandom16
	PSHS	B,A	
	LDD	4,U		variable max, declared at tgvectrex.c:887
	PULS	X	
	LBSR	SDIV16	
	LBRA	L00014		return (tgvectrex.c:889)
L00014	EQU	*		end of irand()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION isqrt(): defined at tgvectrex.c:913
_isqrt	EQU	*
	PSHS	U	
	LEAU	,S	
	LEAS	-6,S	
* Line tgvectrex.c:915: init of variable res
	CLRA
	CLRB
	STD	-6,U		variable res
* Line tgvectrex.c:916: init of variable one
	LDD	#$4000		16384
	STD	-4,U		variable one
* Line tgvectrex.c:920: while
L00416	EQU	*		while condition at tgvectrex.c:920
	LDD	-4,U		variable one
	CMPD	4,U		variable op
	LBHI	L00415	
	LBRA	L00417	
L00415	EQU	*		while body
* Line tgvectrex.c:920: assignment: >>=
	LEAX	-4,U		variable one, declared at tgvectrex.c:916
	LDD	,X		get word to be shifted
	LSRA
	RORB
	LSRA
	RORB
	STD	,X		store shifted word
	LBRA	L00416		go to while condition
L00417	EQU	*		after end of while starting at tgvectrex.c:920
* Line tgvectrex.c:922: while
L00419	EQU	*		while condition at tgvectrex.c:922
	LDD	-4,U		variable one, declared at tgvectrex.c:916
	ADDD	#0	
	LBNE	L00418	
	LBRA	L00420	
L00418	EQU	*		while body
* Line tgvectrex.c:923: if
* Line tgvectrex.c:923: assignment: =
	LDD	-4,U		variable one, declared at tgvectrex.c:916
	PSHS	B,A	
	LDD	-6,U		variable res, declared at tgvectrex.c:915
	ADDD	,S++	
	STD	-2,U	
	PSHS	B,A	
	LDD	4,U		variable op, declared at tgvectrex.c:913
	CMPD	,S++	
	LBHS	L00421	
	LBRA	L00422	
L00421	EQU	*		then
* Line tgvectrex.c:924: assignment: -=
	LDD	4,U		variable op
	SUBD	-2,U		variable limit
	STD	4,U		variable op
* Line tgvectrex.c:925: assignment: +=
	LDD	-6,U		variable res
	ADDD	-4,U		variable one
	STD	-6,U		variable res
* Line tgvectrex.c:926: assignment: +=
	LDD	-6,U		variable res
	ADDD	-4,U		variable one
	STD	-6,U		variable res
L00422	EQU	*		else
L00423	EQU	*		end if
* Line tgvectrex.c:928: assignment: >>=
	LEAX	-6,U		variable res, declared at tgvectrex.c:915
	LDD	,X		get word to be shifted
	LSRA
	RORB
	STD	,X		store shifted word
* Line tgvectrex.c:929: assignment: >>=
	LEAX	-4,U		variable one, declared at tgvectrex.c:916
	LDD	,X		get word to be shifted
	LSRA
	RORB
	LSRA
	RORB
	STD	,X		store shifted word
	LBRA	L00419		go to while condition
L00420	EQU	*		after end of while starting at tgvectrex.c:922
* Line tgvectrex.c:935: return with value
	LDD	-6,U		variable res, declared at tgvectrex.c:915
	LBRA	L00017		return (tgvectrex.c:935)
L00017	EQU	*		end of isqrt()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION main(): defined at tgvectrex.c:2805
_main	EQU	*
	PSHS	U	
	LEAU	,S	
	LEAS	-4,S	
* Line tgvectrex.c:2814: function call: pre_graphics_initialisation()
	LBSR	_pre_graphics_initialisation
* Line tgvectrex.c:2816: function call: graphics_initialisation()
	LDD	-2,U		variable argv, declared at tgvectrex.c:2808
	PSHS	B,A		argument 2 of graphics_initialisation(): char **
	LEAX	-4,U		variable argc, declared at tgvectrex.c:2807
	PSHS	X		argument 1 of graphics_initialisation(): int *
	LBSR	_graphics_initialisation
	LEAS	4,S	
* Line tgvectrex.c:2818: function call: post_graphics_initialisation()
	LBSR	_post_graphics_initialisation
* Line tgvectrex.c:2820: function call: Main_loop()
	LBSR	_Main_loop
* Line tgvectrex.c:2822: return with value
	CLRA
	CLRB
	LBRA	L00103		return (tgvectrex.c:2822)
L00103	EQU	*		end of main()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION millis(): defined at tgvectrex.c:204
_millis	EQU	*
* Line tgvectrex.c:212: return with value
	LDD	G00106+0,PCR	variable millis_time, declared at tgvectrex.c:138
	LBRA	L00009		return (tgvectrex.c:212)
L00009	EQU	*		end of millis()
	RTS
* END FUNCTION


*******************************************************************************

* FUNCTION mouseX(): defined at tgvectrex.c:190
_mouseX	EQU	*
* Line tgvectrex.c:196: return with value
	CLRA
	CLRB
	LBRA	L00007		return (tgvectrex.c:196)
L00007	EQU	*		end of mouseX()
	RTS
* END FUNCTION


*******************************************************************************

* FUNCTION mouseY(): defined at tgvectrex.c:199
_mouseY	EQU	*
* Line tgvectrex.c:201: return with value
	CLRA
	CLRB
	LBRA	L00008		return (tgvectrex.c:201)
L00008	EQU	*		end of mouseY()
	RTS
* END FUNCTION


*******************************************************************************

* FUNCTION move_star(): defined at tgvectrex.c:1529
_move_star	EQU	*
	PSHS	U	
	LEAU	,S	
	LEAS	-4,S	
* Line tgvectrex.c:1531: init of variable x
	LEAX	G00197+0,PCR	address of array px
	LDB	5,U		variable starno
	CLRA			index expression is of byte type
	LSLB
	ROLA
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STD	-4,U		variable x
* Line tgvectrex.c:1531: init of variable y
	LEAX	G00198+0,PCR	address of array py
	LDB	5,U		variable starno
	CLRA			index expression is of byte type
	LSLB
	ROLA
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	STD	-2,U		variable y
* Line tgvectrex.c:1534: assignment: =
	LDD	-4,U		variable x, declared at tgvectrex.c:1531
	PSHS	B,A	
	LDD	-4,U		variable x, declared at tgvectrex.c:1531
	LSLB
	ROLA
	LSLB
	ROLA
	LSLB
	ROLA
	LSLB
	ROLA
	LSLB
	ROLA
	LSLB
	ROLA
	SUBD	,S++	
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	STD	-4,U	
* Line tgvectrex.c:1534: assignment: =
	LDD	-2,U		variable y, declared at tgvectrex.c:1531
	PSHS	B,A	
	LDD	-2,U		variable y, declared at tgvectrex.c:1531
	LSLB
	ROLA
	LSLB
	ROLA
	LSLB
	ROLA
	LSLB
	ROLA
	LSLB
	ROLA
	LSLB
	ROLA
	SUBD	,S++	
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	STD	-2,U	
* Line tgvectrex.c:1535: if
* Line tgvectrex.c:1535: function call: clipoff()
	LDD	-2,U		variable y, declared at tgvectrex.c:1531
	PSHS	B,A		argument 2 of clipoff(): int
	LDD	-4,U		variable x, declared at tgvectrex.c:1531
	PSHS	B,A		argument 1 of clipoff(): int
	LBSR	_clipoff
	LEAS	4,S	
	TSTB
	LBNE	L00424	
	LBRA	L00425	
L00424	EQU	*		then
* Line tgvectrex.c:1536: assignment: =
* Line tgvectrex.c:1536: function call: star_x1()
	LDB	5,U		variable starno, declared at tgvectrex.c:1529
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of star_x1(): unsigned char
	LBSR	_star_x1
	LEAS	2,S	
	STD	-4,U	
* Line tgvectrex.c:1536: assignment: =
* Line tgvectrex.c:1536: function call: star_y1()
	LDB	5,U		variable starno, declared at tgvectrex.c:1529
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of star_y1(): unsigned char
	LBSR	_star_y1
	LEAS	2,S	
	STD	-2,U	
L00425	EQU	*		else
L00426	EQU	*		end if
* Line tgvectrex.c:1538: assignment: =
	LDD	-4,U		variable x, declared at tgvectrex.c:1531
	PSHS	B,A	
	LEAX	G00197+0,PCR	address of array px
	LDB	5,U		variable starno
	CLRA			index expression is of byte type
	LSLB
	ROLA
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
* Line tgvectrex.c:1538: assignment: =
	LDD	-2,U		variable y, declared at tgvectrex.c:1531
	PSHS	B,A	
	LEAX	G00198+0,PCR	address of array py
	LDB	5,U		variable starno
	CLRA			index expression is of byte type
	LSLB
	ROLA
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
L00036	EQU	*		end of move_star()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION mul_short_by_fp2_14_returning_short(): defined at tgvectrex.c:1391
_mul_short_by_fp2_14_returning_short	EQU	*
	PSHS	U	
	LEAU	,S--	
* Line tgvectrex.c:1393: init of variable sign
	LDD	#$01		1
	STD	-2,U		variable sign
* Line tgvectrex.c:1394: if
	LDD	4,U		variable num
	ADDD	#0	
	LBLT	L00427	
	LBRA	L00428	
L00427	EQU	*		then
* Line tgvectrex.c:1394: assignment: =
	LDD	4,U		variable num, declared at tgvectrex.c:1391
	COMA
	COMB
	ADDD	#1	
	STD	4,U	
* Line tgvectrex.c:1394: assignment: =
	LDD	-2,U		variable sign, declared at tgvectrex.c:1393
	COMA
	COMB
	ADDD	#1	
	STD	-2,U	
L00428	EQU	*		else
L00429	EQU	*		end if
* Line tgvectrex.c:1395: if
	LDD	6,U		variable fp
	ADDD	#0	
	LBLT	L00430	
	LBRA	L00431	
L00430	EQU	*		then
* Line tgvectrex.c:1395: assignment: =
	LDD	6,U		variable fp, declared at tgvectrex.c:1391
	COMA
	COMB
	ADDD	#1	
	STD	6,U	
* Line tgvectrex.c:1395: assignment: =
	LDD	-2,U		variable sign, declared at tgvectrex.c:1393
	COMA
	COMB
	ADDD	#1	
	STD	-2,U	
L00431	EQU	*		else
L00432	EQU	*		end if
* Line tgvectrex.c:1396: return with value
	LDD	-2,U		variable sign, declared at tgvectrex.c:1393
	PSHS	B,A	
* Line tgvectrex.c:1396: function call: muldiv()
	LDD	#$4000		constant expression: 16384 decimal
	PSHS	B,A		argument 3 of muldiv(): int
	LDD	6,U		variable fp, declared at tgvectrex.c:1391
	PSHS	B,A		argument 2 of muldiv(): int
	LDD	4,U		variable num, declared at tgvectrex.c:1391
	PSHS	B,A		argument 1 of muldiv(): int
	LBSR	_muldiv	
	LEAS	6,S	
	PULS	X	
	LBSR	MUL16	
	LBRA	L00029		return (tgvectrex.c:1396)
L00029	EQU	*		end of mul_short_by_fp2_14_returning_short()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION muldiv(): defined at tgvectrex.c:1046
_muldiv	EQU	*
	PSHS	U	
	LEAU	,S	
	LEAS	-8,S	
* Line tgvectrex.c:1052: init of variable q
	CLRA
	CLRB
	STD	-8,U		variable q
* Line tgvectrex.c:1052: init of variable r
	CLRA
	CLRB
	STD	-6,U		variable r
* Line tgvectrex.c:1055: if
	LDD	4,U		variable a
	CMPD	6,U		variable b
	LBLO	L00433	
	LBRA	L00434	
L00433	EQU	*		then
* Line tgvectrex.c:1056: assignment: =
	LDX	6,U		left
	LDD	8,U		right
	LBSR	DIV16	
	TFR	X,D		quotient
	STD	-4,U	
* Line tgvectrex.c:1057: assignment: =
	LDX	6,U		left
	LDD	8,U		right
	LBSR	DIV16	
	STD	-2,U	
* Line tgvectrex.c:1058: while
L00436	EQU	*		while condition at tgvectrex.c:1058
	LDD	4,U		variable a, declared at tgvectrex.c:1046
	ADDD	#0	
	LBNE	L00435	
	LBRA	L00437	
L00435	EQU	*		while body
* Line tgvectrex.c:1059: if
	LDD	4,U		variable a
	ANDA	#$00	
	ANDB	#$01	
	ADDD	#0	
	LBNE	L00438	
	LBRA	L00439	
L00438	EQU	*		then
* Line tgvectrex.c:1059: assignment: +=
	LDD	-8,U		variable q
	ADDD	-4,U		variable qn
	STD	-8,U		variable q
* Line tgvectrex.c:1059: assignment: +=
	LDD	-6,U		variable r
	ADDD	-2,U		variable rn
	STD	-6,U		variable r
* Line tgvectrex.c:1059: if
	LDD	-6,U		variable r
	CMPD	8,U		variable c
	LBHS	L00440	
	LBRA	L00441	
L00440	EQU	*		then
	LEAX	-8,U		variable q, declared at tgvectrex.c:1052
	LDD	,X	
	ADDD	#1	
	STD	,X	
	SUBD	#1		post increment yields initial value
* Line tgvectrex.c:1059: assignment: -=
	LDD	-6,U		variable r
	SUBD	8,U		variable c
	STD	-6,U		variable r
L00441	EQU	*		else
L00442	EQU	*		end if
L00439	EQU	*		else
L00443	EQU	*		end if
* Line tgvectrex.c:1060: assignment: >>=
	LEAX	4,U		variable a, declared at tgvectrex.c:1046
	LDD	,X		get word to be shifted
	LSRA
	RORB
	STD	,X		store shifted word
* Line tgvectrex.c:1060: assignment: <<=
	LEAX	-4,U		variable qn, declared at tgvectrex.c:1052
	LDD	,X		get word to be shifted
	LSLB
	ROLA
	STD	,X		store shifted word
* Line tgvectrex.c:1060: assignment: <<=
	LEAX	-2,U		variable rn, declared at tgvectrex.c:1052
	LDD	,X		get word to be shifted
	LSLB
	ROLA
	STD	,X		store shifted word
* Line tgvectrex.c:1060: if
	LDD	-2,U		variable rn
	CMPD	8,U		variable c
	LBHS	L00444	
	LBRA	L00445	
L00444	EQU	*		then
	LEAX	-4,U		variable qn, declared at tgvectrex.c:1052
	LDD	,X	
	ADDD	#1	
	STD	,X	
	SUBD	#1		post increment yields initial value
* Line tgvectrex.c:1060: assignment: -=
	LDD	-2,U		variable rn
	SUBD	8,U		variable c
	STD	-2,U		variable rn
L00445	EQU	*		else
L00446	EQU	*		end if
	LBRA	L00436		go to while condition
L00437	EQU	*		after end of while starting at tgvectrex.c:1058
	LBRA	L00447		jump over else clause
L00434	EQU	*		else
* Line tgvectrex.c:1064: assignment: =
	LDX	4,U		left
	LDD	8,U		right
	LBSR	DIV16	
	TFR	X,D		quotient
	STD	-4,U	
* Line tgvectrex.c:1065: assignment: =
	LDX	4,U		left
	LDD	8,U		right
	LBSR	DIV16	
	STD	-2,U	
* Line tgvectrex.c:1066: while
L00449	EQU	*		while condition at tgvectrex.c:1066
	LDD	6,U		variable b, declared at tgvectrex.c:1046
	ADDD	#0	
	LBNE	L00448	
	LBRA	L00450	
L00448	EQU	*		while body
* Line tgvectrex.c:1067: if
	LDD	6,U		variable b
	ANDA	#$00	
	ANDB	#$01	
	ADDD	#0	
	LBNE	L00451	
	LBRA	L00452	
L00451	EQU	*		then
* Line tgvectrex.c:1067: assignment: +=
	LDD	-8,U		variable q
	ADDD	-4,U		variable qn
	STD	-8,U		variable q
* Line tgvectrex.c:1067: assignment: +=
	LDD	-6,U		variable r
	ADDD	-2,U		variable rn
	STD	-6,U		variable r
* Line tgvectrex.c:1067: if
	LDD	-6,U		variable r
	CMPD	8,U		variable c
	LBHS	L00453	
	LBRA	L00454	
L00453	EQU	*		then
	LEAX	-8,U		variable q, declared at tgvectrex.c:1052
	LDD	,X	
	ADDD	#1	
	STD	,X	
	SUBD	#1		post increment yields initial value
* Line tgvectrex.c:1067: assignment: -=
	LDD	-6,U		variable r
	SUBD	8,U		variable c
	STD	-6,U		variable r
L00454	EQU	*		else
L00455	EQU	*		end if
L00452	EQU	*		else
L00456	EQU	*		end if
* Line tgvectrex.c:1068: assignment: >>=
	LEAX	6,U		variable b, declared at tgvectrex.c:1046
	LDD	,X		get word to be shifted
	LSRA
	RORB
	STD	,X		store shifted word
* Line tgvectrex.c:1068: assignment: <<=
	LEAX	-4,U		variable qn, declared at tgvectrex.c:1052
	LDD	,X		get word to be shifted
	LSLB
	ROLA
	STD	,X		store shifted word
* Line tgvectrex.c:1068: assignment: <<=
	LEAX	-2,U		variable rn, declared at tgvectrex.c:1052
	LDD	,X		get word to be shifted
	LSLB
	ROLA
	STD	,X		store shifted word
* Line tgvectrex.c:1068: if
	LDD	-2,U		variable rn
	CMPD	8,U		variable c
	LBHS	L00457	
	LBRA	L00458	
L00457	EQU	*		then
	LEAX	-4,U		variable qn, declared at tgvectrex.c:1052
	LDD	,X	
	ADDD	#1	
	STD	,X	
	SUBD	#1		post increment yields initial value
* Line tgvectrex.c:1068: assignment: -=
	LDD	-2,U		variable rn
	SUBD	8,U		variable c
	STD	-2,U		variable rn
L00458	EQU	*		else
L00459	EQU	*		end if
	LBRA	L00449		go to while condition
L00450	EQU	*		after end of while starting at tgvectrex.c:1066
L00447	EQU	*		end if
* Line tgvectrex.c:1071: return with value
	LDD	-8,U		variable q, declared at tgvectrex.c:1052
	LBRA	L00020		return (tgvectrex.c:1071)
L00020	EQU	*		end of muldiv()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION numdigits(): defined at tgvectrex.c:1180
_numdigits	EQU	*
	PSHS	U	
	LEAU	,S	
	LEAS	-1,S	
* Line tgvectrex.c:1183: init of variable result
	CLR	-1,U		variable result
* Line tgvectrex.c:1187: do-while
L00460	EQU	*		do-while body
* Line tgvectrex.c:1185: assignment: =
	LDX	4,U		left
	LDD	#$0A		right
	LBSR	SDIV16	
	TFR	X,D		quotient
	STD	4,U	
	LEAX	-1,U		variable result, declared at tgvectrex.c:1183
	LDB	,X	
	INC	,X	
L00461	EQU	*		do-while condition at tgvectrex.c:1187
	LDD	4,U		variable num
	ADDD	#0	
	LBGT	L00460	
	LBRA	L00462	
	LBRA	L00460		go to start of do-while body
L00462	EQU	*		after end of do-while starting at tgvectrex.c:1187
* Line tgvectrex.c:1188: return with value
	LDB	-1,U		variable result, declared at tgvectrex.c:1183
	LBRA	L00025		return (tgvectrex.c:1188)
L00025	EQU	*		end of numdigits()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION pickrandom(): defined at tgvectrex.c:892
_pickrandom	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:895: return with value
	LDD	4,U		variable low, declared at tgvectrex.c:892
	PSHS	B,A	
* Line tgvectrex.c:895: function call: irand()
	LDD	#$01		decimal 1 signed
	PSHS	B,A	
	LDD	4,U		variable low, declared at tgvectrex.c:892
	PSHS	B,A	
	LDD	6,U		variable high, declared at tgvectrex.c:892
	SUBD	,S++	
	ADDD	,S++	
	PSHS	B,A		argument 1 of irand(): int
	LBSR	_irand	
	LEAS	2,S	
	ADDD	,S++	
	LBRA	L00015		return (tgvectrex.c:895)
L00015	EQU	*		end of pickrandom()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION playTailgunner(): defined at tgvectrex.c:2480
_playTailgunner	EQU	*
* Line tgvectrex.c:2487: assignment: =
* Line tgvectrex.c:2487: function call: fp2_14_sin()
	LDB	G00143+0,PCR	variable flashingtexttimer, declared at tgvectrex.c:1283
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of fp2_14_sin(): unsigned char
	LBSR	_fp2_14_sin
	LEAS	2,S	
	TFR	A,B		shift D 8 bits right
	SEX			signed
	ASRB
	PSHS	B,A	
	LDD	#$5F		decimal 95 signed
	ADDD	,S++	
	STB	G00142+0,PCR
* Line tgvectrex.c:2488: assignment: =
	LDB	G00143+0,PCR
	CLRA
	ADDD	#$08		8
	STB	G00143+0,PCR
* Line tgvectrex.c:2491: if
	LDB	G00108+0,PCR	variable Pressed_Key
	CMPB	#$33
	BNE	L00464	
* Line tgvectrex.c:2492: assignment: =
	CLRA
	CLRB
	CLRB
	STB	G00108+0,PCR
* Line tgvectrex.c:2493: assignment: +=
	LDB	G00136+0,PCR	variable Credits
	ADDB	#$01		+= operator at tgvectrex.c:2493
	STB	G00136+0,PCR
* Line tgvectrex.c:2494: function call: startAsyncSound()
	LDD	#$06		decimal 6 signed
	PSHS	B,A		argument 1 of startAsyncSound(): int
	LBSR	_startAsyncSound
	LEAS	2,S	
* Line tgvectrex.c:2495: if
	LDD	G00145+0,PCR	variable Mode
	CMPD	#$04	
	LBLT	L00465	
	LBRA	L00466	
L00465	EQU	*		then
* Line tgvectrex.c:2496: assignment: =
	LDD	#$04		decimal 4 signed
	LDD	#$04	
	STD	G00145+0,PCR
L00466	EQU	*		else
L00467	EQU	*		end if
L00464	EQU	*		else
L00468	EQU	*		end if
* Line tgvectrex.c:2500: if
	LDD	G00145+0,PCR	variable Mode
	CMPD	#$06	
	LBEQ	L00471	
	LBRA	L00470	
L00471	EQU	*
	LDD	G00157+0,PCR	variable ShipsPassedThisWave
	ADDD	#0	
	LBGT	L00469	
	LBRA	L00470	
L00469	EQU	*		then
* Line tgvectrex.c:2501: function call: stars()
	LDD	#$04		decimal 4 signed
	PSHS	B,A		argument 1 of stars(): int
	LBSR	_stars	
	LEAS	2,S	
	LBRA	L00472		jump over else clause
L00470	EQU	*		else
* Line tgvectrex.c:2503: function call: stars()
	LDD	#$01		decimal 1 signed
	PSHS	B,A		argument 1 of stars(): int
	LBSR	_stars	
	LEAS	2,S	
L00472	EQU	*		end if
* Line tgvectrex.c:2526: if
	LDD	G00145+0,PCR	variable Mode, declared at tgvectrex.c:1288
	ADDD	#0	
	LBEQ	L00473	
	LBRA	L00474	
L00473	EQU	*		then
* Line tgvectrex.c:2538: function call: Playintro()
	LBSR	_Playintro
* Line tgvectrex.c:2544: assignment: =
	LDD	#$01		decimal 1 signed
	LDD	#$01	
	STD	G00145+0,PCR
	LBRA	L00475		jump over else clause
L00474	EQU	*		else
* Line tgvectrex.c:2546: if
	LDD	G00145+0,PCR	variable Mode
	CMPD	#$01
	BNE	L00477	
* Line tgvectrex.c:2550: function call: Draw_highscore()
	LBSR	_Draw_highscore
* Line tgvectrex.c:2551: function call: Draw_last_game_score()
	LBSR	_Draw_last_game_score
* Line tgvectrex.c:2553: if
	LDD	G00141+0,PCR	variable flashing_intro_timer
	ADDD	#0	
	LBGT	L00478	
	LBRA	L00479	
L00478	EQU	*		then
* Line tgvectrex.c:2554: assignment: -=
	LDD	G00141+0,PCR	variable flashing_intro_timer
	SUBD	#$01		-= operator at tgvectrex.c:2554
	STD	G00141+0,PCR
* Line tgvectrex.c:2555: function call: setintensity()
	LDB	G00142+0,PCR	variable global_flashing_intensity, declared at tgvectrex.c:1282
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of setintensity(): unsigned char
	LBSR	_setintensity
	LEAS	2,S	
* Line tgvectrex.c:2556: if
	LDD	G00141+0,PCR	variable flashing_intro_timer, declared at tgvectrex.c:1281
	ADDD	#0	
	LBEQ	L00480	
	LBRA	L00481	
L00480	EQU	*		then
* Line tgvectrex.c:2557: assignment: =
	LDD	#$40		decimal 64 signed
	LDB	#$40	
	STB	G00138+0,PCR
* Line tgvectrex.c:2558: assignment: =
	LDD	#$CE		decimal 206 signed
	LDD	#$CE	
	STD	G00137+0,PCR
* Line tgvectrex.c:2559: assignment: =
	LDD	#$3C		decimal 60 signed
	LDD	#$3C	
	STD	G00144+0,PCR
L00481	EQU	*		else
L00482	EQU	*		end if
L00479	EQU	*		else
L00483	EQU	*		end if
* Line tgvectrex.c:2563: if
	LDD	G00144+0,PCR	variable hide_intro_timer, declared at tgvectrex.c:1285
	ADDD	#0	
	LBEQ	L00484	
	LBRA	L00485	
L00484	EQU	*		then
* Line tgvectrex.c:2565: function call: drawtgintro()
	LBSR	_drawtgintro
* Line tgvectrex.c:2575: if
	LDD	G00141+0,PCR	variable flashing_intro_timer, declared at tgvectrex.c:1281
	ADDD	#0	
	LBEQ	L00486	
	LBRA	L00487	
L00486	EQU	*		then
* Line tgvectrex.c:2576: assignment: -=
	LDB	G00138+0,PCR	variable intro_rot
	SUBB	#$02		-= operator at tgvectrex.c:2576
	STB	G00138+0,PCR
* Line tgvectrex.c:2577: assignment: -=
	LDD	G00137+0,PCR	variable intro_z
	SUBD	#$01		-= operator at tgvectrex.c:2577
	STD	G00137+0,PCR
* Line tgvectrex.c:2578: if
	LDD	G00137+0,PCR	variable intro_z
	CMPD	#$FF39	
	LBLT	L00488	
	LBRA	L00489	
L00488	EQU	*		then
* Line tgvectrex.c:2580: if
	LDD	G00165+0,PCR	variable stopintroflag
	CMPD	#$01
	BNE	L00491	
	LBRA	L00100		return (tgvectrex.c:2581)
L00491	EQU	*		else
L00492	EQU	*		end if
* Line tgvectrex.c:2583: assignment: =
	LDD	#$81		decimal 129 signed
	LDD	#$81	
	STD	G00141+0,PCR
* Line tgvectrex.c:2584: assignment: =
	CLRA
	CLRB
	CLRB
	STB	G00138+0,PCR
L00489	EQU	*		else
L00493	EQU	*		end if
L00487	EQU	*		else
L00494	EQU	*		end if
	LBRA	L00495		jump over else clause
L00485	EQU	*		else
* Line tgvectrex.c:2588: function call: setintensity()
	LDD	#$6E		decimal 110 signed
	PSHS	B,A		argument 1 of setintensity(): int
	LBSR	_setintensity
	LEAS	2,S	
* Line tgvectrex.c:2589: assignment: -=
	LDD	G00144+0,PCR	variable hide_intro_timer
	SUBD	#$01		-= operator at tgvectrex.c:2589
	STD	G00144+0,PCR
* Line tgvectrex.c:2590: if
	LDD	G00144+0,PCR	variable hide_intro_timer, declared at tgvectrex.c:1285
	ADDD	#0	
	LBEQ	L00496	
	LBRA	L00497	
L00496	EQU	*		then
* Line tgvectrex.c:2591: function call: Start_new_game()
	LBSR	_Start_new_game
* Line tgvectrex.c:2592: assignment: =
	LDD	#$02		decimal 2 signed
	LDD	#$02	
	STD	G00145+0,PCR
L00497	EQU	*		else
L00498	EQU	*		end if
L00495	EQU	*		end if
	LBRA	L00499		jump over else clause
L00477	EQU	*		else
* Line tgvectrex.c:2596: if
	LDD	G00145+0,PCR	variable Mode
	CMPD	#$02
	BNE	L00501	
* Line tgvectrex.c:2605: function call: Update_ships()
	LBSR	_Update_ships
* Line tgvectrex.c:2606: function call: Render_ships()
	LBSR	_Render_ships
* Line tgvectrex.c:2607: function call: Draw_highscore()
	LBSR	_Draw_highscore
* Line tgvectrex.c:2608: function call: Draw_last_game_score()
	LBSR	_Draw_last_game_score
* Line tgvectrex.c:2616: if
	LDD	#$02		decimal 2 unsigned
	PSHS	B,A	
	LDD	G00196+26,PCR	index 13 in array ships[]
	CLRA			promotion of binary operand
	LEAS	1,S		disregard MSB
	CMPB	,S+		compare with LSB
	LBHS	L00505	
	LBRA	L00503	
L00505	EQU	*
	LDD	#$02		decimal 2 unsigned
	PSHS	B,A	
	LDD	G00196+54,PCR	index 27 in array ships[]
	CLRA			promotion of binary operand
	LEAS	1,S		disregard MSB
	CMPB	,S+		compare with LSB
	LBHS	L00504	
	LBRA	L00503	
L00504	EQU	*
	LDD	#$02		decimal 2 unsigned
	PSHS	B,A	
	LDD	G00196+82,PCR	index 41 in array ships[]
	CLRA			promotion of binary operand
	LEAS	1,S		disregard MSB
	CMPB	,S+		compare with LSB
	LBHS	L00502	
	LBRA	L00503	
L00502	EQU	*		then
* Line tgvectrex.c:2619: assignment: =
	LDD	#$C8		decimal 200 signed
	LDD	#$C8	
	STD	G00139+0,PCR
* Line tgvectrex.c:2620: assignment: =
	LDD	#$03		decimal 3 signed
	LDD	#$03	
	STD	G00145+0,PCR
L00503	EQU	*		else
L00506	EQU	*		end if
	LBRA	L00507		jump over else clause
L00501	EQU	*		else
* Line tgvectrex.c:2629: if
	LDD	G00145+0,PCR	variable Mode
	CMPD	#$03
	BNE	L00509	
* Line tgvectrex.c:2634: function call: Draw_highscore()
	LBSR	_Draw_highscore
* Line tgvectrex.c:2635: function call: Draw_last_game_score()
	LBSR	_Draw_last_game_score
* Line tgvectrex.c:2636: function call: InsertCoin()
	LBSR	_InsertCoin
* Line tgvectrex.c:2637: assignment: -=
	LDD	G00139+0,PCR	variable insertcoin_mode_timer
	SUBD	#$01		-= operator at tgvectrex.c:2637
	STD	G00139+0,PCR
* Line tgvectrex.c:2638: if
	LDD	G00139+0,PCR	variable insertcoin_mode_timer, declared at tgvectrex.c:1277
	ADDD	#0	
	LBEQ	L00510	
	LBRA	L00511	
L00510	EQU	*		then
* Line tgvectrex.c:2639: assignment: =
	CLRA
	CLRB
	LDD	#$00	
	STD	G00145+0,PCR
L00511	EQU	*		else
L00512	EQU	*		end if
	LBRA	L00513		jump over else clause
L00509	EQU	*		else
* Line tgvectrex.c:2642: if
	LDD	G00145+0,PCR	variable Mode
	CMPD	#$04
	BNE	L00515	
* Line tgvectrex.c:2646: function call: Draw_highscore()
	LBSR	_Draw_highscore
* Line tgvectrex.c:2647: function call: Draw_last_game_score()
	LBSR	_Draw_last_game_score
* Line tgvectrex.c:2649: if
	LDB	G00136+0,PCR	variable Credits, declared at tgvectrex.c:1267
	TSTB
	LBNE	L00516	
	LBRA	L00517	
L00516	EQU	*		then
* Line tgvectrex.c:2650: assignment: =
	LDD	#$02		decimal 2 signed
	LDD	#$02	
	STD	G00165+0,PCR
* Line tgvectrex.c:2651: function call: Draw_credits()
	LBSR	_Draw_credits
* Line tgvectrex.c:2652: function call: Press_start()
	LBSR	_Press_start
* Line tgvectrex.c:2654: if
	LDB	G00108+0,PCR	variable Pressed_Key
	CMPB	#$31
	BNE	L00519	
* Line tgvectrex.c:2655: assignment: =
	CLRA
	CLRB
	CLRB
	STB	G00108+0,PCR
* Line tgvectrex.c:2656: assignment: -=
	LDB	G00136+0,PCR	variable Credits
	SUBB	#$01		-= operator at tgvectrex.c:2656
	STB	G00136+0,PCR
* Line tgvectrex.c:2657: function call: Start_new_game()
	LBSR	_Start_new_game
* Line tgvectrex.c:2658: assignment: =
	LDD	#$05		decimal 5 signed
	LDD	#$05	
	STD	G00145+0,PCR
L00519	EQU	*		else
L00520	EQU	*		end if
	LBRA	L00521		jump over else clause
L00517	EQU	*		else
L00521	EQU	*		end if
	LBRA	L00522		jump over else clause
L00515	EQU	*		else
* Line tgvectrex.c:2672: if
	LDD	G00145+0,PCR	variable Mode
	CMPD	#$05
	BNE	L00524	
* Line tgvectrex.c:2674: function call: draw_crosshair()
* Line tgvectrex.c:2674: function call: mouseY()
	LBSR	_mouseY	
	PSHS	B,A		argument 2 of draw_crosshair(): int
* Line tgvectrex.c:2674: function call: mouseX()
	LBSR	_mouseX	
	PSHS	B,A		argument 1 of draw_crosshair(): int
	LBSR	_draw_crosshair
	LEAS	4,S	
* Line tgvectrex.c:2676: if
	LDB	G00108+0,PCR	variable Pressed_Key
	CMPB	#$20	
	LBEQ	L00527	
	LBRA	L00529	
L00529	EQU	*
	LDB	G00108+0,PCR	variable Pressed_Key
	CMPB	#$09	
	LBEQ	L00527	
	LBRA	L00528	
L00528	EQU	*
	LDB	G00112+0,PCR	variable mouse_shields, declared at tgvectrex.c:142
	TSTB
	LBNE	L00527	
	LBRA	L00526	
L00527	EQU	*
	LDD	G00154+0,PCR	variable Shields
	ADDD	#0	
	LBGT	L00525	
	LBRA	L00526	
L00525	EQU	*		then
* Line tgvectrex.c:2677: assignment: =
	CLRA
	CLRB
	CLRB
	STB	G00108+0,PCR
* Line tgvectrex.c:2678: assignment: =
	LDD	#$01		decimal 1 signed
	LDD	#$01	
	STD	G00153+0,PCR
	LBRA	L00530		jump over else clause
L00526	EQU	*		else
* Line tgvectrex.c:2680: assignment: =
	CLRA
	CLRB
	LDD	#$00	
	STD	G00153+0,PCR
L00530	EQU	*		end if
* Line tgvectrex.c:2684: if
	LDD	G00153+0,PCR	variable UsingShields
	CMPD	#$01
	BNE	L00532	
* Line tgvectrex.c:2685: function call: Shield()
	LBSR	_Shield	
	LBRA	L00533		jump over else clause
L00532	EQU	*		else
* Line tgvectrex.c:2687: assignment: =
	CLRA
	CLRB
	LDD	#$00	
	STD	G00156+0,PCR
L00533	EQU	*		end if
* Line tgvectrex.c:2690: function call: Update_ships()
	LBSR	_Update_ships
* Line tgvectrex.c:2692: if
	LDD	G00152+0,PCR	variable Score
	CMPD	G00150+0,PCR	variable HighScore
	LBGT	L00534	
	LBRA	L00535	
L00534	EQU	*		then
* Line tgvectrex.c:2692: assignment: =
	LDD	G00152+0,PCR	variable Score, declared at tgvectrex.c:1300
	LDD	G00152+0,PCR
	STD	G00150+0,PCR
L00535	EQU	*		else
L00536	EQU	*		end if
* Line tgvectrex.c:2693: function call: Render_ships()
	LBSR	_Render_ships
* Line tgvectrex.c:2694: function call: Render_lasers()
	LBSR	_Render_lasers
* Line tgvectrex.c:2696: function call: Draw_score()
	LBSR	_Draw_score
* Line tgvectrex.c:2697: function call: Draw_ShipsPassedTotal()
	LBSR	_Draw_ShipsPassedTotal
* Line tgvectrex.c:2698: function call: Draw_shields_left()
	LBSR	_Draw_shields_left
* Line tgvectrex.c:2703: if
	LDD	#$02		decimal 2 unsigned
	PSHS	B,A	
	LDD	G00196+26,PCR	index 13 in array ships[]
	CLRA			promotion of binary operand
	LEAS	1,S		disregard MSB
	CMPB	,S+		compare with LSB
	LBHS	L00540	
	LBRA	L00538	
L00540	EQU	*
	LDD	#$02		decimal 2 unsigned
	PSHS	B,A	
	LDD	G00196+54,PCR	index 27 in array ships[]
	CLRA			promotion of binary operand
	LEAS	1,S		disregard MSB
	CMPB	,S+		compare with LSB
	LBHS	L00539	
	LBRA	L00538	
L00539	EQU	*
	LDD	#$02		decimal 2 unsigned
	PSHS	B,A	
	LDD	G00196+82,PCR	index 41 in array ships[]
	CLRA			promotion of binary operand
	LEAS	1,S		disregard MSB
	CMPB	,S+		compare with LSB
	LBHS	L00537	
	LBRA	L00538	
L00537	EQU	*		then
* Line tgvectrex.c:2706: if
	LDD	G00157+0,PCR	variable ShipsPassedThisWave
	ADDD	#0	
	LBGT	L00541	
	LBRA	L00542	
L00541	EQU	*		then
* Line tgvectrex.c:2707: assignment: =
	LDD	#$32		decimal 50 signed
	LDD	#$32	
	STD	G00140+0,PCR
* Line tgvectrex.c:2708: assignment: =
	LDD	#$06		decimal 6 signed
	LDD	#$06	
	STD	G00145+0,PCR
	LBRA	L00543		jump over else clause
L00542	EQU	*		else
* Line tgvectrex.c:2712: if
	LDD	G00158+0,PCR	variable ShipsPassedTotal
	CMPD	#$0A	
	LBLT	L00544	
	LBRA	L00545	
L00544	EQU	*		then
* Line tgvectrex.c:2713: function call: Start_attack_wave()
	LBSR	_Start_attack_wave
* Line tgvectrex.c:2714: assignment: =
	LDD	#$05		decimal 5 signed
	LDD	#$05	
	STD	G00145+0,PCR
	LBRA	L00546		jump over else clause
L00545	EQU	*		else
* Line tgvectrex.c:2716: if
	LDB	G00136+0,PCR	variable Credits, declared at tgvectrex.c:1267
	TSTB
	LBNE	L00547	
	LBRA	L00548	
L00547	EQU	*		then
* Line tgvectrex.c:2717: assignment: =
	LDD	#$04		decimal 4 signed
	LDD	#$04	
	STD	G00145+0,PCR
	LBRA	L00549		jump over else clause
L00548	EQU	*		else
* Line tgvectrex.c:2719: assignment: =
	CLRA
	CLRB
	LDD	#$00	
	STD	G00145+0,PCR
* Line tgvectrex.c:2720: assignment: =
	LDD	G00152+0,PCR	variable Score, declared at tgvectrex.c:1300
	LDD	G00152+0,PCR
	STD	G00151+0,PCR
L00549	EQU	*		end if
L00546	EQU	*		end if
L00543	EQU	*		end if
L00538	EQU	*		else
L00550	EQU	*		end if
	LBRA	L00551		jump over else clause
L00524	EQU	*		else
* Line tgvectrex.c:2726: if
	LDD	G00145+0,PCR	variable Mode
	CMPD	#$06
	BNE	L00553	
* Line tgvectrex.c:2730: function call: Draw_score()
	LBSR	_Draw_score
* Line tgvectrex.c:2731: function call: Draw_ShipsPassedTotal()
	LBSR	_Draw_ShipsPassedTotal
* Line tgvectrex.c:2732: function call: Draw_shields_left()
	LBSR	_Draw_shields_left
* Line tgvectrex.c:2734: if
	LDD	G00140+0,PCR	variable passing_mode_timer
	ADDD	#0	
	LBGT	L00554	
	LBRA	L00555	
L00554	EQU	*		then
* Line tgvectrex.c:2735: assignment: -=
	LDD	G00140+0,PCR	variable passing_mode_timer
	SUBD	#$01		-= operator at tgvectrex.c:2735
	STD	G00140+0,PCR
* Line tgvectrex.c:2736: if
	LDD	G00140+0,PCR	variable passing_mode_timer, declared at tgvectrex.c:1279
	ADDD	#0	
	LBEQ	L00556	
	LBRA	L00557	
L00556	EQU	*		then
* Line tgvectrex.c:2737: if
	LDD	G00158+0,PCR	variable ShipsPassedTotal
	CMPD	#$0A	
	LBLT	L00558	
	LBRA	L00559	
L00558	EQU	*		then
* Line tgvectrex.c:2738: function call: Start_attack_wave()
	LBSR	_Start_attack_wave
* Line tgvectrex.c:2739: assignment: =
	LDD	#$05		decimal 5 signed
	LDD	#$05	
	STD	G00145+0,PCR
	LBRA	L00560		jump over else clause
L00559	EQU	*		else
* Line tgvectrex.c:2741: if
	LDB	G00136+0,PCR	variable Credits, declared at tgvectrex.c:1267
	TSTB
	LBNE	L00561	
	LBRA	L00562	
L00561	EQU	*		then
* Line tgvectrex.c:2742: assignment: =
	LDD	#$04		decimal 4 signed
	LDD	#$04	
	STD	G00145+0,PCR
	LBRA	L00563		jump over else clause
L00562	EQU	*		else
* Line tgvectrex.c:2744: assignment: =
	CLRA
	CLRB
	LDD	#$00	
	STD	G00145+0,PCR
* Line tgvectrex.c:2745: assignment: =
	LDD	G00152+0,PCR	variable Score, declared at tgvectrex.c:1300
	LDD	G00152+0,PCR
	STD	G00151+0,PCR
L00563	EQU	*		end if
L00560	EQU	*		end if
L00557	EQU	*		else
L00564	EQU	*		end if
L00555	EQU	*		else
L00565	EQU	*		end if
	LBRA	L00566		jump over else clause
L00553	EQU	*		else
L00566	EQU	*		end if
L00551	EQU	*		end if
L00522	EQU	*		end if
L00513	EQU	*		end if
L00507	EQU	*		end if
L00499	EQU	*		end if
L00475	EQU	*		end if
* Line tgvectrex.c:2755: function call: debug_ship()
	CLRA
	CLRB
	PSHS	B,A		argument 1 of debug_ship(): int
	LBSR	_debug_ship
	LEAS	2,S	
* Line tgvectrex.c:2755: function call: debug_ship()
	LDD	#$01		decimal 1 signed
	PSHS	B,A		argument 1 of debug_ship(): int
	LBSR	_debug_ship
	LEAS	2,S	
* Line tgvectrex.c:2755: function call: debug_ship()
	LDD	#$02		decimal 2 signed
	PSHS	B,A		argument 1 of debug_ship(): int
	LBSR	_debug_ship
	LEAS	2,S	
L00100	EQU	*		end of playTailgunner()
	RTS
* END FUNCTION


*******************************************************************************

* FUNCTION plot_fire(): defined at tgvectrex.c:1583
_plot_fire	EQU	*
	PSHS	U	
	LEAU	,S	
	LEAS	-22,S	
* Line tgvectrex.c:1594: assignment: =
	LDD	6,U		variable x1, declared at tgvectrex.c:1583
	PSHS	B,A	
	LDD	10,U		variable x2, declared at tgvectrex.c:1583
	SUBD	,S++	
	STD	-20,U	
* Line tgvectrex.c:1595: assignment: =
	LDD	8,U		variable y1, declared at tgvectrex.c:1583
	PSHS	B,A	
	LDD	12,U		variable y2, declared at tgvectrex.c:1583
	SUBD	,S++	
	STD	-18,U	
* Line tgvectrex.c:1596: assignment: =
	LDD	-20,U		variable dx
	ADDD	#0	
	LBGE	L00567		if true
	CLRB
	BRA	L00568		false
L00567	EQU	*
	LDB	#1	
L00568	EQU	*
	TSTB
	LBEQ	L00569		if conditional expression is false
	LDD	-20,U		variable dx, declared at tgvectrex.c:1593
	LBRA	L00570		end of true expression of conditional
L00569	EQU	*
	LDD	-20,U		variable dx, declared at tgvectrex.c:1593
	COMA
	COMB
	ADDD	#1	
L00570	EQU	*
	STD	-12,U	
* Line tgvectrex.c:1597: assignment: =
	LDD	-18,U		variable dy
	ADDD	#0	
	LBGE	L00571		if true
	CLRB
	BRA	L00572		false
L00571	EQU	*
	LDB	#1	
L00572	EQU	*
	TSTB
	LBEQ	L00573		if conditional expression is false
	LDD	-18,U		variable dy, declared at tgvectrex.c:1593
	LBRA	L00574		end of true expression of conditional
L00573	EQU	*
	LDD	-18,U		variable dy, declared at tgvectrex.c:1593
	COMA
	COMB
	ADDD	#1	
L00574	EQU	*
	STD	-10,U	
* Line tgvectrex.c:1598: assignment: =
	LDD	-20,U		variable dx
	ADDD	#0	
	LBLT	L00575		if true
	CLRB
	BRA	L00576		false
L00575	EQU	*
	LDB	#1	
L00576	EQU	*
	TSTB
	LBEQ	L00577		if conditional expression is false
	LDD	#$FFFF		constant expression: 65535 decimal
	LBRA	L00578		end of true expression of conditional
L00577	EQU	*
	LDD	-20,U		variable dx
	ADDD	#0	
	LBGT	L00579		if true
	CLRB
	BRA	L00580		false
L00579	EQU	*
	LDB	#1	
L00580	EQU	*
	TSTB
	LBEQ	L00581		if conditional expression is false
	LDD	#$01		decimal 1 signed
	LBRA	L00582		end of true expression of conditional
L00581	EQU	*
	CLRA
	CLRB
L00582	EQU	*
	SEX			cast from byte (conditional expression)
L00578	EQU	*
	SEX
	STD	-16,U	
* Line tgvectrex.c:1599: assignment: =
	LDD	-18,U		variable dy
	ADDD	#0	
	LBLT	L00583		if true
	CLRB
	BRA	L00584		false
L00583	EQU	*
	LDB	#1	
L00584	EQU	*
	TSTB
	LBEQ	L00585		if conditional expression is false
	LDD	#$FFFF		constant expression: 65535 decimal
	LBRA	L00586		end of true expression of conditional
L00585	EQU	*
	LDD	-18,U		variable dy
	ADDD	#0	
	LBGT	L00587		if true
	CLRB
	BRA	L00588		false
L00587	EQU	*
	LDB	#1	
L00588	EQU	*
	TSTB
	LBEQ	L00589		if conditional expression is false
	LDD	#$01		decimal 1 signed
	LBRA	L00590		end of true expression of conditional
L00589	EQU	*
	CLRA
	CLRB
L00590	EQU	*
	SEX			cast from byte (conditional expression)
L00586	EQU	*
	SEX
	STD	-14,U	
* Line tgvectrex.c:1600: assignment: =
	LDD	-10,U		variable dyabs, declared at tgvectrex.c:1593
	ASRA
	RORB
	STD	-8,U	
* Line tgvectrex.c:1601: assignment: =
	LDD	-12,U		variable dxabs, declared at tgvectrex.c:1593
	ASRA
	RORB
	STD	-6,U	
* Line tgvectrex.c:1602: assignment: =
	LDD	6,U		variable x1, declared at tgvectrex.c:1583
	LDD	6,U	
	STD	-4,U	
* Line tgvectrex.c:1603: assignment: =
	LDD	8,U		variable y1, declared at tgvectrex.c:1583
	LDD	8,U	
	STD	-2,U	
* Line tgvectrex.c:1614: function call: Display_Vectrex_point()
	LDD	-2,U		variable py, declared at tgvectrex.c:1593
	PSHS	B,A		argument 2 of Display_Vectrex_point(): int
	LDD	-4,U		variable px, declared at tgvectrex.c:1593
	PSHS	B,A		argument 1 of Display_Vectrex_point(): int
	LBSR	_Display_Vectrex_point
	LEAS	4,S	
* Line tgvectrex.c:1616: if
	LDD	-12,U		variable dxabs
	CMPD	-10,U		variable dyabs
	LBGE	L00591	
	LBRA	L00592	
L00591	EQU	*		then
* Line tgvectrex.c:1618: for init
* Line tgvectrex.c:1618: assignment: =
	CLRA
	CLRB
	LDD	#$00	
	STD	-22,U	
	LBRA	L00594		jump to for condition
L00593	EQU	*
* Line tgvectrex.c:1618: for body
* Line tgvectrex.c:1620: assignment: +=
	LDD	-6,U		variable y
	ADDD	-10,U		variable dyabs
	STD	-6,U		variable y
* Line tgvectrex.c:1621: if
	LDD	-6,U		variable y
	CMPD	-12,U		variable dxabs
	LBGE	L00597	
	LBRA	L00598	
L00597	EQU	*		then
* Line tgvectrex.c:1623: assignment: -=
	LDD	-6,U		variable y
	SUBD	-12,U		variable dxabs
	STD	-6,U		variable y
* Line tgvectrex.c:1624: assignment: +=
	LDD	-2,U		variable py
	ADDD	-14,U		variable sdy
	STD	-2,U		variable py
L00598	EQU	*		else
L00599	EQU	*		end if
* Line tgvectrex.c:1626: assignment: +=
	LDD	-4,U		variable px
	ADDD	-16,U		variable sdx
	STD	-4,U		variable px
* Line tgvectrex.c:1627: if
	LDD	-22,U		variable i
	CMPD	#$19
	BGT	L00601	
* Line tgvectrex.c:1628: function call: Display_Vectrex_point()
	LDD	-2,U		variable py, declared at tgvectrex.c:1593
	PSHS	B,A		argument 2 of Display_Vectrex_point(): int
	LDD	-4,U		variable px, declared at tgvectrex.c:1593
	PSHS	B,A		argument 1 of Display_Vectrex_point(): int
	LBSR	_Display_Vectrex_point
	LEAS	4,S	
* Line tgvectrex.c:1629: assignment: =
	LDD	-4,U		variable px, declared at tgvectrex.c:1593
	PSHS	B,A	
	LEAX	G00199+0,PCR	address of array firex
	LDD	4,U		variable lr
	LSLB
	ROLA
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
* Line tgvectrex.c:1629: assignment: =
	LDD	-2,U		variable py, declared at tgvectrex.c:1593
	PSHS	B,A	
	LEAX	G00200+0,PCR	address of array firey
	LDD	4,U		variable lr
	LSLB
	ROLA
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
L00601	EQU	*		else
L00602	EQU	*		end if
* Line tgvectrex.c:1631: if
	LDD	-22,U		variable i
	CMPD	#$32
	BNE	L00604	
* Line tgvectrex.c:1631: assignment: =
	LDD	-4,U		variable px, declared at tgvectrex.c:1593
	PSHS	B,A	
	LEAX	G00199+0,PCR	address of array firex
	LDD	4,U		variable lr
	LSLB
	ROLA
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
* Line tgvectrex.c:1631: assignment: =
	LDD	-2,U		variable py, declared at tgvectrex.c:1593
	PSHS	B,A	
	LEAX	G00200+0,PCR	address of array firey
	LDD	4,U		variable lr
	LSLB
	ROLA
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
L00604	EQU	*		else
L00605	EQU	*		end if
L00595	EQU	*
* Line tgvectrex.c:1618: for increment(s)
	LDD	-22,U	
	ADDD	#1	
	STD	-22,U	
L00594	EQU	*
* Line tgvectrex.c:1618: for condition
	LDD	-22,U		variable i
	CMPD	-12,U		variable dxabs
	LBLT	L00593	
	LBRA	L00596	
L00596	EQU	*		end for
	LBRA	L00606		jump over else clause
L00592	EQU	*		else
* Line tgvectrex.c:1636: for init
* Line tgvectrex.c:1636: assignment: =
	CLRA
	CLRB
	LDD	#$00	
	STD	-22,U	
	LBRA	L00608		jump to for condition
L00607	EQU	*
* Line tgvectrex.c:1636: for body
* Line tgvectrex.c:1638: assignment: +=
	LDD	-8,U		variable x
	ADDD	-12,U		variable dxabs
	STD	-8,U		variable x
* Line tgvectrex.c:1639: if
	LDD	-8,U		variable x
	CMPD	-10,U		variable dyabs
	LBGE	L00611	
	LBRA	L00612	
L00611	EQU	*		then
* Line tgvectrex.c:1641: assignment: -=
	LDD	-8,U		variable x
	SUBD	-10,U		variable dyabs
	STD	-8,U		variable x
* Line tgvectrex.c:1642: assignment: +=
	LDD	-4,U		variable px
	ADDD	-16,U		variable sdx
	STD	-4,U		variable px
L00612	EQU	*		else
L00613	EQU	*		end if
* Line tgvectrex.c:1644: assignment: +=
	LDD	-2,U		variable py
	ADDD	-14,U		variable sdy
	STD	-2,U		variable py
* Line tgvectrex.c:1645: if
	LDD	-22,U		variable i
	CMPD	#$19
	BGT	L00615	
* Line tgvectrex.c:1646: function call: Display_Vectrex_point()
	LDD	-2,U		variable py, declared at tgvectrex.c:1593
	PSHS	B,A		argument 2 of Display_Vectrex_point(): int
	LDD	-4,U		variable px, declared at tgvectrex.c:1593
	PSHS	B,A		argument 1 of Display_Vectrex_point(): int
	LBSR	_Display_Vectrex_point
	LEAS	4,S	
* Line tgvectrex.c:1647: assignment: =
	LDD	-4,U		variable px, declared at tgvectrex.c:1593
	PSHS	B,A	
	LEAX	G00199+0,PCR	address of array firex
	LDD	4,U		variable lr
	LSLB
	ROLA
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
* Line tgvectrex.c:1647: assignment: =
	LDD	-2,U		variable py, declared at tgvectrex.c:1593
	PSHS	B,A	
	LEAX	G00200+0,PCR	address of array firey
	LDD	4,U		variable lr
	LSLB
	ROLA
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
L00615	EQU	*		else
L00616	EQU	*		end if
* Line tgvectrex.c:1649: if
	LDD	-22,U		variable i
	CMPD	#$32
	BNE	L00618	
* Line tgvectrex.c:1649: assignment: =
	LDD	-4,U		variable px, declared at tgvectrex.c:1593
	PSHS	B,A	
	LEAX	G00199+0,PCR	address of array firex
	LDD	4,U		variable lr
	LSLB
	ROLA
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
* Line tgvectrex.c:1649: assignment: =
	LDD	-2,U		variable py, declared at tgvectrex.c:1593
	PSHS	B,A	
	LEAX	G00200+0,PCR	address of array firey
	LDD	4,U		variable lr
	LSLB
	ROLA
	LEAX	D,X		add byte offset
	LDD	,S++	
	STD	,X	
L00618	EQU	*		else
L00619	EQU	*		end if
L00609	EQU	*
* Line tgvectrex.c:1636: for increment(s)
	LDD	-22,U	
	ADDD	#1	
	STD	-22,U	
L00608	EQU	*
* Line tgvectrex.c:1636: for condition
	LDD	-22,U		variable i
	CMPD	-10,U		variable dyabs
	LBLT	L00607	
	LBRA	L00610	
L00610	EQU	*		end for
L00606	EQU	*		end if
* Line tgvectrex.c:1652: return with value
	LDD	-22,U		variable i
	CMPD	#$1E	
	LBLE	L00620		if true
	CLRB
	BRA	L00621		false
L00620	EQU	*
	LDB	#1	
L00621	EQU	*
	LBRA	L00040		return (tgvectrex.c:1652)
L00040	EQU	*		end of plot_fire()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION plot_star(): defined at tgvectrex.c:1542
_plot_star	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:1544: function call: starplot()
	LEAX	G00198+0,PCR	address of array py
	LDD	4,U		variable starno
	LSLB
	ROLA
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	PSHS	B,A		argument 2 of starplot(): int
	LEAX	G00197+0,PCR	address of array px
	LDD	4,U		variable starno
	LSLB
	ROLA
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	PSHS	B,A		argument 1 of starplot(): int
	LBSR	_starplot
	LEAS	4,S	
L00037	EQU	*		end of plot_star()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION post_graphics_initialisation(): defined at tgvectrex.c:2797
_post_graphics_initialisation	EQU	*
* Line tgvectrex.c:2799: assignment: =
	LDX	G00113+0,PCR	left
	LDD	#$02		right
	LBSR	SDIV16	
	TFR	X,D		quotient
	STD	G00115+0,PCR
* Line tgvectrex.c:2799: assignment: =
	LDX	G00114+0,PCR	left
	LDD	#$02		right
	LBSR	SDIV16	
	TFR	X,D		quotient
	STD	G00116+0,PCR
* Line tgvectrex.c:2800: function call: putPenUp()
	LBSR	_putPenUp
* Line tgvectrex.c:2801: function call: init_stars()
	LBSR	_init_stars
L00102	EQU	*		end of post_graphics_initialisation()
	RTS
* END FUNCTION


*******************************************************************************

* FUNCTION pre_graphics_initialisation(): defined at tgvectrex.c:2758
_pre_graphics_initialisation	EQU	*
* Line tgvectrex.c:2771: assignment: =
	LDD	#$01		decimal 1 signed
	LDB	#$01	
	STB	G00206+0,PCR
* Line tgvectrex.c:2776: assignment: =
	LDD	#$6E		decimal 110 unsigned
	LDB	#$6E	
	STB	G00107+0,PCR
* Line tgvectrex.c:2792: assignment: =
* Line tgvectrex.c:2792: assignment: =
	LDD	#$1E		decimal 30 signed
	LDD	#$1E	
	STD	G00104+0,PCR
	STD	G00105+0,PCR
L00101	EQU	*		end of pre_graphics_initialisation()
	RTS
* END FUNCTION


*******************************************************************************

* FUNCTION putPenDown(): defined at tgvectrex.c:867
_putPenDown	EQU	*
* Line tgvectrex.c:869: assignment: =
	LDD	#$01		decimal 1 signed
	LDB	#$01	
	STB	G00133+0,PCR
L00011	EQU	*		end of putPenDown()
	RTS
* END FUNCTION


*******************************************************************************

* FUNCTION putPenUp(): defined at tgvectrex.c:872
_putPenUp	EQU	*
* Line tgvectrex.c:874: assignment: =
	CLRA
	CLRB
	CLRB
	STB	G00133+0,PCR
L00012	EQU	*		end of putPenUp()
	RTS
* END FUNCTION


*******************************************************************************

* FUNCTION q15_div(): defined at tgvectrex.c:1086
_q15_div	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:1088: if
	LDD	4,U		variable numer
	ADDD	#0	
	LBLT	L00624	
	LBRA	L00623	
L00624	EQU	*
	LDD	6,U		variable denom
	ADDD	#0	
	LBLT	L00622	
	LBRA	L00623	
L00622	EQU	*		then
* Line tgvectrex.c:1088: return with value
* Line tgvectrex.c:1088: function call: muldiv()
	LDD	6,U		variable denom, declared at tgvectrex.c:1086
	COMA
	COMB
	ADDD	#1	
	PSHS	B,A		argument 3 of muldiv(): int
	LDD	#$8000		constant expression: 32768 decimal
	PSHS	B,A		argument 2 of muldiv(): int
	LDD	4,U		variable numer, declared at tgvectrex.c:1086
	COMA
	COMB
	ADDD	#1	
	PSHS	B,A		argument 1 of muldiv(): int
	LBSR	_muldiv	
	LEAS	6,S	
	LBRA	L00022		return (tgvectrex.c:1088)
L00623	EQU	*		else
L00625	EQU	*		end if
* Line tgvectrex.c:1089: if
	LDD	4,U		variable numer
	ADDD	#0	
	LBLT	L00626	
	LBRA	L00627	
L00626	EQU	*		then
* Line tgvectrex.c:1089: return with value
* Line tgvectrex.c:1089: function call: muldiv()
	LDD	6,U		variable denom, declared at tgvectrex.c:1086
	PSHS	B,A		argument 3 of muldiv(): int
	LDD	#$8000		constant expression: 32768 decimal
	PSHS	B,A		argument 2 of muldiv(): int
	LDD	4,U		variable numer, declared at tgvectrex.c:1086
	COMA
	COMB
	ADDD	#1	
	PSHS	B,A		argument 1 of muldiv(): int
	LBSR	_muldiv	
	LEAS	6,S	
	COMA
	COMB
	ADDD	#1	
	LBRA	L00022		return (tgvectrex.c:1089)
L00627	EQU	*		else
L00628	EQU	*		end if
* Line tgvectrex.c:1090: if
	LDD	6,U		variable denom
	ADDD	#0	
	LBLT	L00629	
	LBRA	L00630	
L00629	EQU	*		then
* Line tgvectrex.c:1090: return with value
* Line tgvectrex.c:1090: function call: muldiv()
	LDD	6,U		variable denom, declared at tgvectrex.c:1086
	COMA
	COMB
	ADDD	#1	
	PSHS	B,A		argument 3 of muldiv(): int
	LDD	#$8000		constant expression: 32768 decimal
	PSHS	B,A		argument 2 of muldiv(): int
	LDD	4,U		variable numer, declared at tgvectrex.c:1086
	PSHS	B,A		argument 1 of muldiv(): int
	LBSR	_muldiv	
	LEAS	6,S	
	COMA
	COMB
	ADDD	#1	
	LBRA	L00022		return (tgvectrex.c:1090)
L00630	EQU	*		else
L00631	EQU	*		end if
* Line tgvectrex.c:1091: return with value
* Line tgvectrex.c:1091: function call: muldiv()
	LDD	6,U		variable denom, declared at tgvectrex.c:1086
	PSHS	B,A		argument 3 of muldiv(): int
	LDD	#$8000		constant expression: 32768 decimal
	PSHS	B,A		argument 2 of muldiv(): int
	LDD	4,U		variable numer, declared at tgvectrex.c:1086
	PSHS	B,A		argument 1 of muldiv(): int
	LBSR	_muldiv	
	LEAS	6,S	
	LBRA	L00022		return (tgvectrex.c:1091)
L00022	EQU	*		end of q15_div()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION q15_mul(): defined at tgvectrex.c:1077
_q15_mul	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:1080: if
	LDD	4,U		variable j
	ADDD	#0	
	LBLT	L00634	
	LBRA	L00633	
L00634	EQU	*
	LDD	6,U		variable k
	ADDD	#0	
	LBLT	L00632	
	LBRA	L00633	
L00632	EQU	*		then
* Line tgvectrex.c:1080: return with value
* Line tgvectrex.c:1080: function call: muldiv()
	LDD	#$8000		constant expression: 32768 decimal
	PSHS	B,A		argument 3 of muldiv(): int
	LDD	6,U		variable k, declared at tgvectrex.c:1077
	COMA
	COMB
	ADDD	#1	
	PSHS	B,A		argument 2 of muldiv(): int
	LDD	4,U		variable j, declared at tgvectrex.c:1077
	COMA
	COMB
	ADDD	#1	
	PSHS	B,A		argument 1 of muldiv(): int
	LBSR	_muldiv	
	LEAS	6,S	
	LBRA	L00021		return (tgvectrex.c:1080)
L00633	EQU	*		else
L00635	EQU	*		end if
* Line tgvectrex.c:1081: if
	LDD	4,U		variable j
	ADDD	#0	
	LBLT	L00636	
	LBRA	L00637	
L00636	EQU	*		then
* Line tgvectrex.c:1081: return with value
* Line tgvectrex.c:1081: function call: muldiv()
	LDD	#$8000		constant expression: 32768 decimal
	PSHS	B,A		argument 3 of muldiv(): int
	LDD	6,U		variable k, declared at tgvectrex.c:1077
	PSHS	B,A		argument 2 of muldiv(): int
	LDD	4,U		variable j, declared at tgvectrex.c:1077
	COMA
	COMB
	ADDD	#1	
	PSHS	B,A		argument 1 of muldiv(): int
	LBSR	_muldiv	
	LEAS	6,S	
	COMA
	COMB
	ADDD	#1	
	LBRA	L00021		return (tgvectrex.c:1081)
L00637	EQU	*		else
L00638	EQU	*		end if
* Line tgvectrex.c:1082: if
	LDD	6,U		variable k
	ADDD	#0	
	LBLT	L00639	
	LBRA	L00640	
L00639	EQU	*		then
* Line tgvectrex.c:1082: return with value
* Line tgvectrex.c:1082: function call: muldiv()
	LDD	#$8000		constant expression: 32768 decimal
	PSHS	B,A		argument 3 of muldiv(): int
	LDD	6,U		variable k, declared at tgvectrex.c:1077
	COMA
	COMB
	ADDD	#1	
	PSHS	B,A		argument 2 of muldiv(): int
	LDD	4,U		variable j, declared at tgvectrex.c:1077
	PSHS	B,A		argument 1 of muldiv(): int
	LBSR	_muldiv	
	LEAS	6,S	
	COMA
	COMB
	ADDD	#1	
	LBRA	L00021		return (tgvectrex.c:1082)
L00640	EQU	*		else
L00641	EQU	*		end if
* Line tgvectrex.c:1083: return with value
* Line tgvectrex.c:1083: function call: muldiv()
	LDD	#$8000		constant expression: 32768 decimal
	PSHS	B,A		argument 3 of muldiv(): int
	LDD	6,U		variable k, declared at tgvectrex.c:1077
	PSHS	B,A		argument 2 of muldiv(): int
	LDD	4,U		variable j, declared at tgvectrex.c:1077
	PSHS	B,A		argument 1 of muldiv(): int
	LBSR	_muldiv	
	LEAS	6,S	
	LBRA	L00021		return (tgvectrex.c:1083)
L00021	EQU	*		end of q15_mul()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION s16_nabs(): defined at tgvectrex.c:1031
_s16_nabs	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:1039: return with value
	LDD	4,U		variable j
	ADDD	#0	
	LBLT	L00642		if true
	CLRB
	BRA	L00643		false
L00642	EQU	*
	LDB	#1	
L00643	EQU	*
	TSTB
	LBEQ	L00644		if conditional expression is false
	LDD	4,U		variable j, declared at tgvectrex.c:1031
	LBRA	L00645		end of true expression of conditional
L00644	EQU	*
	LDD	4,U		variable j, declared at tgvectrex.c:1031
	COMA
	COMB
	ADDD	#1	
L00645	EQU	*
	LBRA	L00019		return (tgvectrex.c:1039)
L00019	EQU	*		end of s16_nabs()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION segment(): defined at tgvectrex.c:1830
_segment	EQU	*
	PSHS	U	
	LEAU	,S	
	LEAS	-12,S	
* Line tgvectrex.c:1841: assignment: =
	LDB	5,U		variable coords
	ANDB	#$0F	
	CLRA
	STD	-2,U	
* Line tgvectrex.c:1842: assignment: =
	LDX	-2,U		left
	LDD	#$05		right
	LBSR	SDIV16	
	PSHS	B,A	
	LDD	#$04		decimal 4 signed
	PULS	X	
	LBSR	MUL16	
	PSHS	B,A	
	LDD	6,U		variable textscale, declared at tgvectrex.c:1830
	PULS	X	
	LBSR	MUL16	
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	STD	-8,U	
* Line tgvectrex.c:1843: assignment: =
	LDX	-2,U		left
	LDD	#$05		right
	LBSR	SDIV16	
	TFR	X,D		quotient
	PSHS	B,A	
	LDD	#$0C		decimal 12 signed
	PULS	X	
	LBSR	MUL16	
	PSHS	B,A	
	LDD	6,U		variable textscale, declared at tgvectrex.c:1830
	PULS	X	
	LBSR	MUL16	
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	STD	-6,U	
* Line tgvectrex.c:1845: assignment: =
	LDB	5,U		variable coords, declared at tgvectrex.c:1830
	LSRB
	LSRB
	LSRB
	LSRB
	CLRA
	STD	-4,U	
* Line tgvectrex.c:1846: assignment: =
	LDX	-4,U		left
	LDD	#$05		right
	LBSR	SDIV16	
	PSHS	B,A	
	LDD	#$04		decimal 4 signed
	PULS	X	
	LBSR	MUL16	
	PSHS	B,A	
	LDD	6,U		variable textscale, declared at tgvectrex.c:1830
	PULS	X	
	LBSR	MUL16	
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	STD	-12,U	
* Line tgvectrex.c:1847: assignment: =
	LDX	-4,U		left
	LDD	#$05		right
	LBSR	SDIV16	
	TFR	X,D		quotient
	PSHS	B,A	
	LDD	#$0C		decimal 12 signed
	PULS	X	
	LBSR	MUL16	
	PSHS	B,A	
	LDD	6,U		variable textscale, declared at tgvectrex.c:1830
	PULS	X	
	LBSR	MUL16	
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	ASRA
	RORB
	STD	-10,U	
* Line tgvectrex.c:1849: function call: draw_text_line()
	LDD	-6,U		variable toy, declared at tgvectrex.c:1835
	PSHS	B,A		argument 4 of draw_text_line(): int
	LDD	-8,U		variable tox, declared at tgvectrex.c:1834
	PSHS	B,A		argument 3 of draw_text_line(): int
	LDD	-10,U		variable fromy, declared at tgvectrex.c:1833
	PSHS	B,A		argument 2 of draw_text_line(): int
	LDD	-12,U		variable fromx, declared at tgvectrex.c:1832
	PSHS	B,A		argument 1 of draw_text_line(): int
	LBSR	_draw_text_line
	LEAS	8,S	
L00050	EQU	*		end of segment()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION setintensity(): defined at tgvectrex.c:898
_setintensity	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:900: assignment: =
	LDB	5,U		variable brightness
	ANDB	#$7F	
	STB	G00107+0,PCR
L00016	EQU	*		end of setintensity()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION sinsymmetry(): defined at tgvectrex.c:1375
_sinsymmetry	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:1378: if
	LDB	5,U		variable angle128
	CMPB	#$40	
	LBHI	L00646	
	LBRA	L00647	
L00646	EQU	*		then
* Line tgvectrex.c:1378: return with value
	LEAX	G00123+0,PCR	address of array sine
	PSHS	X		preserve array address, then eval array index
	LDB	5,U		variable angle128, declared at tgvectrex.c:1375
	CLRA			promotion of binary operand
	PSHS	B,A	
	LDD	#$80		decimal 128 signed
	LEAS	1,S	
	SUBB	,S+	
	CLRA			index expression is of byte type
	LSLB
	ROLA
	PULS	X		retrieve array address
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	LBRA	L00026		return (tgvectrex.c:1378)
	LBRA	L00648		jump over else clause
L00647	EQU	*		else
* Line tgvectrex.c:1378: return with value
	LEAX	G00123+0,PCR	address of array sine
	LDB	5,U		variable angle128
	CLRA			index expression is of byte type
	LSLB
	ROLA
	LEAX	D,X		add byte offset
	LDD	,X		get r-value
	LBRA	L00026		return (tgvectrex.c:1378)
L00648	EQU	*		end if
L00026	EQU	*		end of sinsymmetry()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION star_x1(): defined at tgvectrex.c:1491
_star_x1	EQU	*
	PSHS	U	
	LEAU	,S--	
* Line tgvectrex.c:1492: init of variable xtype
	LDD	#$03		decimal 3 signed
	PSHS	B,A	
	LDB	5,U		variable idx, declared at tgvectrex.c:1491
	LSRB
	LSRB
	CLRA			promotion of binary operand
	ANDA	,S+	
	ANDB	,S+	
	STB	-2,U		variable xtype
* Line tgvectrex.c:1492: init of variable ytype
	LDB	5,U		variable idx
	ANDB	#$03	
	STB	-1,U		variable ytype
* Line tgvectrex.c:1494: assignment: =
	LDB	-1,U		variable ytype, declared at tgvectrex.c:1492
	CLRA			promotion of binary operand
	PSHS	B,A	
	LDB	-2,U		variable xtype, declared at tgvectrex.c:1492
	CLRA			promotion of binary operand
	EORA	,S+	
	EORB	,S+	
	STB	5,U	
* Line tgvectrex.c:1495: if
	LDB	5,U		variable idx, declared at tgvectrex.c:1491
	TSTB
	BNE	L00650	
* Line tgvectrex.c:1496: return with value
	LDD	G00113+0,PCR	variable ScreenWidth, declared at tgvectrex.c:143
	ASRA
	RORB
	COMA
	COMB
	ADDD	#1	
	LBRA	L00034		return (tgvectrex.c:1496)
	LBRA	L00651		jump over else clause
L00650	EQU	*		else
* Line tgvectrex.c:1497: if
	LDB	5,U		variable idx
	CMPB	#$02
	BNE	L00653	
* Line tgvectrex.c:1498: return with value
	LDD	#$01		decimal 1 signed
	PSHS	B,A	
	LDD	G00113+0,PCR	variable ScreenWidth, declared at tgvectrex.c:143
	ASRA
	RORB
	SUBD	,S++	
	LBRA	L00034		return (tgvectrex.c:1498)
	LBRA	L00654		jump over else clause
L00653	EQU	*		else
* Line tgvectrex.c:1500: return with value
* Line tgvectrex.c:1500: function call: pickrandom()
	LDD	#$01		decimal 1 signed
	PSHS	B,A	
	LDD	G00113+0,PCR	variable ScreenWidth, declared at tgvectrex.c:143
	ASRA
	RORB
	SUBD	,S++	
	PSHS	B,A		argument 2 of pickrandom(): int
	LDD	G00113+0,PCR	variable ScreenWidth, declared at tgvectrex.c:143
	ASRA
	RORB
	COMA
	COMB
	ADDD	#1	
	PSHS	B,A		argument 1 of pickrandom(): int
	LBSR	_pickrandom
	LEAS	4,S	
	LBRA	L00034		return (tgvectrex.c:1500)
L00654	EQU	*		end if
L00651	EQU	*		end if
L00034	EQU	*		end of star_x1()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION star_y1(): defined at tgvectrex.c:1504
_star_y1	EQU	*
	PSHS	U	
	LEAU	,S--	
* Line tgvectrex.c:1505: init of variable xtype
	LDD	#$03		decimal 3 signed
	PSHS	B,A	
	LDB	5,U		variable idx, declared at tgvectrex.c:1504
	LSRB
	LSRB
	CLRA			promotion of binary operand
	ANDA	,S+	
	ANDB	,S+	
	STB	-2,U		variable xtype
* Line tgvectrex.c:1505: init of variable ytype
	LDB	5,U		variable idx
	ANDB	#$03	
	STB	-1,U		variable ytype
* Line tgvectrex.c:1507: assignment: =
	LDB	-1,U		variable ytype, declared at tgvectrex.c:1505
	CLRA			promotion of binary operand
	PSHS	B,A	
	LDB	-2,U		variable xtype, declared at tgvectrex.c:1505
	CLRA			promotion of binary operand
	EORA	,S+	
	EORB	,S+	
	STB	5,U	
* Line tgvectrex.c:1508: if
	LDB	5,U		variable idx
	CMPB	#$01
	BNE	L00656	
* Line tgvectrex.c:1509: return with value
	LDD	#$01		decimal 1 signed
	PSHS	B,A	
	LDD	G00114+0,PCR	variable ScreenHeight, declared at tgvectrex.c:143
	ASRA
	RORB
	SUBD	,S++	
	LBRA	L00035		return (tgvectrex.c:1509)
	LBRA	L00657		jump over else clause
L00656	EQU	*		else
* Line tgvectrex.c:1510: if
	LDB	5,U		variable idx
	CMPB	#$03
	BNE	L00659	
* Line tgvectrex.c:1511: return with value
	LDD	G00114+0,PCR	variable ScreenHeight, declared at tgvectrex.c:143
	ASRA
	RORB
	COMA
	COMB
	ADDD	#1	
	LBRA	L00035		return (tgvectrex.c:1511)
	LBRA	L00660		jump over else clause
L00659	EQU	*		else
* Line tgvectrex.c:1513: return with value
* Line tgvectrex.c:1513: function call: pickrandom()
	LDD	#$01		decimal 1 signed
	PSHS	B,A	
	LDD	G00114+0,PCR	variable ScreenHeight, declared at tgvectrex.c:143
	ASRA
	RORB
	SUBD	,S++	
	PSHS	B,A		argument 2 of pickrandom(): int
	LDD	G00114+0,PCR	variable ScreenHeight, declared at tgvectrex.c:143
	ASRA
	RORB
	COMA
	COMB
	ADDD	#1	
	PSHS	B,A		argument 1 of pickrandom(): int
	LBSR	_pickrandom
	LEAS	4,S	
	LBRA	L00035		return (tgvectrex.c:1513)
L00660	EQU	*		end if
L00657	EQU	*		end if
L00035	EQU	*		end of star_y1()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION starplot(): defined at tgvectrex.c:1451
_starplot	EQU	*
	PSHS	U	
	LEAU	,S	
* Line tgvectrex.c:1457: function call: Display_Vectrex_point()
	LDD	6,U		variable y, declared at tgvectrex.c:1451
	PSHS	B,A	
	LDD	G00114+0,PCR	variable ScreenHeight, declared at tgvectrex.c:143
	ASRA
	RORB
	ADDD	,S++	
	PSHS	B,A		argument 2 of Display_Vectrex_point(): int
	LDD	4,U		variable x, declared at tgvectrex.c:1451
	PSHS	B,A	
	LDD	G00113+0,PCR	variable ScreenWidth, declared at tgvectrex.c:143
	ASRA
	RORB
	ADDD	,S++	
	PSHS	B,A		argument 1 of Display_Vectrex_point(): int
	LBSR	_Display_Vectrex_point
	LEAS	4,S	
L00032	EQU	*		end of starplot()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION stars(): defined at tgvectrex.c:1557
_stars	EQU	*
	PSHS	U	
	LEAU	,S--	
* Line tgvectrex.c:1560: for init
* Line tgvectrex.c:1560: assignment: =
	CLRA
	CLRB
	CLRB
	STB	-1,U	
	LBRA	L00662		jump to for condition
L00661	EQU	*
* Line tgvectrex.c:1560: for body
* Line tgvectrex.c:1561: for init
* Line tgvectrex.c:1561: assignment: =
	CLRA
	CLRB
	CLRB
	STB	-2,U	
	LBRA	L00666		jump to for condition
L00665	EQU	*
* Line tgvectrex.c:1561: for body
* Line tgvectrex.c:1561: function call: move_star()
	LDB	-1,U		variable star, declared at tgvectrex.c:1559
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of move_star(): unsigned char
	LBSR	_move_star
	LEAS	2,S	
L00667	EQU	*
* Line tgvectrex.c:1561: for increment(s)
	INC	-2,U	
L00666	EQU	*
* Line tgvectrex.c:1561: for condition
	LDB	-2,U		variable i
	CMPB	5,U		variable speed
	LBLO	L00665	
	LBRA	L00668	
L00668	EQU	*		end for
* Line tgvectrex.c:1562: function call: plot_star()
	LDB	-1,U		variable star, declared at tgvectrex.c:1559
	CLRA			promoting byte argument to word
	PSHS	B,A		argument 1 of plot_star(): unsigned char
	LBSR	_plot_star
	LEAS	2,S	
L00663	EQU	*
* Line tgvectrex.c:1560: for increment(s)
	INC	-1,U	
L00662	EQU	*
* Line tgvectrex.c:1560: for condition
	LDB	-1,U		variable star
	CMPB	#$10	
	LBLO	L00661	
	LBRA	L00664	
L00664	EQU	*		end for
L00039	EQU	*		end of stars()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION startAsyncSound(): defined at tgvectrex.c:185
_startAsyncSound	EQU	*
	PSHS	U	
	LEAU	,S	
L00006	EQU	*		end of startAsyncSound()
	LEAS	,U	
	PULS	U,PC	
* END FUNCTION


*******************************************************************************

* FUNCTION urandom16(): defined at tgvectrex.c:216
_urandom16	EQU	*
* Line tgvectrex.c:218: return with value
* Line tgvectrex.c:218: assignment: =
	LDD	#$3619		decimal 13849 signed
	PSHS	B,A	
	LDX	G00117+0,PCR	left
	LDD	#$0805		right
	LBSR	MUL16	
	ADDD	,S++	
	STD	G00117+0,PCR
	LBRA	L00010		return (tgvectrex.c:218)
L00010	EQU	*		end of urandom16()
	RTS
* END FUNCTION
functions_end	EQU	*
string_literals_start	EQU	*
string_literals_end	EQU	*


*******************************************************************************

* READ-ONLY GLOBAL VARIABLES
G00118	EQU	*		SCORE_STR96: unsigned char[]
	FCB	$05		decimal 5
	FCB	$1D		decimal 29
	FCB	$0D		decimal 13
	FCB	$19		decimal 25
	FCB	$1C		decimal 28
	FCB	$0F		decimal 15
G00119	EQU	*		HIGH_SCORE_STR96: unsigned char[]
	FCB	$0A		decimal 10
	FCB	$12		decimal 18
	FCB	$13		decimal 19
	FCB	$11		decimal 17
	FCB	$12		decimal 18
	FCB	$00		decimal 0
	FCB	$1D		decimal 29
	FCB	$0D		decimal 13
	FCB	$19		decimal 25
	FCB	$1C		decimal 28
	FCB	$0F		decimal 15
G00120	EQU	*		CREDITS_STR128: unsigned char[]
	FCB	$08		decimal 8
	FCB	$0D		decimal 13
	FCB	$1C		decimal 28
	FCB	$0F		decimal 15
	FCB	$0E		decimal 14
	FCB	$13		decimal 19
	FCB	$1E		decimal 30
	FCB	$1D		decimal 29
	FCB	$00		decimal 0
G00121	EQU	*		INSERT_COIN_STR128: unsigned char[]
	FCB	$0B		decimal 11
	FCB	$13		decimal 19
	FCB	$18		decimal 24
	FCB	$1D		decimal 29
	FCB	$0F		decimal 15
	FCB	$1C		decimal 28
	FCB	$1E		decimal 30
	FCB	$00		decimal 0
	FCB	$0D		decimal 13
	FCB	$19		decimal 25
	FCB	$13		decimal 19
	FCB	$18		decimal 24
G00122	EQU	*		PRESS_START_STR128: unsigned char[]
	FCB	$0B		decimal 11
	FCB	$1A		decimal 26
	FCB	$1C		decimal 28
	FCB	$0F		decimal 15
	FCB	$1D		decimal 29
	FCB	$1D		decimal 29
	FCB	$00		decimal 0
	FCB	$1D		decimal 29
	FCB	$1E		decimal 30
	FCB	$0B		decimal 11
	FCB	$1C		decimal 28
	FCB	$1E		decimal 30
G00123	EQU	*		sine: int[]
	FDB	$00		decimal 0
	FDB	$0192		decimal 402
	FDB	$0323		decimal 803
	FDB	$04B5		decimal 1205
	FDB	$0645		decimal 1605
	FDB	$07D5		decimal 2005
	FDB	$0964		decimal 2404
	FDB	$0AF1		decimal 2801
	FDB	$0C7C		decimal 3196
	FDB	$0E05		decimal 3589
	FDB	$0F8C		decimal 3980
	FDB	$1111		decimal 4369
	FDB	$1294		decimal 4756
	FDB	$1413		decimal 5139
	FDB	$158F		decimal 5519
	FDB	$1708		decimal 5896
	FDB	$187D		decimal 6269
	FDB	$19EF		decimal 6639
	FDB	$1B5D		decimal 7005
	FDB	$1CC6		decimal 7366
	FDB	$1E2B		decimal 7723
	FDB	$1F8B		decimal 8075
	FDB	$20E7		decimal 8423
	FDB	$223D		decimal 8765
	FDB	$238E		decimal 9102
	FDB	$24DA		decimal 9434
	FDB	$261F		decimal 9759
	FDB	$275F		decimal 10079
	FDB	$2899		decimal 10393
	FDB	$29CD		decimal 10701
	FDB	$2AFA		decimal 11002
	FDB	$2C21		decimal 11297
	FDB	$2D41		decimal 11585
	FDB	$2E5A		decimal 11866
	FDB	$2F6B		decimal 12139
	FDB	$3076		decimal 12406
	FDB	$3179		decimal 12665
	FDB	$3274		decimal 12916
	FDB	$3367		decimal 13159
	FDB	$3453		decimal 13395
	FDB	$3536		decimal 13622
	FDB	$3612		decimal 13842
	FDB	$36E5		decimal 14053
	FDB	$37AF		decimal 14255
	FDB	$3871		decimal 14449
	FDB	$392A		decimal 14634
	FDB	$39DA		decimal 14810
	FDB	$3A82		decimal 14978
	FDB	$3B20		decimal 15136
	FDB	$3BB6		decimal 15286
	FDB	$3C42		decimal 15426
	FDB	$3CC5		decimal 15557
	FDB	$3D3E		decimal 15678
	FDB	$3DAE		decimal 15790
	FDB	$3E14		decimal 15892
	FDB	$3E71		decimal 15985
	FDB	$3EC5		decimal 16069
	FDB	$3F0E		decimal 16142
	FDB	$3F4E		decimal 16206
	FDB	$3F84		decimal 16260
	FDB	$3FB1		decimal 16305
	FDB	$3FD3		decimal 16339
	FDB	$3FEC		decimal 16364
	FDB	$3FFB		decimal 16379
	FDB	$4000		decimal 16384
G00124	EQU	*		asintab: int[]
	FDB	$F000		decimal 61440
	FDB	$F146		decimal 61766
	FDB	$F1CE		decimal 61902
	FDB	$F236		decimal 62006
	FDB	$F28E		decimal 62094
	FDB	$F2DB		decimal 62171
	FDB	$F322		decimal 62242
	FDB	$F362		decimal 62306
	FDB	$F39F		decimal 62367
	FDB	$F3D8		decimal 62424
	FDB	$F40E		decimal 62478
	FDB	$F441		decimal 62529
	FDB	$F472		decimal 62578
	FDB	$F4A1		decimal 62625
	FDB	$F4CF		decimal 62671
	FDB	$F4FB		decimal 62715
	FDB	$F526		decimal 62758
	FDB	$F54F		decimal 62799
	FDB	$F578		decimal 62840
	FDB	$F59F		decimal 62879
	FDB	$F5C5		decimal 62917
	FDB	$F5EB		decimal 62955
	FDB	$F610		decimal 62992
	FDB	$F634		decimal 63028
	FDB	$F657		decimal 63063
	FDB	$F67A		decimal 63098
	FDB	$F69C		decimal 63132
	FDB	$F6BD		decimal 63165
	FDB	$F6DE		decimal 63198
	FDB	$F6FE		decimal 63230
	FDB	$F71E		decimal 63262
	FDB	$F73E		decimal 63294
	FDB	$F75D		decimal 63325
	FDB	$F77B		decimal 63355
	FDB	$F799		decimal 63385
	FDB	$F7B7		decimal 63415
	FDB	$F7D5		decimal 63445
	FDB	$F7F2		decimal 63474
	FDB	$F80F		decimal 63503
	FDB	$F82B		decimal 63531
	FDB	$F847		decimal 63559
	FDB	$F863		decimal 63587
	FDB	$F87F		decimal 63615
	FDB	$F89A		decimal 63642
	FDB	$F8B5		decimal 63669
	FDB	$F8D0		decimal 63696
	FDB	$F8EB		decimal 63723
	FDB	$F905		decimal 63749
	FDB	$F920		decimal 63776
	FDB	$F93A		decimal 63802
	FDB	$F953		decimal 63827
	FDB	$F96D		decimal 63853
	FDB	$F986		decimal 63878
	FDB	$F9A0		decimal 63904
	FDB	$F9B9		decimal 63929
	FDB	$F9D1		decimal 63953
	FDB	$F9EA		decimal 63978
	FDB	$FA03		decimal 64003
	FDB	$FA1B		decimal 64027
	FDB	$FA33		decimal 64051
	FDB	$FA4C		decimal 64076
	FDB	$FA64		decimal 64100
	FDB	$FA7B		decimal 64123
	FDB	$FA93		decimal 64147
	FDB	$FAAB		decimal 64171
	FDB	$FAC2		decimal 64194
	FDB	$FAD9		decimal 64217
	FDB	$FAF1		decimal 64241
	FDB	$FB08		decimal 64264
	FDB	$FB1F		decimal 64287
	FDB	$FB36		decimal 64310
	FDB	$FB4D		decimal 64333
	FDB	$FB63		decimal 64355
	FDB	$FB7A		decimal 64378
	FDB	$FB90		decimal 64400
	FDB	$FBA7		decimal 64423
	FDB	$FBBD		decimal 64445
	FDB	$FBD3		decimal 64467
	FDB	$FBEA		decimal 64490
	FDB	$FC00		decimal 64512
	FDB	$FC16		decimal 64534
	FDB	$FC2C		decimal 64556
	FDB	$FC41		decimal 64577
	FDB	$FC57		decimal 64599
	FDB	$FC6D		decimal 64621
	FDB	$FC83		decimal 64643
	FDB	$FC98		decimal 64664
	FDB	$FCAE		decimal 64686
	FDB	$FCC3		decimal 64707
	FDB	$FCD9		decimal 64729
	FDB	$FCEE		decimal 64750
	FDB	$FD03		decimal 64771
	FDB	$FD19		decimal 64793
	FDB	$FD2E		decimal 64814
	FDB	$FD43		decimal 64835
	FDB	$FD58		decimal 64856
	FDB	$FD6D		decimal 64877
	FDB	$FD82		decimal 64898
	FDB	$FD97		decimal 64919
	FDB	$FDAC		decimal 64940
	FDB	$FDC1		decimal 64961
	FDB	$FDD6		decimal 64982
	FDB	$FDEB		decimal 65003
	FDB	$FDFF		decimal 65023
	FDB	$FE14		decimal 65044
	FDB	$FE29		decimal 65065
	FDB	$FE3E		decimal 65086
	FDB	$FE52		decimal 65106
	FDB	$FE67		decimal 65127
	FDB	$FE7B		decimal 65147
	FDB	$FE90		decimal 65168
	FDB	$FEA5		decimal 65189
	FDB	$FEB9		decimal 65209
	FDB	$FECE		decimal 65230
	FDB	$FEE2		decimal 65250
	FDB	$FEF7		decimal 65271
	FDB	$FF0B		decimal 65291
	FDB	$FF20		decimal 65312
	FDB	$FF34		decimal 65332
	FDB	$FF49		decimal 65353
	FDB	$FF5D		decimal 65373
	FDB	$FF71		decimal 65393
	FDB	$FF86		decimal 65414
	FDB	$FF9A		decimal 65434
	FDB	$FFAE		decimal 65454
	FDB	$FFC3		decimal 65475
	FDB	$FFD7		decimal 65495
	FDB	$FFEC		decimal 65516
	FDB	$00		decimal 0
G00125	EQU	*		tg_intro_placard: unsigned char[]
	FCB	$A3		decimal 163
	FCB	$3F		decimal 63
	FCB	$5D		decimal 93
	FCB	$3F		decimal 63
	FCB	$5D		decimal 93
	FCB	$3F		decimal 63
	FCB	$5D		decimal 93
	FCB	$C1		decimal 193
	FCB	$5D		decimal 93
	FCB	$C1		decimal 193
	FCB	$A3		decimal 163
	FCB	$C1		decimal 193
	FCB	$A3		decimal 163
	FCB	$C1		decimal 193
	FCB	$A3		decimal 163
	FCB	$3F		decimal 63
	FCB	$9B		decimal 155
	FCB	$47		decimal 71
	FCB	$65		decimal 101
	FCB	$47		decimal 71
	FCB	$65		decimal 101
	FCB	$47		decimal 71
	FCB	$65		decimal 101
	FCB	$B9		decimal 185
	FCB	$65		decimal 101
	FCB	$B9		decimal 185
	FCB	$9B		decimal 155
	FCB	$B9		decimal 185
	FCB	$9B		decimal 155
	FCB	$B9		decimal 185
	FCB	$9B		decimal 155
	FCB	$47		decimal 71
	FCB	$95		decimal 149
	FCB	$6D		decimal 109
	FCB	$95		decimal 149
	FCB	$5D		decimal 93
	FCB	$83		decimal 131
	FCB	$65		decimal 101
	FCB	$95		decimal 149
	FCB	$65		decimal 101
	FCB	$95		decimal 149
	FCB	$77		decimal 119
	FCB	$83		decimal 131
	FCB	$71		decimal 113
	FCB	$83		decimal 131
	FCB	$7D		decimal 125
	FCB	$95		decimal 149
	FCB	$77		decimal 119
	FCB	$8C		decimal 140
	FCB	$7A		decimal 122
	FCB	$8C		decimal 140
	FCB	$74		decimal 116
	FCB	$95		decimal 149
	FCB	$89		decimal 137
	FCB	$83		decimal 131
	FCB	$89		decimal 137
	FCB	$83		decimal 131
	FCB	$95		decimal 149
	FCB	$95		decimal 149
	FCB	$95		decimal 149
	FCB	$83		decimal 131
	FCB	$A1		decimal 161
	FCB	$83		decimal 131
	FCB	$95		decimal 149
	FCB	$6B		decimal 107
	FCB	$A7		decimal 167
	FCB	$7D		decimal 125
	FCB	$A7		decimal 167
	FCB	$7D		decimal 125
	FCB	$B3		decimal 179
	FCB	$7D		decimal 125
	FCB	$A7		decimal 167
	FCB	$74		decimal 116
	FCB	$B3		decimal 179
	FCB	$7D		decimal 125
	FCB	$B3		decimal 179
	FCB	$6B		decimal 107
	FCB	$B3		decimal 179
	FCB	$74		decimal 116
	FCB	$B0		decimal 176
	FCB	$74		decimal 116
	FCB	$A7		decimal 167
	FCB	$74		decimal 116
	FCB	$B3		decimal 179
	FCB	$6B		decimal 107
	FCB	$95		decimal 149
	FCB	$6B		decimal 107
	FCB	$A1		decimal 161
	FCB	$7D		decimal 125
	FCB	$95		decimal 149
	FCB	$6B		decimal 107
	FCB	$95		decimal 149
	FCB	$7D		decimal 125
	FCB	$A1		decimal 161
	FCB	$7D		decimal 125
	FCB	$95		decimal 149
	FCB	$74		decimal 116
	FCB	$95		decimal 149
	FCB	$74		decimal 116
	FCB	$9B		decimal 155
	FCB	$6B		decimal 107
	FCB	$8F		decimal 143
	FCB	$7D		decimal 125
	FCB	$8F		decimal 143
	FCB	$7D		decimal 125
	FCB	$83		decimal 131
	FCB	$6B		decimal 107
	FCB	$8F		decimal 143
	FCB	$6B		decimal 107
	FCB	$83		decimal 131
	FCB	$7D		decimal 125
	FCB	$83		decimal 131
	FCB	$6B		decimal 107
	FCB	$7D		decimal 125
	FCB	$7D		decimal 125
	FCB	$7D		decimal 125
	FCB	$7D		decimal 125
	FCB	$71		decimal 113
	FCB	$6B		decimal 107
	FCB	$7D		decimal 125
	FCB	$6B		decimal 107
	FCB	$71		decimal 113
	FCB	$7D		decimal 125
	FCB	$71		decimal 113
	FCB	$6B		decimal 107
	FCB	$6B		decimal 107
	FCB	$7D		decimal 125
	FCB	$6B		decimal 107
	FCB	$6B		decimal 107
	FCB	$5F		decimal 95
	FCB	$6B		decimal 107
	FCB	$6B		decimal 107
	FCB	$7D		decimal 125
	FCB	$5F		decimal 95
	FCB	$6B		decimal 107
	FCB	$5F		decimal 95
	FCB	$72		decimal 114
	FCB	$56		decimal 86
	FCB	$72		decimal 114
	FCB	$5C		decimal 92
	FCB	$6B		decimal 107
	FCB	$59		decimal 89
	FCB	$72		decimal 114
	FCB	$59		decimal 89
	FCB	$6B		decimal 107
	FCB	$4D		decimal 77
	FCB	$6B		decimal 107
	FCB	$59		decimal 89
	FCB	$7D		decimal 125
	FCB	$4D		decimal 77
	FCB	$6B		decimal 107
	FCB	$4D		decimal 77
	FCB	$7D		decimal 125
	FCB	$59		decimal 89
	FCB	$7D		decimal 125
	FCB	$4D		decimal 77
G00126	EQU	*		font_points: unsigned char[]
	FCB	$AE		decimal 174
	FCB	$E4		decimal 228
	FCB	$40		decimal 64
	FCB	$0A		decimal 10
	FCB	$2C		decimal 44
	FCB	$AE		decimal 174
	FCB	$E9		decimal 233
	FCB	$95		decimal 149
	FCB	$50		decimal 80
	FCB	$04		decimal 4
	FCB	$04		decimal 4
	FCB	$79		decimal 121
	FCB	$4E		decimal 78
	FCB	$EA		decimal 234
	FCB	$A5		decimal 165
	FCB	$59		decimal 89
	FCB	$72		decimal 114
	FCB	$04		decimal 4
	FCB	$49		decimal 73
	FCB	$95		decimal 149
	FCB	$5A		decimal 90
	FCB	$AE		decimal 174
	FCB	$59		decimal 89
	FCB	$94		decimal 148
	FCB	$40		decimal 64
	FCB	$0A		decimal 10
	FCB	$2E		decimal 46
	FCB	$EA		decimal 234
	FCB	$04		decimal 4
	FCB	$AE		decimal 174
	FCB	$59		decimal 89
	FCB	$E4		decimal 228
	FCB	$A0		decimal 160
	FCB	$EA		decimal 234
	FCB	$A5		decimal 165
	FCB	$59		decimal 89
	FCB	$E4		decimal 228
	FCB	$4E		decimal 78
	FCB	$AE		decimal 174
	FCB	$59		decimal 89
	FCB	$A0		decimal 160
	FCB	$69		decimal 105
	FCB	$04		decimal 4
	FCB	$4E		decimal 78
	FCB	$EA		decimal 234
	FCB	$B1		decimal 177
	FCB	$AE		decimal 174
	FCB	$40		decimal 64
	FCB	$0A		decimal 10
	FCB	$AD		decimal 173
	FCB	$D9		decimal 217
	FCB	$93		decimal 147
	FCB	$30		decimal 48
	FCB	$0A		decimal 10
	FCB	$40		decimal 64
	FCB	$0A		decimal 10
	FCB	$57		decimal 87
	FCB	$AE		decimal 174
	FCB	$0A		decimal 10
	FCB	$57		decimal 87
	FCB	$AE		decimal 174
	FCB	$79		decimal 121
	FCB	$94		decimal 148
	FCB	$40		decimal 64
	FCB	$0A		decimal 10
	FCB	$AE		decimal 174
	FCB	$0A		decimal 10
	FCB	$59		decimal 89
	FCB	$4E		decimal 78
	FCB	$2C		decimal 44
	FCB	$50		decimal 80
	FCB	$03		decimal 3
	FCB	$3D		decimal 61
	FCB	$BE		decimal 190
	FCB	$0A		decimal 10
	FCB	$E5		decimal 229
	FCB	$54		decimal 84
	FCB	$0A		decimal 10
	FCB	$04		decimal 4
	FCB	$0A		decimal 10
	FCB	$A7		decimal 167
	FCB	$7E		decimal 126
	FCB	$E4		decimal 228
	FCB	$0A		decimal 10
	FCB	$A4		decimal 164
	FCB	$4E		decimal 78
	FCB	$AE		decimal 174
	FCB	$E4		decimal 228
	FCB	$40		decimal 64
	FCB	$0A		decimal 10
	FCB	$0A		decimal 10
	FCB	$AE		decimal 174
	FCB	$E9		decimal 233
	FCB	$95		decimal 149
	FCB	$0A		decimal 10
	FCB	$AE		decimal 174
	FCB	$E4		decimal 228
	FCB	$40		decimal 64
	FCB	$48		decimal 72
	FCB	$48		decimal 72
	FCB	$59		decimal 89
	FCB	$9E		decimal 158
	FCB	$EA		decimal 234
	FCB	$A0		decimal 160
	FCB	$04		decimal 4
	FCB	$49		decimal 73
	FCB	$95		decimal 149
	FCB	$5A		decimal 90
	FCB	$AE		decimal 174
	FCB	$AE		decimal 174
	FCB	$C2		decimal 194
	FCB	$0A		decimal 10
	FCB	$04		decimal 4
	FCB	$4E		decimal 78
	FCB	$A2		decimal 162
	FCB	$2E		decimal 46
	FCB	$A1		decimal 161
	FCB	$17		decimal 23
	FCB	$73		decimal 115
	FCB	$3E		decimal 62
	FCB	$0E		decimal 14
	FCB	$A4		decimal 164
	FCB	$27		decimal 39
	FCB	$7A		decimal 122
	FCB	$7E		decimal 126
	FCB	$AE		decimal 174
	FCB	$E0		decimal 224
	FCB	$04		decimal 4
G00127	EQU	*		font_length: unsigned char[]
	FCB	$04		decimal 4
	FCB	$01		decimal 1
	FCB	$05		decimal 5
	FCB	$04		decimal 4
	FCB	$03		decimal 3
	FCB	$05		decimal 5
	FCB	$04		decimal 4
	FCB	$02		decimal 2
	FCB	$05		decimal 5
	FCB	$04		decimal 4
	FCB	$04		decimal 4
	FCB	$05		decimal 5
	FCB	$03		decimal 3
	FCB	$05		decimal 5
	FCB	$04		decimal 4
	FCB	$03		decimal 3
	FCB	$05		decimal 5
	FCB	$03		decimal 3
	FCB	$01		decimal 1
	FCB	$04		decimal 4
	FCB	$03		decimal 3
	FCB	$02		decimal 2
	FCB	$04		decimal 4
	FCB	$03		decimal 3
	FCB	$04		decimal 4
	FCB	$04		decimal 4
	FCB	$05		decimal 5
	FCB	$05		decimal 5
	FCB	$05		decimal 5
	FCB	$02		decimal 2
	FCB	$03		decimal 3
	FCB	$02		decimal 2
	FCB	$04		decimal 4
	FCB	$02		decimal 2
	FCB	$03		decimal 3
	FCB	$03		decimal 3
G00128	EQU	*		font_index: unsigned char[]
	FCB	$00		decimal 0
	FCB	$04		decimal 4
	FCB	$05		decimal 5
	FCB	$0A		decimal 10
	FCB	$0E		decimal 14
	FCB	$11		decimal 17
	FCB	$16		decimal 22
	FCB	$1A		decimal 26
	FCB	$1C		decimal 28
	FCB	$21		decimal 33
	FCB	$25		decimal 37
	FCB	$29		decimal 41
	FCB	$2E		decimal 46
	FCB	$31		decimal 49
	FCB	$36		decimal 54
	FCB	$3A		decimal 58
	FCB	$3D		decimal 61
	FCB	$42		decimal 66
	FCB	$45		decimal 69
	FCB	$46		decimal 70
	FCB	$4A		decimal 74
	FCB	$4D		decimal 77
	FCB	$4F		decimal 79
	FCB	$53		decimal 83
	FCB	$56		decimal 86
	FCB	$5A		decimal 90
	FCB	$5E		decimal 94
	FCB	$63		decimal 99
	FCB	$68		decimal 104
	FCB	$6D		decimal 109
	FCB	$6F		decimal 111
	FCB	$72		decimal 114
	FCB	$74		decimal 116
	FCB	$78		decimal 120
	FCB	$7A		decimal 122
	FCB	$7D		decimal 125
G00129	EQU	*		crosshair: unsigned char[]
	FCB	$63		decimal 99
	FCB	$80		decimal 128
	FCB	$9E		decimal 158
	FCB	$80		decimal 128
	FCB	$94		decimal 148
	FCB	$76		decimal 118
	FCB	$94		decimal 148
	FCB	$8A		decimal 138
	FCB	$8A		decimal 138
	FCB	$94		decimal 148
	FCB	$76		decimal 118
	FCB	$94		decimal 148
	FCB	$80		decimal 128
	FCB	$9E		decimal 158
	FCB	$80		decimal 128
	FCB	$62		decimal 98
	FCB	$8A		decimal 138
	FCB	$6C		decimal 108
	FCB	$76		decimal 118
	FCB	$6C		decimal 108
	FCB	$6C		decimal 108
	FCB	$76		decimal 118
	FCB	$6C		decimal 108
	FCB	$8A		decimal 138
	FCB	$7B		decimal 123
	FCB	$8A		decimal 138
	FCB	$85		decimal 133
	FCB	$8A		decimal 138
	FCB	$8A		decimal 138
	FCB	$85		decimal 133
	FCB	$8A		decimal 138
	FCB	$7B		decimal 123
	FCB	$85		decimal 133
	FCB	$76		decimal 118
	FCB	$7B		decimal 123
	FCB	$76		decimal 118
	FCB	$76		decimal 118
	FCB	$7B		decimal 123
	FCB	$76		decimal 118
	FCB	$85		decimal 133
G00130	EQU	*		shieldvec: unsigned char[]
	FCB	$06		decimal 6
	FCB	$05		decimal 5
	FCB	$07		decimal 7
	FCB	$04		decimal 4
	FCB	$04		decimal 4
	FCB	$01		decimal 1
	FCB	$01		decimal 1
	FCB	$04		decimal 4
	FCB	$02		decimal 2
	FCB	$05		decimal 5
	FCB	$04		decimal 4
	FCB	$03		decimal 3
	FCB	$06		decimal 6
	FCB	$01		decimal 1
	FCB	$07		decimal 7
	FCB	$02		decimal 2
	FCB	$04		decimal 4
	FCB	$05		decimal 5
	FCB	$01		decimal 1
	FCB	$02		decimal 2
	FCB	$02		decimal 2
	FCB	$01		decimal 1
	FCB	$04		decimal 4
	FCB	$03		decimal 3
	FCB	$06		decimal 6
	FCB	$05		decimal 5
G00131	EQU	*		ShipMeshPointers: unsigned char[]
	FCB	$00		decimal 0
	FCB	$14		decimal 20
	FCB	$29		decimal 41
	FCB	$3A		decimal 58
	FCB	$51		decimal 81
G00132	EQU	*		ShipMesh: char[]
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$FF9C		decimal 65436
	FCB	$28		decimal 40
	FCB	$00		decimal 0
	FCB	$FFC4		decimal 65476
	FCB	$28		decimal 40
	FCB	$00		decimal 0
	FCB	$FFC4		decimal 65476
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$FFEC		decimal 65516
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$FFEC		decimal 65516
	FCB	$FFD8		decimal 65496
	FCB	$00		decimal 0
	FCB	$FFC4		decimal 65476
	FCB	$FFD8		decimal 65496
	FCB	$00		decimal 0
	FCB	$FFC4		decimal 65476
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$FF9C		decimal 65436
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$FF9C		decimal 65436
	FCB	$00		decimal 0
	FCB	$28		decimal 40
	FCB	$FFC4		decimal 65476
	FCB	$00		decimal 0
	FCB	$28		decimal 40
	FCB	$FFC4		decimal 65476
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$FFEC		decimal 65516
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$FFEC		decimal 65516
	FCB	$00		decimal 0
	FCB	$FFD8		decimal 65496
	FCB	$FFC4		decimal 65476
	FCB	$00		decimal 0
	FCB	$FFD8		decimal 65496
	FCB	$FFC4		decimal 65476
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$FF9C		decimal 65436
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$FFEC		decimal 65516
	FCB	$1E		decimal 30
	FCB	$00		decimal 0
	FCB	$78		decimal 120
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$FFEC		decimal 65516
	FCB	$14		decimal 20
	FCB	$14		decimal 20
	FCB	$78		decimal 120
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$FFEC		decimal 65516
	FCB	$FFEC		decimal 65516
	FCB	$14		decimal 20
	FCB	$78		decimal 120
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$FFEC		decimal 65516
	FCB	$FFE2		decimal 65506
	FCB	$00		decimal 0
	FCB	$78		decimal 120
	FCB	$1E		decimal 30
	FCB	$00		decimal 0
	FCB	$78		decimal 120
	FCB	$14		decimal 20
	FCB	$14		decimal 20
	FCB	$78		decimal 120
	FCB	$14		decimal 20
	FCB	$14		decimal 20
	FCB	$78		decimal 120
	FCB	$FFEC		decimal 65516
	FCB	$14		decimal 20
	FCB	$78		decimal 120
	FCB	$FFEC		decimal 65516
	FCB	$14		decimal 20
	FCB	$78		decimal 120
	FCB	$FFE2		decimal 65506
	FCB	$00		decimal 0
	FCB	$78		decimal 120
	FCB	$FFE2		decimal 65506
	FCB	$00		decimal 0
	FCB	$78		decimal 120
	FCB	$1E		decimal 30
	FCB	$00		decimal 0
	FCB	$78		decimal 120
	FCB	$1E		decimal 30
	FCB	$00		decimal 0
	FCB	$78		decimal 120
	FCB	$64		decimal 100
	FCB	$FFD8		decimal 65496
	FCB	$50		decimal 80
	FCB	$64		decimal 100
	FCB	$FFD8		decimal 65496
	FCB	$50		decimal 80
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$FFEC		decimal 65516
	FCB	$FFE2		decimal 65506
	FCB	$00		decimal 0
	FCB	$78		decimal 120
	FCB	$FF9C		decimal 65436
	FCB	$FFD8		decimal 65496
	FCB	$50		decimal 80
	FCB	$FF9C		decimal 65436
	FCB	$FFD8		decimal 65496
	FCB	$50		decimal 80
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$FFEC		decimal 65516
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$FFA6		decimal 65446
	FCB	$2D		decimal 45
	FCB	$00		decimal 0
	FCB	$FFC4		decimal 65476
	FCB	$2D		decimal 45
	FCB	$00		decimal 0
	FCB	$FFC4		decimal 65476
	FCB	$2D		decimal 45
	FCB	$00		decimal 0
	FCB	$3C		decimal 60
	FCB	$2D		decimal 45
	FCB	$00		decimal 0
	FCB	$3C		decimal 60
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$5A		decimal 90
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$5A		decimal 90
	FCB	$FFD3		decimal 65491
	FCB	$00		decimal 0
	FCB	$3C		decimal 60
	FCB	$FFD3		decimal 65491
	FCB	$00		decimal 0
	FCB	$3C		decimal 60
	FCB	$FFD3		decimal 65491
	FCB	$00		decimal 0
	FCB	$FFC4		decimal 65476
	FCB	$FFD3		decimal 65491
	FCB	$00		decimal 0
	FCB	$FFC4		decimal 65476
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$FFA6		decimal 65446
	FCB	$2D		decimal 45
	FCB	$00		decimal 0
	FCB	$3C		decimal 60
	FCB	$3C		decimal 60
	FCB	$18		decimal 24
	FCB	$3C		decimal 60
	FCB	$3C		decimal 60
	FCB	$18		decimal 24
	FCB	$3C		decimal 60
	FCB	$3C		decimal 60
	FCB	$18		decimal 24
	FCB	$7F		decimal 127
	FCB	$3C		decimal 60
	FCB	$18		decimal 24
	FCB	$7F		decimal 127
	FCB	$2D		decimal 45
	FCB	$00		decimal 0
	FCB	$7F		decimal 127
	FCB	$2D		decimal 45
	FCB	$00		decimal 0
	FCB	$7F		decimal 127
	FCB	$2D		decimal 45
	FCB	$00		decimal 0
	FCB	$3C		decimal 60
	FCB	$FFD3		decimal 65491
	FCB	$00		decimal 0
	FCB	$3C		decimal 60
	FCB	$FFC4		decimal 65476
	FCB	$18		decimal 24
	FCB	$3C		decimal 60
	FCB	$FFC4		decimal 65476
	FCB	$18		decimal 24
	FCB	$3C		decimal 60
	FCB	$FFC4		decimal 65476
	FCB	$18		decimal 24
	FCB	$7F		decimal 127
	FCB	$FFC4		decimal 65476
	FCB	$18		decimal 24
	FCB	$7F		decimal 127
	FCB	$FFD3		decimal 65491
	FCB	$00		decimal 0
	FCB	$7F		decimal 127
	FCB	$FFD3		decimal 65491
	FCB	$00		decimal 0
	FCB	$7F		decimal 127
	FCB	$FFD3		decimal 65491
	FCB	$00		decimal 0
	FCB	$3C		decimal 60
	FCB	$FFD3		decimal 65491
	FCB	$00		decimal 0
	FCB	$3C		decimal 60
	FCB	$FFC4		decimal 65476
	FCB	$FFE5		decimal 65509
	FCB	$FFA6		decimal 65446
	FCB	$FFC4		decimal 65476
	FCB	$FFE5		decimal 65509
	FCB	$FFA6		decimal 65446
	FCB	$00		decimal 0
	FCB	$FFDE		decimal 65502
	FCB	$FF80		decimal 65408
	FCB	$00		decimal 0
	FCB	$FFDE		decimal 65502
	FCB	$FF80		decimal 65408
	FCB	$3C		decimal 60
	FCB	$FFE5		decimal 65509
	FCB	$FFA6		decimal 65446
	FCB	$3C		decimal 60
	FCB	$FFE5		decimal 65509
	FCB	$FFA6		decimal 65446
	FCB	$2D		decimal 45
	FCB	$00		decimal 0
	FCB	$3C		decimal 60
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$FFA6		decimal 65446
	FCB	$00		decimal 0
	FCB	$FFDE		decimal 65502
	FCB	$FF80		decimal 65408
	FCB	$2D		decimal 45
	FCB	$00		decimal 0
	FCB	$FFC4		decimal 65476
	FCB	$3C		decimal 60
	FCB	$FFE5		decimal 65509
	FCB	$FFA6		decimal 65446
	FCB	$FFD3		decimal 65491
	FCB	$00		decimal 0
	FCB	$FFC4		decimal 65476
	FCB	$FFC4		decimal 65476
	FCB	$FFE5		decimal 65509
	FCB	$FFA6		decimal 65446
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$FF9C		decimal 65436
	FCB	$3C		decimal 60
	FCB	$00		decimal 0
	FCB	$FFD8		decimal 65496
	FCB	$3C		decimal 60
	FCB	$00		decimal 0
	FCB	$FFD8		decimal 65496
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$14		decimal 20
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$14		decimal 20
	FCB	$FFC4		decimal 65476
	FCB	$00		decimal 0
	FCB	$FFD8		decimal 65496
	FCB	$FFC4		decimal 65476
	FCB	$00		decimal 0
	FCB	$FFD8		decimal 65496
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$FF9C		decimal 65436
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$FF9C		decimal 65436
	FCB	$00		decimal 0
	FCB	$28		decimal 40
	FCB	$FFD8		decimal 65496
	FCB	$00		decimal 0
	FCB	$28		decimal 40
	FCB	$FFD8		decimal 65496
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$14		decimal 20
	FCB	$3C		decimal 60
	FCB	$00		decimal 0
	FCB	$FFD8		decimal 65496
	FCB	$00		decimal 0
	FCB	$28		decimal 40
	FCB	$FFD8		decimal 65496
	FCB	$00		decimal 0
	FCB	$28		decimal 40
	FCB	$FFD8		decimal 65496
	FCB	$FFC4		decimal 65476
	FCB	$00		decimal 0
	FCB	$FFD8		decimal 65496
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$14		decimal 20
	FCB	$00		decimal 0
	FCB	$50		decimal 80
	FCB	$64		decimal 100
	FCB	$00		decimal 0
	FCB	$50		decimal 80
	FCB	$64		decimal 100
	FCB	$00		decimal 0
	FCB	$28		decimal 40
	FCB	$64		decimal 100
	FCB	$00		decimal 0
	FCB	$28		decimal 40
	FCB	$64		decimal 100
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$14		decimal 20
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$14		decimal 20
	FCB	$64		decimal 100
	FCB	$FFD8		decimal 65496
	FCB	$64		decimal 100
	FCB	$64		decimal 100
	FCB	$FFD8		decimal 65496
	FCB	$64		decimal 100
	FCB	$28		decimal 40
	FCB	$FFEC		decimal 65516
	FCB	$64		decimal 100
	FCB	$28		decimal 40
	FCB	$FFEC		decimal 65516
	FCB	$64		decimal 100
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$14		decimal 20
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$14		decimal 20
	FCB	$FF9C		decimal 65436
	FCB	$FFD8		decimal 65496
	FCB	$64		decimal 100
	FCB	$FF9C		decimal 65436
	FCB	$FFD8		decimal 65496
	FCB	$64		decimal 100
	FCB	$FFD8		decimal 65496
	FCB	$FFEC		decimal 65516
	FCB	$64		decimal 100
	FCB	$FFD8		decimal 65496
	FCB	$FFEC		decimal 65516
	FCB	$64		decimal 100
	FCB	$00		decimal 0
	FCB	$00		decimal 0
	FCB	$14		decimal 20
	FCB	$00		decimal 0
	FCB	$02		decimal 2
	FCB	$FFA4		decimal 65444
	FCB	$1E		decimal 30
	FCB	$02		decimal 2
	FCB	$FFBA		decimal 65466
	FCB	$1E		decimal 30
	FCB	$02		decimal 2
	FCB	$FFBA		decimal 65466
	FCB	$00		decimal 0
	FCB	$0A		decimal 10
	FCB	$FFEC		decimal 65516
	FCB	$00		decimal 0
	FCB	$0A		decimal 10
	FCB	$FFEC		decimal 65516
	FCB	$FFE2		decimal 65506
	FCB	$02		decimal 2
	FCB	$FFBA		decimal 65466
	FCB	$FFE2		decimal 65506
	FCB	$02		decimal 2
	FCB	$FFBA		decimal 65466
	FCB	$00		decimal 0
	FCB	$02		decimal 2
	FCB	$FFA4		decimal 65444
	FCB	$00		decimal 0
	FCB	$02		decimal 2
	FCB	$FFA4		decimal 65444
	FCB	$00		decimal 0
	FCB	$FFE7		decimal 65511
	FCB	$FFD3		decimal 65491
	FCB	$00		decimal 0
	FCB	$FFE7		decimal 65511
	FCB	$FFD3		decimal 65491
	FCB	$00		decimal 0
	FCB	$0A		decimal 10
	FCB	$FFEC		decimal 65516
	FCB	$1E		decimal 30
	FCB	$02		decimal 2
	FCB	$FFBA		decimal 65466
	FCB	$16		decimal 22
	FCB	$0F		decimal 15
	FCB	$FFC4		decimal 65476
	FCB	$FFE2		decimal 65506
	FCB	$02		decimal 2
	FCB	$FFBA		decimal 65466
	FCB	$FFEA		decimal 65514
	FCB	$0F		decimal 15
	FCB	$FFC4		decimal 65476
	FCB	$1E		decimal 30
	FCB	$02		decimal 2
	FCB	$FFBA		decimal 65466
	FCB	$00		decimal 0
	FCB	$FFE7		decimal 65511
	FCB	$FFD3		decimal 65491
	FCB	$FFE2		decimal 65506
	FCB	$02		decimal 2
	FCB	$FFBA		decimal 65466
	FCB	$00		decimal 0
	FCB	$FFE7		decimal 65511
	FCB	$FFD3		decimal 65491
	FCB	$16		decimal 22
	FCB	$0F		decimal 15
	FCB	$FFC4		decimal 65476
	FCB	$FFEA		decimal 65514
	FCB	$0F		decimal 15
	FCB	$FFC4		decimal 65476
	FCB	$16		decimal 22
	FCB	$0F		decimal 15
	FCB	$FFC4		decimal 65476
	FCB	$00		decimal 0
	FCB	$0A		decimal 10
	FCB	$FFEC		decimal 65516
	FCB	$FFEA		decimal 65514
	FCB	$0F		decimal 15
	FCB	$FFC4		decimal 65476
	FCB	$00		decimal 0
	FCB	$0A		decimal 10
	FCB	$FFEC		decimal 65516
	FCB	$1E		decimal 30
	FCB	$02		decimal 2
	FCB	$FFBA		decimal 65466
	FCB	$FFE2		decimal 65506
	FCB	$02		decimal 2
	FCB	$FFBA		decimal 65466
	FCB	$00		decimal 0
	FCB	$0A		decimal 10
	FCB	$FFEC		decimal 65516
	FCB	$FFEC		decimal 65516
	FCB	$FFF6		decimal 65526
	FCB	$6E		decimal 110
	FCB	$00		decimal 0
	FCB	$0A		decimal 10
	FCB	$FFEC		decimal 65516
	FCB	$14		decimal 20
	FCB	$FFF6		decimal 65526
	FCB	$6E		decimal 110
	FCB	$FFEC		decimal 65516
	FCB	$FFF6		decimal 65526
	FCB	$6E		decimal 110
	FCB	$14		decimal 20
	FCB	$FFF6		decimal 65526
	FCB	$6E		decimal 110
	FCB	$00		decimal 0
	FCB	$FFE7		decimal 65511
	FCB	$FFD3		decimal 65491
	FCB	$FFEC		decimal 65516
	FCB	$FFF6		decimal 65526
	FCB	$6E		decimal 110
	FCB	$00		decimal 0
	FCB	$FFE7		decimal 65511
	FCB	$FFD3		decimal 65491
	FCB	$14		decimal 20
	FCB	$FFF6		decimal 65526
	FCB	$6E		decimal 110
	FCB	$00		decimal 0
	FCB	$0A		decimal 10
	FCB	$FFEC		decimal 65516
	FCB	$FFA6		decimal 65446
	FCB	$14		decimal 20
	FCB	$5A		decimal 90
	FCB	$FFA6		decimal 65446
	FCB	$14		decimal 20
	FCB	$5A		decimal 90
	FCB	$FFEC		decimal 65516
	FCB	$FFF6		decimal 65526
	FCB	$6E		decimal 110
	FCB	$00		decimal 0
	FCB	$0A		decimal 10
	FCB	$FFEC		decimal 65516
	FCB	$5A		decimal 90
	FCB	$14		decimal 20
	FCB	$5A		decimal 90
	FCB	$5A		decimal 90
	FCB	$14		decimal 20
	FCB	$5A		decimal 90
	FCB	$14		decimal 20
	FCB	$FFF6		decimal 65526
	FCB	$6E		decimal 110


*******************************************************************************

#include "stdlib.inc"


*******************************************************************************

* Initialize global variables.
INITGL	EQU	*
	RTS			end of global variable initialization


*******************************************************************************

program_end	EQU	*


*******************************************************************************

* WRITABLE DATA SECTION
	ORG	$C880	
writable_globals_start	EQU	*


*******************************************************************************

* WRITABLE GLOBAL VARIABLES
* Globals with static initializers
* Uninitialized globals
G00104	EQU	*
	RMB	2		TargetFPS
G00105	EQU	*
	RMB	2		ObservedFPS
G00106	EQU	*
	RMB	2		millis_time
G00107	EQU	*
	RMB	1		vectrex_beam_intensity
G00108	EQU	*
	RMB	1		Pressed_Key
G00109	EQU	*
	RMB	2		mouse_x
G00110	EQU	*
	RMB	2		mouse_y
G00111	EQU	*
	RMB	1		mouse_fire
G00112	EQU	*
	RMB	1		mouse_shields
G00113	EQU	*
	RMB	2		ScreenWidth
G00114	EQU	*
	RMB	2		ScreenHeight
G00115	EQU	*
	RMB	2		intro_x
G00116	EQU	*
	RMB	2		intro_y
G00117	EQU	*
	RMB	2		rseed
G00133	EQU	*
	RMB	1		pen
G00134	EQU	*
	RMB	2		last_x
G00135	EQU	*
	RMB	2		last_y
G00136	EQU	*
	RMB	1		Credits
G00137	EQU	*
	RMB	2		intro_z
G00138	EQU	*
	RMB	1		intro_rot
G00139	EQU	*
	RMB	2		insertcoin_mode_timer
G00140	EQU	*
	RMB	2		passing_mode_timer
G00141	EQU	*
	RMB	2		flashing_intro_timer
G00142	EQU	*
	RMB	1		global_flashing_intensity
G00143	EQU	*
	RMB	1		flashingtexttimer
G00144	EQU	*
	RMB	2		hide_intro_timer
G00145	EQU	*
	RMB	2		Mode
G00146	EQU	*
	RMB	2		mouseDownPrev
G00147	EQU	*
	RMB	1		laserid
G00148	EQU	*
	RMB	2		lasert
G00149	EQU	*
	RMB	2		lastfiringtime
G00150	EQU	*
	RMB	2		HighScore
G00151	EQU	*
	RMB	2		LastScore
G00152	EQU	*
	RMB	2		Score
G00153	EQU	*
	RMB	2		UsingShields
G00154	EQU	*
	RMB	2		Shields
G00155	EQU	*
	RMB	2		shieldsegment
G00156	EQU	*
	RMB	2		shieldsubticksleft
G00157	EQU	*
	RMB	2		ShipsPassedThisWave
G00158	EQU	*
	RMB	2		ShipsPassedTotal
G00159	EQU	*
	RMB	2		cosX
G00160	EQU	*
	RMB	2		cosY
G00161	EQU	*
	RMB	2		cosZ
G00162	EQU	*
	RMB	2		sinX
G00163	EQU	*
	RMB	2		sinY
G00164	EQU	*
	RMB	2		sinZ
G00165	EQU	*
	RMB	2		stopintroflag
G00166	EQU	*
	RMB	2		textx
G00167	EQU	*
	RMB	2		texty
G00168	EQU	*
	RMB	2		textz
G00169	EQU	*
	RMB	2		tgi
G00170	EQU	*
	RMB	2		tgx
G00171	EQU	*
	RMB	2		tgy
G00172	EQU	*
	RMB	2		tgz
G00173	EQU	*
	RMB	1		nextwaveshiptype
G00174	EQU	*
	RMB	1		this_status
G00175	EQU	*
	RMB	2		this_scale_fp
G00176	EQU	*
	RMB	2		this_ship_time
G00177	EQU	*
	RMB	1		this_model
G00178	EQU	*
	RMB	2		this_X
G00179	EQU	*
	RMB	2		this_Y
G00180	EQU	*
	RMB	2		this_Z
G00181	EQU	*
	RMB	2		this_vel
G00182	EQU	*
	RMB	2		this_X_destination
G00183	EQU	*
	RMB	2		this_Y_destination
G00184	EQU	*
	RMB	2		this_Z_destination
G00185	EQU	*
	RMB	2		this_X_rotation
G00186	EQU	*
	RMB	2		this_Y_rotation
G00187	EQU	*
	RMB	2		this_Z_rotation
G00188	EQU	*
	RMB	2		transformed_X
G00189	EQU	*
	RMB	2		transformed_Y
G00190	EQU	*
	RMB	2		transformed_Z
G00191	EQU	*
	RMB	2		XY
G00192	EQU	*
	RMB	2		XZ
G00193	EQU	*
	RMB	2		YX
G00194	EQU	*
	RMB	2		dirXZ
G00195	EQU	*
	RMB	2		dirY
G00196	EQU	*
	RMB	84		ships
G00197	EQU	*
	RMB	32		px
G00198	EQU	*
	RMB	32		py
G00199	EQU	*
	RMB	4		firex
G00200	EQU	*
	RMB	4		firey
G00201	EQU	*
	RMB	2		screen_x
G00202	EQU	*
	RMB	2		screen_y
G00203	EQU	*
	RMB	1		firing
G00204	EQU	*
	RMB	1		firedone1
G00205	EQU	*
	RMB	1		firedone2
G00206	EQU	*
	RMB	1		reloaded


*******************************************************************************

#include "stdlib-data.inc"
writable_globals_end	EQU	*


*******************************************************************************

	END
