Documentation ¶
Overview ¶
Package amd64 contains wrapper to amd64 instructions in Go assembly. note that while this package is public, it is tailored for github.com/consensys/goff and github.com/consensys/gurvy
Index ¶
- Constants
- type Amd64
- func (amd64 *Amd64) ADCQ(r1, r2 interface{}, comment ...string)
- func (amd64 *Amd64) ADCXQ(r1, r2 interface{}, comment ...string)
- func (amd64 *Amd64) ADDQ(r1, r2 interface{}, comment ...string)
- func (amd64 *Amd64) ADOXQ(r1, r2 interface{}, comment ...string)
- func (amd64 *Amd64) ANDQ(r1, r2 interface{}, comment ...string)
- func (amd64 *Amd64) BSFQ(r1, r2 interface{}, comment ...string)
- func (amd64 *Amd64) BTQ(r1, r2 interface{}, comment ...string)
- func (amd64 *Amd64) CMOVQCC(r1, r2 interface{}, comment ...string)
- func (amd64 *Amd64) CMOVQCS(r1, r2 interface{}, comment ...string)
- func (amd64 *Amd64) CMOVQEQ(r1, r2 interface{}, comment ...string)
- func (amd64 *Amd64) CMPB(r1, r2 interface{}, comment ...string)
- func (amd64 *Amd64) CMPQ(r1, r2 interface{}, comment ...string)
- func (amd64 *Amd64) Comment(s string)
- func (amd64 *Amd64) DECQ(r1 interface{}, comment ...string)
- func (amd64 *Amd64) FnHeader(funcName string, stackSize, argSize int, reserved ...Register) Registers
- func (amd64 *Amd64) IMULQ(r1, r2 interface{}, comment ...string)
- func (amd64 *Amd64) INCQ(r1 interface{}, comment ...string)
- func (amd64 *Amd64) JCC(label Label, comment ...string)
- func (amd64 *Amd64) JCS(label Label, comment ...string)
- func (amd64 *Amd64) JEQ(label Label, comment ...string)
- func (amd64 *Amd64) JL(label Label, comment ...string)
- func (amd64 *Amd64) JMP(label Label, comment ...string)
- func (amd64 *Amd64) JNE(label Label, comment ...string)
- func (amd64 *Amd64) LABEL(l Label)
- func (amd64 *Amd64) MOVNTIQ(r1, r2 interface{}, comment ...string)
- func (amd64 *Amd64) MOVQ(r1, r2 interface{}, comment ...string)
- func (amd64 *Amd64) MOVUPS(r1, r2 interface{}, comment ...string)
- func (amd64 *Amd64) MULQ(r1 interface{}, comment ...string)
- func (amd64 *Amd64) MULXQ(src, lo, hi interface{}, comment ...string)
- func (amd64 *Amd64) NewLabel(prefix ...string) Label
- func (amd64 *Amd64) ORQ(r1, r2 interface{}, comment ...string)
- func (amd64 *Amd64) POPQ(r1 interface{}, comment ...string)
- func (amd64 *Amd64) PUSHQ(r1 interface{}, comment ...string)
- func (amd64 *Amd64) RET()
- func (amd64 *Amd64) SBBQ(r1, r2 interface{}, comment ...string)
- func (amd64 *Amd64) SHRQ(r1, r2 interface{}, comment ...string)
- func (amd64 *Amd64) SHRQw(r1, r2, r3 interface{}, comment ...string)
- func (amd64 *Amd64) SHRXQ(r1, r2, r3 interface{}, comment ...string)
- func (amd64 *Amd64) SUBQ(r1, r2 interface{}, comment ...string)
- func (amd64 *Amd64) TESTQ(r1, r2 interface{}, comment ...string)
- func (amd64 *Amd64) TZCNTQ(r1, r2 interface{}, comment ...string)
- func (amd64 *Amd64) WriteLn(s string)
- func (amd64 *Amd64) XCHGQ(r1, r2 interface{}, comment ...string)
- func (amd64 *Amd64) XORPS(r1, r2 interface{}, comment ...string)
- func (amd64 *Amd64) XORQ(r1, r2 interface{}, comment ...string)
- type Label
- type Register
- type Registers
Constants ¶
View Source
const ( AX = Register("AX") DX = Register("DX") CX = Register("CX") BX = Register("BX") BP = Register("BP") SI = Register("SI") DI = Register("DI") R8 = Register("R8") R9 = Register("R9") R10 = Register("R10") R11 = Register("R11") R12 = Register("R12") R13 = Register("R13") R14 = Register("R14") R15 = Register("R15") )
View Source
const NbRegisters = 14
NbRegisters contains nb default available registers, without BP
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Amd64 ¶ added in v0.1.7
type Amd64 struct {
// contains filtered or unexported fields
}
type Registers ¶
type Registers struct {
// contains filtered or unexported fields
}
func NewRegisters ¶
func NewRegisters() Registers
Click to show internal directories.
Click to hide internal directories.