node/lib/metasm/metasm/cpu/arm/decode.rb
def build_bin_lookaside
		lookaside = Array.new(256) { [] }

		opcode_list.each { |op|
			build_opcode_bin_mask op

			b   = (op.bin >> 20) & 0xff
			msk = (op.bin_mask >> 20) & 0xff
			b &= msk

			for i in b..(b | (255^msk))
				lookaside[i] << op if i & msk == b
			end
		}

		lookaside
	end
# create the lookaside hash from the first byte of the opcode
create the lookaside hash from the first byte of the opcode
create the lookaside hash from the first byte of the opcode
def build_bin_lookaside
		lookaside = Array.new(256) { [] }
		opcode_list.each { |op|
			build_opcode_bin_mask op
			b   = (op.bin >> 20) & 0xff
			msk = (op.bin_mask >> 20) & 0xff
			b &= msk
			for i in b..(b | (255^msk))
				lookaside[i] << op if i & msk == b
			end
		}
		lookaside
	end
def build_bin_lookaside lookaside = Array . new ( 256 ) { [ ] } opcode_list . each { | op | build_opcode_bin_mask op b = ( op . bin >> 20 ) & 0xff msk = ( op . bin_mask >> 20 ) & 0xff b &= msk for i in b .. ( b | ( 255 ^ msk ) ) lookaside [ i ] << op if i & msk == b end } lookaside end
create the lookaside hash from the first byte of the opcode
create the lookaside hash from the first byte of the opcode