node/lib/metasm/metasm/cpu/x86_64/main.rb
def val_enc
			if @sz == 8 and @val >= 16; @val-12	# ah, bh, ch, dh
			elsif @val >= 16			# rip
			else @val & 7				# others
			end
		end
# returns the part of @val to encode in an instruction field
returns the part of @val to encode in an instruction field
returns the part of @val to encode in an instruction field
def val_enc
			if @sz == 8 and @val >= 16; @val-12	
			elsif @val >= 16			
			else @val & 7				
			end
		end
def val_enc if @sz == 8 and @val >= 16 ; @val - 12 elsif @val >= 16 else @val & 7 end end
returns the part of @val to encode in an instruction field
returns the part of @val to encode in an instruction field
# ah, bh, ch, dh # rip # others