Improved x64 encoder
This commit is contained in:
parent
b776775f8f
commit
2c2b6e93db
15 changed files with 317 additions and 53 deletions
|
@ -3,5 +3,5 @@ package x64
|
|||
// REX is used to generate a REX prefix.
|
||||
// w, r, x and b can only be set to either 0 or 1.
|
||||
func REX(w, r, x, b byte) byte {
|
||||
return 0b_0100_0000 | (w << 3) | (r << 2) | (x << 1) | b
|
||||
return 0b0100_0000 | (w << 3) | (r << 2) | (x << 1) | b
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue