Implemented division

This commit is contained in:
Eduard Urbach 2024-06-25 00:19:01 +02:00
parent 432397043d
commit 3aedcef9eb
Signed by: eduard
GPG key ID: 49226B848C78F6C8
7 changed files with 89 additions and 3 deletions

View file

@ -0,0 +1,7 @@
package x64
// ExtendRAXToRDX doubles the size of RAX by sign-extending it to RDX.
// This is also known as CQO.
func ExtendRAXToRDX(code []byte) []byte {
return append(code, 0x48, 0x99)
}