Skip to content

Instantly share code, notes, and snippets.

@Vimos
Created April 10, 2013 05:05
Show Gist options
  • Save Vimos/5351946 to your computer and use it in GitHub Desktop.
Save Vimos/5351946 to your computer and use it in GitHub Desktop.
Shift Operations
The final group consists of shift operations, where the shift amount is given first,
and the value to shift is given second. Both arithmetic and logical right shifts are
possible. The shift amount is encoded as a single byte, since only shift amounts
between 0 and 31 are possible (only the low-order 5 bits of the shift amount are
considered). The shift amount is given either as an immediate or in the single-
byte register element %cl.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment