Commit 8bf5b284 authored by Raymond Toy's avatar Raymond Toy
Browse files

Use ZF flag for the 0 case

Instead of explicitly testing for 0, using the ZF flag after the `BSR`
instruction which is set to true if the source is 0.

We also assume that `BSR` in this case leaves the destination
unchanged even though the Intel docs say the result is undefined in
this case, but the AMD docs say it is unchanged.  See !194 for more
references that say this is true for Intel too.
parent c590fd26
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment