; tests all the instructions except for ret


	movi 	r0 5
	movi	r1 22
	movi 	r2 0 
	or	r2 r0	;r2 = 5
	and	r0 r1	;r0 = 4
	xor	r1 r2	;r1 = 19 
	movi 	r3 0
	not	r3	;r3 = ffff
	mov	r4 r0 	;r4 = 4
	movi	r5 0
	add	r5 r4	;r5 = 4 
	sub	r2 r5	;r2 = 1 
	cmp	r4 r5
	ifs	cc_z	;eq
	addi	r4 1	; r4 = 5 
	cmp 	r4 r5
	ifs	cc_z
	movi 	r0 8	;r0 = 4 
	
	movi 	r6 1
	lsli	r6 3
	lsri	r6 2	;r6 = 2

	movi 	r7 -4
	asri	r7 1	;r7 = -2 

	movi	r8 60
	lsli 	r8 8 
	addi 	r8 7
	roti	r8 8	;073c
	roti 	r8 4	;73c0 

	movi	r9 8
	subi	r9 50	;r9 = -42 
	cmpi	r9 -42

	movi 	r10 0
store	st	r9 r10	;store - 4
	movi	r10 1	;r10 = 1 
	
	movi 	r11 0
	sub 	r11 r10	;r11 = -1,-2 
	cmpi	r11 -2
	ifs 	cc_z	;eq 
	ret	

	bsr	subr	
	mov 	r12 r11	;r12 = -1 
	nop	

	movi 	r13 26	;r13 = 26
	movi 	r0 5
	movi	r1 22
	or	r2 r0	;r2 = 5
	and	r0 r1	;r0 = 4
	xor	r1 r2	;r1 = 19 
	not	r3	;r3 = ffff
	mov	r4 r0 	;r4 = 4
	add	r5 r4	;r5 = 4 
	sub	r2 r5	;r2 = 1 

	cmp	r4 r5
	ifs	cc_z	;eq
	addi	r4 1	; r4 = 5 
	cmp 	r4 r5
	ifs	cc_z
subr	movi 	r0 8	;r0 = 4 
	
	movi 	r6 1
	lsli	r6 3
	lsri	r6 2	;r6 = 2 

	movi 	r7 -4
	asri	r7 1	;r7 = -2 