Renamed x64 to x86
This commit is contained in:
parent
f558a69366
commit
9c53235e7e
80 changed files with 1757 additions and 1757 deletions
|
@ -1,20 +0,0 @@
|
|||
package x64
|
||||
|
||||
import "git.akyoto.dev/cli/q/src/cpu"
|
||||
|
||||
// DivRegister divides RDX:RAX by the value in the register.
|
||||
func DivRegister(code []byte, divisor cpu.Register) []byte {
|
||||
rex := byte(0x48)
|
||||
|
||||
if divisor >= 8 {
|
||||
rex++
|
||||
divisor -= 8
|
||||
}
|
||||
|
||||
return append(
|
||||
code,
|
||||
rex,
|
||||
0xF7,
|
||||
0xF8+byte(divisor),
|
||||
)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue