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

	mov	$fp,$0
	mov	$tp,$0
	mov	$gp,$0
	mov	$sp,$0


	sb	$0,($0)
	sh	$0,($0)
	sw	$0,($0)
	lb	$0,($0)
	lh	$0,($0)
	lw	$0,($0)
	lbu	$0,($0)
	lhu	$0,($0)
	sb	$15,($0)
	sh	$15,($0)
	sw	$15,($0)
	lb	$15,($0)
	lh	$15,($0)
	lw	$15,($0)
	lbu	$15,($0)
	lhu	$15,($0)
	sb	$0,($15)
	sh	$0,($15)
	sw	$0,($15)
	lb	$0,($15)
	lh	$0,($15)
	lw	$0,($15)
	lbu	$0,($15)
	lhu	$0,($15)
	sb	$15,($15)
	sh	$15,($15)
	sw	$15,($15)
	lb	$15,($15)
	lh	$15,($15)
	lw	$15,($15)
	lbu	$15,($15)
	lhu	$15,($15)

	sw	$0,0($sp)
	lw	$0,0($sp)
	sw	$15,0($sp)
	lw	$15,0($sp)
	sw	$0,124($sp)
	lw	$0,124($sp)
	sw	$15,124($sp)
	lw	$15,124($sp)
	sw	$0,0($15)
	lw	$0,0($15)
	sw	$15,0($15)
	lw	$15,0($15)
	sw	$0,124($15)
	lw	$0,124($15)
	sw	$15,124($15)
	lw	$15,124($15)

	sb	$0,0($tp)
	lb	$0,0($tp)
	lbu	$0,0($tp)
	sb	$7,0($tp)
	lb	$7,0($tp)
	lbu	$7,0($tp)
	sb	$0,127($tp)
	lb	$0,127($tp)
	lbu	$0,127($tp)
	sb	$7,127($tp)
	lb	$7,127($tp)
	lbu	$7,127($tp)
	sb	$0,%tpoff(symbol)($tp)
	lb	$0,%tpoff(symbol)($tp)
	lbu	$0,%tpoff(symbol)($tp)
	sb	$7,%tpoff(symbol)($tp)
	lb	$7,%tpoff(symbol)($tp)
	lbu	$7,%tpoff(symbol)($tp)
	sb	$0,0($13)
	lb	$0,0($13)
	lbu	$0,0($13)
	sb	$7,0($13)
	lb	$7,0($13)
	lbu	$7,0($13)
	sb	$0,127($13)
	lb	$0,127($13)
	lbu	$0,127($13)
	sb	$7,127($13)
	lb	$7,127($13)
	lbu	$7,127($13)
	sb	$0,%tpoff(symbol)($13)
	lb	$0,%tpoff(symbol)($13)
	lbu	$0,%tpoff(symbol)($13)
	sb	$7,%tpoff(symbol)($13)
	lb	$7,%tpoff(symbol)($13)
	lbu	$7,%tpoff(symbol)($13)

	sh	$0,0($tp)
	lh	$0,0($tp)
	lhu	$0,0($tp)
	sh	$7,0($tp)
	lh	$7,0($tp)
	lhu	$7,0($tp)
	sh	$0,126($tp)
	lh	$0,126($tp)
	lhu	$0,126($tp)
	sh	$7,126($tp)
	lh	$7,126($tp)
	lhu	$7,126($tp)
	sh	$0,%tpoff(symbol)($tp)
	lh	$0,%tpoff(symbol)($tp)
	lhu	$0,%tpoff(symbol)($tp)
	sh	$7,%tpoff(symbol)($tp)
	lh	$7,%tpoff(symbol)($tp)
	lhu	$7,%tpoff(symbol)($tp)
	sh	$0,0($13)
	lh	$0,0($13)
	lhu	$0,0($13)
	sh	$7,0($13)
	lh	$7,0($13)
	lhu	$7,0($13)
	sh	$0,126($13)
	lh	$0,126($13)
	lhu	$0,126($13)
	sh	$7,126($13)
	lh	$7,126($13)
	lhu	$7,126($13)
	sh	$0,%tpoff(symbol)($13)
	lh	$0,%tpoff(symbol)($13)
	lhu	$0,%tpoff(symbol)($13)
	sh	$7,%tpoff(symbol)($13)
	lh	$7,%tpoff(symbol)($13)
	lhu	$7,%tpoff(symbol)($13)

	sw	$0,0($tp)
	lw	$0,0($tp)
	sw	$7,0($tp)
	lw	$7,0($tp)
	sw	$0,124($tp)
	lw	$0,124($tp)
	sw	$7,124($tp)
	lw	$7,124($tp)
	sw	$0,%tpoff(symbol)($tp)
	lw	$0,%tpoff(symbol)($tp)
	sw	$7,%tpoff(symbol)($tp)
	lw	$7,%tpoff(symbol)($tp)
	sw	$0,0($13)
	lw	$0,0($13)
	sw	$7,0($13)
	lw	$7,0($13)
	sw	$0,124($13)
	lw	$0,124($13)
	sw	$7,124($13)
	lw	$7,124($13)
	sw	$0,%tpoff(symbol)($13)
	lw	$0,%tpoff(symbol)($13)
	sw	$7,%tpoff(symbol)($13)
	lw	$7,%tpoff(symbol)($13)

	sb	$0,-32768($0)
	sh	$0,-32768($0)
	sw	$0,-32768($0)
	lb	$0,-32768($0)
	lh	$0,-32768($0)
	lw	$0,-32768($0)
	lbu	$0,-32768($0)
	lhu	$0,-32768($0)
	sb	$15,-32768($0)
	sh	$15,-32768($0)
	sw	$15,-32768($0)
	lb	$15,-32768($0)
	lh	$15,-32768($0)
	lw	$15,-32768($0)
	lbu	$15,-32768($0)
	lhu	$15,-32768($0)
	sb	$0,32767($0)
	sh	$0,32767($0)
	sw	$0,32767($0)
	lb	$0,32767($0)
	lh	$0,32767($0)
	lw	$0,32767($0)
	lbu	$0,32767($0)
	lhu	$0,32767($0)
	sb	$15,32767($0)
	sh	$15,32767($0)
	sw	$15,32767($0)
	lb	$15,32767($0)
	lh	$15,32767($0)
	lw	$15,32767($0)
	lbu	$15,32767($0)
	lhu	$15,32767($0)
	sb	$0,%sdaoff(symbol)($0)
	sh	$0,%sdaoff(symbol)($0)
	sw	$0,%sdaoff(symbol)($0)
	lb	$0,%sdaoff(symbol)($0)
	lh	$0,%sdaoff(symbol)($0)
	lw	$0,%sdaoff(symbol)($0)
	lbu	$0,%sdaoff(symbol)($0)
	lhu	$0,%sdaoff(symbol)($0)
	sb	$15,%sdaoff(symbol)($0)
	sh	$15,%sdaoff(symbol)($0)
	sw	$15,%sdaoff(symbol)($0)
	lb	$15,%sdaoff(symbol)($0)
	lh	$15,%sdaoff(symbol)($0)
	lw	$15,%sdaoff(symbol)($0)
	lbu	$15,%sdaoff(symbol)($0)
	lhu	$15,%sdaoff(symbol)($0)
	sb	$0,-32768($0)
	sh	$0,-32768($0)
	sw	$0,-32768($0)
	lb	$0,-32768($0)
	lh	$0,-32768($0)
	lw	$0,-32768($0)
	lbu	$0,-32768($0)
	lhu	$0,-32768($0)
	sb	$15,-32768($0)
	sh	$15,-32768($0)
	sw	$15,-32768($0)
	lb	$15,-32768($0)
	lh	$15,-32768($0)
	lw	$15,-32768($0)
	lbu	$15,-32768($0)
	lhu	$15,-32768($0)
	sb	$0,32767($0)
	sh	$0,32767($0)
	sw	$0,32767($0)
	lb	$0,32767($0)
	lh	$0,32767($0)
	lw	$0,32767($0)
	lbu	$0,32767($0)
	lhu	$0,32767($0)
	sb	$15,32767($0)
	sh	$15,32767($0)
	sw	$15,32767($0)
	lb	$15,32767($0)
	lh	$15,32767($0)
	lw	$15,32767($0)
	lbu	$15,32767($0)
	lhu	$15,32767($0)
	sb	$0,%tpoff(symbol)($0)
	sh	$0,%tpoff(symbol)($0)
	sw	$0,%tpoff(symbol)($0)
	lb	$0,%tpoff(symbol)($0)
	lh	$0,%tpoff(symbol)($0)
	lw	$0,%tpoff(symbol)($0)
	lbu	$0,%tpoff(symbol)($0)
	lhu	$0,%tpoff(symbol)($0)
	sb	$15,%tpoff(symbol)($0)
	sh	$15,%tpoff(symbol)($0)
	sw	$15,%tpoff(symbol)($0)
	lb	$15,%tpoff(symbol)($0)
	lh	$15,%tpoff(symbol)($0)
	lw	$15,%tpoff(symbol)($0)
	lbu	$15,%tpoff(symbol)($0)
	lhu	$15,%tpoff(symbol)($0)
	sb	$0,-32768($15)
	sh	$0,-32768($15)
	sw	$0,-32768($15)
	lb	$0,-32768($15)
	lh	$0,-32768($15)
	lw	$0,-32768($15)
	lbu	$0,-32768($15)
	lhu	$0,-32768($15)
	sb	$15,-32768($15)
	sh	$15,-32768($15)
	sw	$15,-32768($15)
	lb	$15,-32768($15)
	lh	$15,-32768($15)
	lw	$15,-32768($15)
	lbu	$15,-32768($15)
	lhu	$15,-32768($15)
	sb	$0,32767($15)
	sh	$0,32767($15)
	sw	$0,32767($15)
	lb	$0,32767($15)
	lh	$0,32767($15)
	lw	$0,32767($15)
	lbu	$0,32767($15)
	lhu	$0,32767($15)
	sb	$15,32767($15)
	sh	$15,32767($15)
	sw	$15,32767($15)
	lb	$15,32767($15)
	lh	$15,32767($15)
	lw	$15,32767($15)
	lbu	$15,32767($15)
	lhu	$15,32767($15)
	sb	$0,%sdaoff(symbol)($15)
	sh	$0,%sdaoff(symbol)($15)
	sw	$0,%sdaoff(symbol)($15)
	lb	$0,%sdaoff(symbol)($15)
	lh	$0,%sdaoff(symbol)($15)
	lw	$0,%sdaoff(symbol)($15)
	lbu	$0,%sdaoff(symbol)($15)
	lhu	$0,%sdaoff(symbol)($15)
	sb	$15,%sdaoff(symbol)($15)
	sh	$15,%sdaoff(symbol)($15)
	sw	$15,%sdaoff(symbol)($15)
	lb	$15,%sdaoff(symbol)($15)
	lh	$15,%sdaoff(symbol)($15)
	lw	$15,%sdaoff(symbol)($15)
	lbu	$15,%sdaoff(symbol)($15)
	lhu	$15,%sdaoff(symbol)($15)
	sb	$0,-32768($15)
	sh	$0,-32768($15)
	sw	$0,-32768($15)
	lb	$0,-32768($15)
	lh	$0,-32768($15)
	lw	$0,-32768($15)
	lbu	$0,-32768($15)
	lhu	$0,-32768($15)
	sb	$15,-32768($15)
	sh	$15,-32768($15)
	sw	$15,-32768($15)
	lb	$15,-32768($15)
	lh	$15,-32768($15)
	lw	$15,-32768($15)
	lbu	$15,-32768($15)
	lhu	$15,-32768($15)
	sb	$0,32767($15)
	sh	$0,32767($15)
	sw	$0,32767($15)
	lb	$0,32767($15)
	lh	$0,32767($15)
	lw	$0,32767($15)
	lbu	$0,32767($15)
	lhu	$0,32767($15)
	sb	$15,32767($15)
	sh	$15,32767($15)
	sw	$15,32767($15)
	lb	$15,32767($15)
	lh	$15,32767($15)
	lw	$15,32767($15)
	lbu	$15,32767($15)
	lhu	$15,32767($15)
	sb	$0,%tpoff(symbol)($15)
	sh	$0,%tpoff(symbol)($15)
	sw	$0,%tpoff(symbol)($15)
	lb	$0,%tpoff(symbol)($15)
	lh	$0,%tpoff(symbol)($15)
	lw	$0,%tpoff(symbol)($15)
	lbu	$0,%tpoff(symbol)($15)
	lhu	$0,%tpoff(symbol)($15)
	sb	$15,%tpoff(symbol)($15)
	sh	$15,%tpoff(symbol)($15)
	sw	$15,%tpoff(symbol)($15)
	lb	$15,%tpoff(symbol)($15)
	lh	$15,%tpoff(symbol)($15)
	lw	$15,%tpoff(symbol)($15)
	lbu	$15,%tpoff(symbol)($15)
	lhu	$15,%tpoff(symbol)($15)

	sw	$0,(0)
	lw	$0,(0)
	sw	$15,(0)
	lw	$15,(0)
	sw	$0,(0xfffffc)
	lw	$0,(0xfffffc)
	sw	$15,(0xfffffc)
	lw	$15,(0xfffffc)
	sw	$0,(symbol)
	lw	$0,(symbol)
	sw	$15,(symbol)
	lw	$15,(symbol)


	extb	$0
	extub	$0
	exth	$0
	extuh	$0
	extb	$15
	extub	$15
	exth	$15
	extuh	$15


	ssarb	0($0)
	ssarb	3($0)
	ssarb	0($15)
	ssarb	3($15)


	mov	$0,$0
	mov	$15,$0
	mov	$0,$15
	mov	$15,$15
	mov	$0,-32768
	mov	$15,-32768
	mov	$0,-128
	mov	$15,-128
	mov	$0,0
	mov	$15,0
	mov	$0,127
	mov	$15,127
	mov	$0,32767
	mov	$15,32767

	mov	$0,%lo(symbol)
	mov	$0,%hi(symbol)
	mov	$0,%uhi(symbol)
	mov	$0,%sdaoff(symbol)
	mov	$0,%tpoff(symbol)

	movu	$0,0
	movu	$7,0
	movu	$0,0xffffff
	movu	$7,0xffffff
	movu	$0,%lo(symbol)
	movu	$7,%lo(symbol)
	movu	$0,symbol
	movu	$7,symbol

	movu	$0,0
	movh	$0,0
	movu	$15,0
	movh	$15,0
	movu	$0,0xffff
	movh	$0,0xffff
	movu	$15,0xffff
	movh	$15,0xffff

	movu	$0,%lo(symbol)
	movh	$0,%lo(symbol)
	movu	$15,%lo(symbol)
	movh	$15,%lo(symbol)
	movu	$0,%hi(symbol)
	movh	$0,%hi(symbol)
	movu	$15,%hi(symbol)
	movh	$15,%hi(symbol)
	movu	$0,%uhi(symbol)
	movh	$0,%uhi(symbol)
	movu	$15,%uhi(symbol)
	movh	$15,%uhi(symbol)
	movu	$0,%lo(0x12345678)
	movh	$0,%lo(0x12345678)
	movu	$15,%lo(0x12345678)
	movh	$15,%lo(0x12345678)
	movu	$0,%hi(0x12345678)
	movh	$0,%hi(0x12345678)
	movu	$15,%hi(0x12345678)
	movh	$15,%hi(0x12345678)
	movu	$0,%uhi(0x12345678)
	movh	$0,%uhi(0x12345678)
	movu	$15,%uhi(0x12345678)
	movh	$15,%uhi(0x12345678)


	add3	$0,$0,$0
	add3	$15,$0,$0
	add3	$0,$15,$0
	add3	$15,$15,$0
	add3	$0,$0,$15
	add3	$15,$0,$15
	add3	$0,$15,$15
	add3	$15,$15,$15

	add	$0,-16
	add	$15,-16
	add	$0,0
	add	$15,0
	add	$0,15
	add	$15,15

	add3	$0,$sp,0
	add3	$15,$sp,0
	add3	$0,$sp,124
	add3	$15,$sp,124
	add3	$0,$sp,1
	add3	$15,$sp,1

	advck3	$0,$0,$0
	sbvck3	$0,$0,$0
	advck3	$0,$15,$0
	sbvck3	$0,$15,$0
	advck3	$0,$0,$15
	sbvck3	$0,$0,$15
	advck3	$0,$15,$15
	sbvck3	$0,$15,$15

	sub	$0,$0
	neg	$0,$0
	sub	$15,$0
	neg	$15,$0
	sub	$0,$15
	neg	$0,$15
	sub	$15,$15
	neg	$15,$15

	slt3	$0,$0,$0
	sltu3	$0,$0,$0
	sl1ad3	$0,$0,$0
	sl2ad3	$0,$0,$0
	slt3	$0,$15,$0
	sltu3	$0,$15,$0
	sl1ad3	$0,$15,$0
	sl2ad3	$0,$15,$0
	slt3	$0,$0,$15
	sltu3	$0,$0,$15
	sl1ad3	$0,$0,$15
	sl2ad3	$0,$0,$15
	slt3	$0,$15,$15
	sltu3	$0,$15,$15
	sl1ad3	$0,$15,$15
	sl2ad3	$0,$15,$15

	add3	$0,$0,-32768
	add3	$15,$0,-32768
	add3	$0,$15,-32768
	add3	$15,$15,-32768
	add3	$0,$0,32767
	add3	$15,$0,32767
	add3	$0,$15,32767
	add3	$15,$15,32767
	add3	$0,$0,%lo(symbol)
	add3	$15,$0,%lo(symbol)
	add3	$0,$15,%lo(symbol)
	add3	$15,$15,%lo(symbol)

	slt3	$0,$0,0
	sltu3	$0,$0,0
	slt3	$0,$15,0
	sltu3	$0,$15,0
	slt3	$0,$0,31
	sltu3	$0,$0,31
	slt3	$0,$15,31
	sltu3	$0,$15,31


	or	$0,$0
	and	$0,$0
	xor	$0,$0
	nor	$0,$0
	or	$15,$0
	and	$15,$0
	xor	$15,$0
	nor	$15,$0
	or	$0,$15
	and	$0,$15
	xor	$0,$15
	nor	$0,$15
	or	$15,$15
	and	$15,$15
	xor	$15,$15
	nor	$15,$15

	or3	$0,$0,0
	and3	$0,$0,0
	xor3	$0,$0,0
	or3	$15,$0,0
	and3	$15,$0,0
	xor3	$15,$0,0
	or3	$0,$15,0
	and3	$0,$15,0
	xor3	$0,$15,0
	or3	$15,$15,0
	and3	$15,$15,0
	xor3	$15,$15,0
	or3	$0,$0,65535
	and3	$0,$0,65535
	xor3	$0,$0,65535
	or3	$15,$0,65535
	and3	$15,$0,65535
	xor3	$15,$0,65535
	or3	$0,$15,65535
	and3	$0,$15,65535
	xor3	$0,$15,65535
	or3	$15,$15,65535
	and3	$15,$15,65535
	xor3	$15,$15,65535
	or3	$0,$0,%lo(symbol)
	and3	$0,$0,%lo(symbol)
	xor3	$0,$0,%lo(symbol)
	or3	$15,$0,%lo(symbol)
	and3	$15,$0,%lo(symbol)
	xor3	$15,$0,%lo(symbol)
	or3	$0,$15,%lo(symbol)
	and3	$0,$15,%lo(symbol)
	xor3	$0,$15,%lo(symbol)
	or3	$15,$15,%lo(symbol)
	and3	$15,$15,%lo(symbol)
	xor3	$15,$15,%lo(symbol)


	sra	$0,$0
	srl	$0,$0
	sll	$0,$0
	fsft	$0,$0
	sra	$15,$0
	srl	$15,$0
	sll	$15,$0
	fsft	$15,$0
	sra	$0,$15
	srl	$0,$15
	sll	$0,$15
	fsft	$0,$15
	sra	$15,$15
	srl	$15,$15
	sll	$15,$15
	fsft	$15,$15

	sra	$0,0
	srl	$0,0
	sll	$0,0
	sra	$15,0
	srl	$15,0
	sll	$15,0
	sra	$0,31
	srl	$0,31
	sll	$0,31
	sra	$15,31
	srl	$15,31
	sll	$15,31

	sll3	$0,$0,0
	sll3	$0,$15,0
	sll3	$0,$0,31
	sll3	$0,$15,31


	bra	.-2048+2
	bra	.+2046+2
	bra	symbol

	beqz	$0,.-128+2
	bnez	$0,.-128+2
	beqz	$15,.-128+2
	bnez	$15,.-128+2
	beqz	$0,.+126+2
	bnez	$0,.+126+2
	beqz	$15,.+126+2
	bnez	$15,.+126+2
	beqz	$0,symbol
	bnez	$0,symbol
	beqz	$15,symbol
	bnez	$15,symbol

	beqi	$0,0,.-65536+4
	bnei	$0,0,.-65536+4
	blti	$0,0,.-65536+4
	bgei	$0,0,.-65536+4
	beqi	$15,0,.-65536+4
	bnei	$15,0,.-65536+4
	blti	$15,0,.-65536+4
	bgei	$15,0,.-65536+4
	beqi	$0,15,.-65536+4
	bnei	$0,15,.-65536+4
	blti	$0,15,.-65536+4
	bgei	$0,15,.-65536+4
	beqi	$15,15,.-65536+4
	bnei	$15,15,.-65536+4
	blti	$15,15,.-65536+4
	bgei	$15,15,.-65536+4
	beqi	$0,0,.+32763+4
	bnei	$0,0,.+32763+4
	blti	$0,0,.+32763+4
	bgei	$0,0,.+32763+4
	beqi	$15,0,.+32763+4
	bnei	$15,0,.+32763+4
	blti	$15,0,.+32763+4
	bgei	$15,0,.+32763+4
	beqi	$0,15,.+32763+4
	bnei	$0,15,.+32763+4
	blti	$0,15,.+32763+4
	bgei	$0,15,.+32763+4
	beqi	$15,15,.+32763+4
	bnei	$15,15,.+32763+4
	blti	$15,15,.+32763+4
	bgei	$15,15,.+32763+4
	beqi	$0,0,symbol
	bnei	$0,0,symbol
	blti	$0,0,symbol
	bgei	$0,0,symbol
	beqi	$15,0,symbol
	bnei	$15,0,symbol
	blti	$15,0,symbol
	bgei	$15,0,symbol
	beqi	$0,15,symbol
	bnei	$0,15,symbol
	blti	$0,15,symbol
	bgei	$0,15,symbol
	beqi	$15,15,symbol
	bnei	$15,15,symbol
	blti	$15,15,symbol
	bgei	$15,15,symbol

	beq	$0,$0,.-65536+4
	bne	$0,$0,.-65536+4
	beq	$15,$0,.-65536+4
	bne	$15,$0,.-65536+4
	beq	$0,$15,.-65536+4
	bne	$0,$15,.-65536+4
	beq	$15,$15,.-65536+4
	bne	$15,$15,.-65536+4
	beq	$0,$0,.+32763+4
	bne	$0,$0,.+32763+4
	beq	$15,$0,.+32763+4
	bne	$15,$0,.+32763+4
	beq	$0,$15,.+32763+4
	bne	$0,$15,.+32763+4
	beq	$15,$15,.+32763+4
	bne	$15,$15,.+32763+4
	beq	$0,$0,symbol
	bne	$0,$0,symbol
	beq	$15,$0,symbol
	bne	$15,$0,symbol
	beq	$0,$15,symbol
	bne	$0,$15,symbol
	beq	$15,$15,symbol
	bne	$15,$15,symbol

	bsr	.-0x800000+4
	bsr	.-2048+2
	bsr	.+2046+2
	bsr	.+0x7ffffe+4
	bsr	symbol

	jmp	$0
	jmp	$15
	jmp	0
	jmp	0xfffffe
	jmp	symbol

	jsr	$0
	jsr	$15

	ret

	repeat	$0,.-65536+4
	repeat	$15,.-65536+4
	repeat	$0,.+32763+4
	repeat	$15,.+32763+4
	repeat	$0,symbol
	repeat	$15,symbol

	erepeat	.-65536+4
	erepeat	.+32763+4
	erepeat	symbol


	stc	$0,$pc
	ldc	$0,$pc
	stc	$15,$pc
	ldc	$15,$pc
	stc	$0,$lp
	ldc	$0,$lp
	stc	$15,$lp
	ldc	$15,$lp
	stc	$0,$sar
	ldc	$0,$sar
	stc	$15,$sar
	ldc	$15,$sar
	stc	$0,$rpb
	ldc	$0,$rpb
	stc	$15,$rpb
	ldc	$15,$rpb
	stc	$0,$rpe
	ldc	$0,$rpe
	stc	$15,$rpe
	ldc	$15,$rpe
	stc	$0,$rpc
	ldc	$0,$rpc
	stc	$15,$rpc
	ldc	$15,$rpc
	stc	$0,$hi
	ldc	$0,$hi
	stc	$15,$hi
	ldc	$15,$hi
	stc	$0,$lo
	ldc	$0,$lo
	stc	$15,$lo
	ldc	$15,$lo
	stc	$0,$mb0
	ldc	$0,$mb0
	stc	$15,$mb0
	ldc	$15,$mb0
	stc	$0,$me0
	ldc	$0,$me0
	stc	$15,$me0
	ldc	$15,$me0
	stc	$0,$mb1
	ldc	$0,$mb1
	stc	$15,$mb1
	ldc	$15,$mb1
	stc	$0,$me1
	ldc	$0,$me1
	stc	$15,$me1
	ldc	$15,$me1

	stc	$0,$psw
	ldc	$0,$psw
	stc	$15,$psw
	ldc	$15,$psw
	stc	$0,$id
	ldc	$0,$id
	stc	$15,$id
	ldc	$15,$id
	stc	$0,$tmp
	ldc	$0,$tmp
	stc	$15,$tmp
	ldc	$15,$tmp
	stc	$0,$epc
	ldc	$0,$epc
	stc	$15,$epc
	ldc	$15,$epc
	stc	$0,$exc
	ldc	$0,$exc
	stc	$15,$exc
	ldc	$15,$exc
	stc	$0,$cfg
	ldc	$0,$cfg
	stc	$15,$cfg
	ldc	$15,$cfg
	stc	$0,$npc
	ldc	$0,$npc
	stc	$15,$npc
	ldc	$15,$npc
	stc	$0,$dbg
	ldc	$0,$dbg
	stc	$15,$dbg
	ldc	$15,$dbg
	stc	$0,$depc
	ldc	$0,$depc
	stc	$15,$depc
	ldc	$15,$depc
	stc	$0,$opt
	ldc	$0,$opt
	stc	$15,$opt
	ldc	$15,$opt
	stc	$0,$rcfg
	ldc	$0,$rcfg
	stc	$15,$rcfg
	ldc	$15,$rcfg
	stc	$0,$ccfg
	ldc	$0,$ccfg
	stc	$15,$ccfg
	ldc	$15,$ccfg

	di
	ei
	reti
	halt
	break
	syncm

	swi	0
	swi	3

	stcb	$0,0
	ldcb	$0,0
	stcb	$15,0
	ldcb	$15,0
	stcb	$0,65535
	ldcb	$0,65535
	stcb	$15,65535
	ldcb	$15,65535
	stcb	$0,symbol
	ldcb	$0,symbol
	stcb	$15,symbol
	ldcb	$15,symbol


	bsetm	($0),0
	bclrm	($0),0
	bnotm	($0),0
	bsetm	($15),0
	bclrm	($15),0
	bnotm	($15),0
	bsetm	($0),7
	bclrm	($0),7
	bnotm	($0),7
	bsetm	($15),7
	bclrm	($15),7
	bnotm	($15),7

	btstm	$0,($0),0
	btstm	$0,($15),0
	btstm	$0,($0),7
	btstm	$0,($15),7

	tas	$0,($0)
	tas	$15,($0)
	tas	$0,($15)
	tas	$15,($15)


	cache	0,($0)
	cache	3,($0)
	cache	0,($15)
	cache	3,($15)

	mul	$0,$0
	madd	$0,$0
	mulr	$0,$0
	maddr	$0,$0
	mulu	$0,$0
	maddu	$0,$0
	mulru	$0,$0
	maddru	$0,$0
	mul	$15,$0
	madd	$15,$0
	mulr	$15,$0
	maddr	$15,$0
	mulu	$15,$0
	maddu	$15,$0
	mulru	$15,$0
	maddru	$15,$0
	mul	$0,$15
	madd	$0,$15
	mulr	$0,$15
	maddr	$0,$15
	mulu	$0,$15
	maddu	$0,$15
	mulru	$0,$15
	maddru	$0,$15
	mul	$15,$15
	madd	$15,$15
	mulr	$15,$15
	maddr	$15,$15
	mulu	$15,$15
	maddu	$15,$15
	mulru	$15,$15
	maddru	$15,$15

	div	$0,$0
	divu	$0,$0
	div	$15,$0
	divu	$15,$0
	div	$0,$15
	divu	$0,$15
	div	$15,$15
	divu	$15,$15

	dret
	dbreak

	ldz	$0,$0
	abs	$0,$0
	ave	$0,$0
	ldz	$15,$0
	abs	$15,$0
	ave	$15,$0
	ldz	$0,$15
	abs	$0,$15
	ave	$0,$15
	ldz	$15,$15
	abs	$15,$15
	ave	$15,$15

	min	$0,$0
	max	$0,$0
	minu	$0,$0
	maxu	$0,$0
	min	$15,$0
	max	$15,$0
	minu	$15,$0
	maxu	$15,$0
	min	$0,$15
	max	$0,$15
	minu	$0,$15
	maxu	$0,$15
	min	$15,$15
	max	$15,$15
	minu	$15,$15
	maxu	$15,$15

	clip	$0,0
	clipu	$0,0
	clip	$15,0
	clipu	$15,0
	clip	$0,31
	clipu	$0,31
	clip	$15,31
	clipu	$15,31

	sadd	$0,$0
	ssub	$0,$0
	saddu	$0,$0
	ssubu	$0,$0
	sadd	$15,$0
	ssub	$15,$0
	saddu	$15,$0
	ssubu	$15,$0
	sadd	$0,$15
	ssub	$0,$15
	saddu	$0,$15
	ssubu	$0,$15
	sadd	$15,$15
	ssub	$15,$15
	saddu	$15,$15
	ssubu	$15,$15

	swcp	$c0,($0)
	lwcp	$c0,($0)
	smcp	$c0,($0)
	lmcp	$c0,($0)
	swcp	$c15,($0)
	lwcp	$c15,($0)
	smcp	$c15,($0)
	lmcp	$c15,($0)
	swcp	$c0,($15)
	lwcp	$c0,($15)
	smcp	$c0,($15)
	lmcp	$c0,($15)
	swcp	$c15,($15)
	lwcp	$c15,($15)
	smcp	$c15,($15)
	lmcp	$c15,($15)

	swcpi	$c0,($0+)
	lwcpi	$c0,($0+)
	smcpi	$c0,($0+)
	lmcpi	$c0,($0+)
	swcpi	$c15,($0+)
	lwcpi	$c15,($0+)
	smcpi	$c15,($0+)
	lmcpi	$c15,($0+)
	swcpi	$c0,($15+)
	lwcpi	$c0,($15+)
	smcpi	$c0,($15+)
	lmcpi	$c0,($15+)
	swcpi	$c15,($15+)
	lwcpi	$c15,($15+)
	smcpi	$c15,($15+)
	lmcpi	$c15,($15+)

	sbcpa	$c0,($0+),-128
	lbcpa	$c0,($0+),-128
	sbcpm0	$c0,($0+),-128
	lbcpm0	$c0,($0+),-128
	sbcpm1	$c0,($0+),-128
	lbcpm1	$c0,($0+),-128
	sbcpa	$c15,($0+),-128
	lbcpa	$c15,($0+),-128
	sbcpm0	$c15,($0+),-128
	lbcpm0	$c15,($0+),-128
	sbcpm1	$c15,($0+),-128
	lbcpm1	$c15,($0+),-128
	sbcpa	$c0,($15+),-128
	lbcpa	$c0,($15+),-128
	sbcpm0	$c0,($15+),-128
	lbcpm0	$c0,($15+),-128
	sbcpm1	$c0,($15+),-128
	lbcpm1	$c0,($15+),-128
	sbcpa	$c15,($15+),-128
	lbcpa	$c15,($15+),-128
	sbcpm0	$c15,($15+),-128
	lbcpm0	$c15,($15+),-128
	sbcpm1	$c15,($15+),-128
	lbcpm1	$c15,($15+),-128
	sbcpa	$c0,($0+),127
	lbcpa	$c0,($0+),127
	sbcpm0	$c0,($0+),127
	lbcpm0	$c0,($0+),127
	sbcpm1	$c0,($0+),127
	lbcpm1	$c0,($0+),127
	sbcpa	$c15,($0+),127
	lbcpa	$c15,($0+),127
	sbcpm0	$c15,($0+),127
	lbcpm0	$c15,($0+),127
	sbcpm1	$c15,($0+),127
	lbcpm1	$c15,($0+),127
	sbcpa	$c0,($15+),127
	lbcpa	$c0,($15+),127
	sbcpm0	$c0,($15+),127
	lbcpm0	$c0,($15+),127
	sbcpm1	$c0,($15+),127
	lbcpm1	$c0,($15+),127
	sbcpa	$c15,($15+),127
	lbcpa	$c15,($15+),127
	sbcpm0	$c15,($15+),127
	lbcpm0	$c15,($15+),127
	sbcpm1	$c15,($15+),127
	lbcpm1	$c15,($15+),127

	shcpa	$c0,($0+),-128
	lhcpa	$c0,($0+),-128
	shcpm0	$c0,($0+),-128
	lhcpm0	$c0,($0+),-128
	shcpm1	$c0,($0+),-128
	lhcpm1	$c0,($0+),-128
	shcpa	$c15,($0+),-128
	lhcpa	$c15,($0+),-128
	shcpm0	$c15,($0+),-128
	lhcpm0	$c15,($0+),-128
	shcpm1	$c15,($0+),-128
	lhcpm1	$c15,($0+),-128
	shcpa	$c0,($15+),-128
	lhcpa	$c0,($15+),-128
	shcpm0	$c0,($15+),-128
	lhcpm0	$c0,($15+),-128
	shcpm1	$c0,($15+),-128
	lhcpm1	$c0,($15+),-128
	shcpa	$c15,($15+),-128
	lhcpa	$c15,($15+),-128
	shcpm0	$c15,($15+),-128
	lhcpm0	$c15,($15+),-128
	shcpm1	$c15,($15+),-128
	lhcpm1	$c15,($15+),-128
	shcpa	$c0,($0+),126
	lhcpa	$c0,($0+),126
	shcpm0	$c0,($0+),126
	lhcpm0	$c0,($0+),126
	shcpm1	$c0,($0+),126
	lhcpm1	$c0,($0+),126
	shcpa	$c15,($0+),126
	lhcpa	$c15,($0+),126
	shcpm0	$c15,($0+),126
	lhcpm0	$c15,($0+),126
	shcpm1	$c15,($0+),126
	lhcpm1	$c15,($0+),126
	shcpa	$c0,($15+),126
	lhcpa	$c0,($15+),126
	shcpm0	$c0,($15+),126
	lhcpm0	$c0,($15+),126
	shcpm1	$c0,($15+),126
	lhcpm1	$c0,($15+),126
	shcpa	$c15,($15+),126
	lhcpa	$c15,($15+),126
	shcpm0	$c15,($15+),126
	lhcpm0	$c15,($15+),126
	shcpm1	$c15,($15+),126
	lhcpm1	$c15,($15+),126

	swcpa	$c0,($0+),-128
	lwcpa	$c0,($0+),-128
	swcpm0	$c0,($0+),-128
	lwcpm0	$c0,($0+),-128
	swcpm1	$c0,($0+),-128
	lwcpm1	$c0,($0+),-128
	swcpa	$c15,($0+),-128
	lwcpa	$c15,($0+),-128
	swcpm0	$c15,($0+),-128
	lwcpm0	$c15,($0+),-128
	swcpm1	$c15,($0+),-128
	lwcpm1	$c15,($0+),-128
	swcpa	$c0,($15+),-128
	lwcpa	$c0,($15+),-128
	swcpm0	$c0,($15+),-128
	lwcpm0	$c0,($15+),-128
	swcpm1	$c0,($15+),-128
	lwcpm1	$c0,($15+),-128
	swcpa	$c15,($15+),-128
	lwcpa	$c15,($15+),-128
	swcpm0	$c15,($15+),-128
	lwcpm0	$c15,($15+),-128
	swcpm1	$c15,($15+),-128
	lwcpm1	$c15,($15+),-128
	swcpa	$c0,($0+),124
	lwcpa	$c0,($0+),124
	swcpm0	$c0,($0+),124
	lwcpm0	$c0,($0+),124
	swcpm1	$c0,($0+),124
	lwcpm1	$c0,($0+),124
	swcpa	$c15,($0+),124
	lwcpa	$c15,($0+),124
	swcpm0	$c15,($0+),124
	lwcpm0	$c15,($0+),124
	swcpm1	$c15,($0+),124
	lwcpm1	$c15,($0+),124
	swcpa	$c0,($15+),124
	lwcpa	$c0,($15+),124
	swcpm0	$c0,($15+),124
	lwcpm0	$c0,($15+),124
	swcpm1	$c0,($15+),124
	lwcpm1	$c0,($15+),124
	swcpa	$c15,($15+),124
	lwcpa	$c15,($15+),124
	swcpm0	$c15,($15+),124
	lwcpm0	$c15,($15+),124
	swcpm1	$c15,($15+),124
	lwcpm1	$c15,($15+),124

	smcpa	$c0,($0+),-128
	lmcpa	$c0,($0+),-128
	smcpm0	$c0,($0+),-128
	lmcpm0	$c0,($0+),-128
	smcpm1	$c0,($0+),-128
	lmcpm1	$c0,($0+),-128
	smcpa	$c15,($0+),-128
	lmcpa	$c15,($0+),-128
	smcpm0	$c15,($0+),-128
	lmcpm0	$c15,($0+),-128
	smcpm1	$c15,($0+),-128
	lmcpm1	$c15,($0+),-128
	smcpa	$c0,($15+),-128
	lmcpa	$c0,($15+),-128
	smcpm0	$c0,($15+),-128
	lmcpm0	$c0,($15+),-128
	smcpm1	$c0,($15+),-128
	lmcpm1	$c0,($15+),-128
	smcpa	$c15,($15+),-128
	lmcpa	$c15,($15+),-128
	smcpm0	$c15,($15+),-128
	lmcpm0	$c15,($15+),-128
	smcpm1	$c15,($15+),-128
	lmcpm1	$c15,($15+),-128
	smcpa	$c0,($0+),120
	lmcpa	$c0,($0+),120
	smcpm0	$c0,($0+),120
	lmcpm0	$c0,($0+),120
	smcpm1	$c0,($0+),120
	lmcpm1	$c0,($0+),120
	smcpa	$c15,($0+),120
	lmcpa	$c15,($0+),120
	smcpm0	$c15,($0+),120
	lmcpm0	$c15,($0+),120
	smcpm1	$c15,($0+),120
	lmcpm1	$c15,($0+),120
	smcpa	$c0,($15+),120
	lmcpa	$c0,($15+),120
	smcpm0	$c0,($15+),120
	lmcpm0	$c0,($15+),120
	smcpm1	$c0,($15+),120
	lmcpm1	$c0,($15+),120
	smcpa	$c15,($15+),120
	lmcpa	$c15,($15+),120
	smcpm0	$c15,($15+),120
	lmcpm0	$c15,($15+),120
	smcpm1	$c15,($15+),120
	lmcpm1	$c15,($15+),120

/*	
	cmov	$c0,$0
	cmov	$c15,$0
	cmov	$c0,$15
	cmov	$c15,$15

	cmov	$0,$c0
	cmov	$15,$c0
	cmov	$0,$c15
	cmov	$15,$c15

	cmovc	$ccr0,$0
	cmovc	$ccr15,$0
	cmovc	$ccr0,$15
	cmovc	$ccr15,$15

	cmovc	$0,$ccr0
	cmovc	$15,$ccr0
	cmovc	$0,$ccr15
	cmovc	$15,$ccr15

	cmovh	$c0,$0
	cmovh	$c15,$0
	cmovh	$c0,$15
	cmovh	$c15,$15

	cmovh	$0,$c0
	cmovh	$15,$c0
	cmovh	$0,$c15
	cmovh	$15,$c15
*/
	bcpeq	0,.-65536+4
	bcpne	0,.-65536+4
	bcpat	0,.-65536+4
	bcpaf	0,.-65536+4
	bcpeq	15,.-65536+4
	bcpne	15,.-65536+4
	bcpat	15,.-65536+4
	bcpaf	15,.-65536+4
	bcpeq	0,.+32763+4
	bcpne	0,.+32763+4
	bcpat	0,.+32763+4
	bcpaf	0,.+32763+4
	bcpeq	15,.+32763+4
	bcpne	15,.+32763+4
	bcpat	15,.+32763+4
	bcpaf	15,.+32763+4
	bcpeq	0,symbol
	bcpne	0,symbol
	bcpat	0,symbol
	bcpaf	0,symbol
	bcpeq	15,symbol
	bcpne	15,symbol
	bcpat	15,symbol
	bcpaf	15,symbol

	synccp

	jsrv	$0
	jsrv	$15

	bsrv	.+4-0x800000
	bsrv	.+4+0x7ffffb
	bsrv	symbol


	.byte	symbol
	.short	symbol
	.long	symbol


