node/lib/metasm/metasm/cpu/sh4/decode.rb
def decode_cmp_expr(di, a0, a1)
		case di.opcode.name
		when 'cmp/eq'; Expression[a0, :'==', a1]
		when 'cmp/ge'; Expression[a0, :'>=', a1] # signed
		when 'cmp/gt'; Expression[a0, :'>', a1] # signed
		when 'cmp/hi'; Expression[a0, :'>', a1] # unsigned
		when 'cmp/hs'; Expression[a0, :'>=', a1] # unsigned
		end
	end
# interprets a condition code (in an opcode name) as an expression
interprets a condition code (in an opcode name) as an expression
interprets a condition code ( in an opcode name ) as an expression
def decode_cmp_expr(di, a0, a1)
		case di.opcode.name
		when 'cmp/eq'; Expression[a0, :'==', a1]
		when 'cmp/ge'; Expression[a0, :'>=', a1] 
		when 'cmp/gt'; Expression[a0, :'>', a1] 
		when 'cmp/hi'; Expression[a0, :'>', a1] 
		when 'cmp/hs'; Expression[a0, :'>=', a1] 
		end
	end
def decode_cmp_expr ( di , a0 , a1 ) case di . opcode . name when 'cmp/eq' ; Expression [ a0 , :' == ' , a1 ] when 'cmp/ge' ; Expression [ a0 , :' >= ' , a1 ] when 'cmp/gt' ; Expression [ a0 , :' > ' , a1 ] when 'cmp/hi' ; Expression [ a0 , :' > ' , a1 ] when 'cmp/hs' ; Expression [ a0 , :' >= ' , a1 ] end end
interprets a condition code (in an opcode name) as an expression
interprets a condition code ( in an opcode name ) as an expression
# signed # signed # unsigned # unsigned
di
a0
a1