Sha256: 8f0c5d8f45d18f4b8cfac9f651e2deb372c3e2677305f373311c5fccaf1d2f31

Contents?: true

Size: 428 Bytes

Versions: 1

Compression:

Stored size: 428 Bytes

Contents

# @title Finding Instructions
# Finding Instructions

*Evoasm* can be used to find instructions that exhibit a certain behavior.
Let's assume we want to find an instruction that counts the number of 1s or the number 
of trailing 0s in a binary number.
Is there an instruction for that? Let's find out.

{include:file:docs/examples/bit_insts.rb}

Depending on your CPU model this might output the following:

```
popcnt

bsf
```

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
evoasm-0.1.0.pre2 docs/FindingInstructions.md