CensoredUsername / dynasm-rs

A dynasm-like tool for rust.
https://censoredusername.github.io/dynasm-rs/language/index.html
Mozilla Public License 2.0
716 stars 52 forks source link

Can't encode repne scasb #63

Closed DCNick3 closed 2 years ago

DCNick3 commented 2 years ago

When trying to use instruction repne scasb I get the following error:

Cannot use prefix repne on this instruction

A quick glance at the code shows that it might be due to a typo here (REP used instead of ¿REPE?), though I am not sure that I follow what this does exactly

DCNick3 commented 2 years ago

If I change Flags::REP to Flags::REPE it seems to work fine and produces adequate results