node/lib/metasm/metasm/cpu/ia32/encode.rb
# The argument is an integer representing the 'reg' field of the mrm
#
# caller is responsible for setting the adsz
# returns an array, 1 element per possible immediate size (for un-reduce()able Expression)
The argument is an integer representing the 'reg' field of the mrm
caller is responsible for setting the adsz
returns an array, 1 element per possible immediate size (for un-reduce()able Expression)
The argument is an integer representing the ' reg ' field of the mrm caller is responsible for setting the adsz returns an array 1 element per possible immediate size ( for un - reduce () able Expression )
def encode(reg = 0, endianness = :little)
			reg = reg.val if reg.kind_of? Argument
			case @adsz
			when 16; encode16(reg, endianness)
			when 32; encode32(reg, endianness)
			end
		end
def encode ( reg = 0 , endianness = :little ) reg = reg . val if reg . kind_of? Argument case @adsz when 16 ; encode16 ( reg , endianness ) when 32 ; encode32 ( reg , endianness ) end end
The argument is an integer representing the 'reg' field of the mrm
caller is responsible for setting the adsz
returns an array, 1 element per possible immediate size (for un-reduce()able Expression)
The argument is an integer representing the ' reg ' field of the mrm caller is responsible for setting the adsz returns an array 1 element per possible immediate size ( for un - reduce () able Expression )
reg
endianness