; tests load and store operations

	movi r0 0 ; address
	movi r1 0 ; source

	movi r5 -64	;r5 = 1111111111110000 = -16

	movi r6 1
	lsli r6 10	;r6 = 1024

val	cmp r1 r5
	ifs cc_eq
	br addr
	st r1 r0	;load and store different values
	ld r2 r0
	cmp r1 r2
	ifs cc_eq
	br val
	addi r1 64
	
	movi r4 1
	br end


addr	cmp r0 r6
	ifs cc_eq
	br end
	st r1 r0	;load an store to different addresses 
	ld r2 r0
	cmp r1 r2
	ifs cc_eq
	br addr
	addi r0 2

	movi r4 2
	br end

end 	nop