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*	BVS	29
	BVS	*'
*
*	BPL	2A
	BPL	*'
*
*	BMI	2B
	BMI	*'
*
*	BGE	2C
	BGE	*'
*
*	BLT	2D
	BLT	*'
*
*	BGT	2E
	BGT	*'
*
*	BLE	2F
	BLE	*'
	PAGE	LONG BRANCHES
*
*	LBRA	1020
	LBRA	*'
*
*	LBRN	1021
	LBRN	*'
*
*	LBHI	1022
	LBHI	*'
*
*	LBLS	1023
	LBLS	*'
*
*	LBHS	1024
	LBHS	*'
*
*	LBCC	1024
	LBCC	*'
*
*	LBLO	1025
	LBLO	*'
*
*	LBCS	1025
	LBCS	*'
*
*	LBNE	1026
	LBNE	*'
*
*	LBEQ	1027
	LBEQ	*'
*
*	LBVC	1028
	LBVC	*'
*
*	LBVS	1029
	LBVS	*'
*
*	LBPL	102A
	LBPL	*'
*
*	LBMI	102LB
	LBMI	*'
*
*	BGE	102C
	LBGE	*'
*
*	LBLT	102D
	LBLT	*'
*
*	LBGT	102E
	LBGT	*'
*
*	LBLE	102F
	LBLE	*'
	PAGE	Micros Test
	ABA
	PSHS	B
	ADDA	,S+

	CBA
	PSHS	B
	CMPA	,S+

	CLC
	ANDCC	#$FE

	CLI
	ANDCC	#$EF

	CLV
	ANDCC	#$FD

	DES
	LEAS	-1,S

	DEX
	LEAX	-1,X

	INS
	LEAS	1,S

	INX
	LEAX	1,X

	PSHA
	PSHS	A

	PSHB
	PSHS	B

	PULA
	PULS	A

	PULB
	PULS	B

	SBA
	PSHS	B
	SUBA	,S+

	SEC
	ORCC	#$01

	SEI
	ORCC	#$10

	SEV
	ORCC	#$02

	TAB
	TFR	A,B
	TSTA

	TAP
	TFR	A,CC

	TBA
	TFR	B,A
	TSTA

	TDX
	TFR	D,X

	TPA
	TFR	CC,A

	TSX
	TFR	S,X

	TXD
	TFR	X,D

	TXS
	TFR	X,S

	WAI
	CWAI	#$FF
********** floating point stuff **************
	PGEN	1
	ORG	$1000
	FFC	909090909
	FFC	1
	FFC	2
	FFC	3
	FFC	4
	FFC	5
	FFC	6
	FFC	7
	FFC	8
	FFC	9
	FFC	10
	FFC	11
	FFC	12
	FFC	100
	FFC	1000
	FFC	99
	FFC	199
	FFC	99999999
	FFC	12345.6789
	FFC	1234E56
	FFC	123.4E-10
	FFC	-4321
	FFC	-777.77E-7
	END
