35.3.8.4. INTEGER CONDITIONAL MOVES AND SETS ON MIPS


	
+------------------------------+
|	Len	Value
|	6	0
|	5	rs
|	5	rt
|	5	rd
|	5	0
|	5	xx
+------------------------------+



Command			xx
MOVN	rd,rs,rt	00 1011		Move Conditional on Not Zero
MOVZ	rd,rs,rt	00 1010		Move Conditional on Zero


			cond
	N		GRP[rt] != 0
	Z		GPR[rt] == 0


	if (cond)
	{
		GPR[rd] <- GPR[rs]
	}



SLT	rd,rs,rt	10 1010		Set on Less that
SLTU	rd,rs,rt	10 1011		Set on Less that Unsigned

			cond
	LT		GRP[rs] < GPR[rt]		[Signed]
	LTU		GPR[rs] < GPR[rt]		[Unsigned]


	if (cond)
	{
		GPR[rd] <- 1
	} else	GPR[rd] <- 0


+------------------------------+
|	Len	Value
|	6	xx
|	5	rs
|	5	rt
|	16	imm
+------------------------------+


Command			xx
SLTI	rt,rs,imm	00 1010	Set on Less That Immediate
SLTIU	rt,rs,imm	00 1011	Set on Less That Immediate Unsigned



	LTI	GPR[rs] < sign_extend(imm)		[Signed]
	LTIU	GPR[rs] < sign_extend(imm)		[Unsigned]


	if (cond)
	{
		GPR[rd] <-  1
	} else	GPR[rs] <-  0	



// ----------------------------------------------------------------------


Index Prev Next