Renamed x64 to x86
This commit is contained in:
parent
f558a69366
commit
9c53235e7e
80 changed files with 1757 additions and 1757 deletions
|
@ -1,19 +0,0 @@
|
|||
package x64
|
||||
|
||||
// ScaleFactor encodes the scale factor.
|
||||
type ScaleFactor = byte
|
||||
|
||||
const (
|
||||
Scale1 = ScaleFactor(0b00)
|
||||
Scale2 = ScaleFactor(0b01)
|
||||
Scale4 = ScaleFactor(0b10)
|
||||
Scale8 = ScaleFactor(0b11)
|
||||
)
|
||||
|
||||
// SIB is used to generate an SIB byte.
|
||||
// - scale: 2 bits. Multiplies the value of the index.
|
||||
// - index: 3 bits. Specifies the index register.
|
||||
// - base: 3 bits. Specifies the base register.
|
||||
func SIB(scale ScaleFactor, index byte, base byte) byte {
|
||||
return (scale << 6) | (index << 3) | base
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue