Improved x64 encoder

This commit is contained in:
2024-07-20 00:58:39 +02:00
parent 7490a32666
commit 6b5dd4c687
15 changed files with 317 additions and 53 deletions

View File

@ -1,5 +1,12 @@
package x64
const (
AddressMemory = byte(0b00)
AddressMemoryOffset8 = byte(0b01)
AddressMemoryOffset32 = byte(0b10)
AddressDirect = byte(0b11)
)
// ModRM is used to generate a ModRM suffix.
// - mod: 2 bits
// - reg: 3 bits