assemble

package
v0.0.0-...-03cd3b7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(inp opcodes.Opcode) (uint32, error)

func EncodeADD

func EncodeADD(o opcodes.OP_ADD) (uint32, error)

func EncodeADDI

func EncodeADDI(o opcodes.OP_ADDI) (uint32, error)

func EncodeAND

func EncodeAND(o opcodes.OP_AND) (uint32, error)

func EncodeANDI

func EncodeANDI(o opcodes.OP_ANDI) (uint32, error)

func EncodeAUIPC

func EncodeAUIPC(o opcodes.OP_AUIPC) (uint32, error)

func EncodeBEQ

func EncodeBEQ(o opcodes.OP_BEQ) (uint32, error)

func EncodeBGE

func EncodeBGE(o opcodes.OP_BGE) (uint32, error)

func EncodeBGEU

func EncodeBGEU(o opcodes.OP_BGEU) (uint32, error)

func EncodeBLT

func EncodeBLT(o opcodes.OP_BLT) (uint32, error)

func EncodeBLTU

func EncodeBLTU(o opcodes.OP_BLTU) (uint32, error)

func EncodeBNE

func EncodeBNE(o opcodes.OP_BNE) (uint32, error)

func EncodeCSRRC

func EncodeCSRRC(o opcodes.OP_CSRRC) (uint32, error)

func EncodeCSRRCI

func EncodeCSRRCI(o opcodes.OP_CSRRCI) (uint32, error)

func EncodeCSRRS

func EncodeCSRRS(o opcodes.OP_CSRRS) (uint32, error)

func EncodeCSRRSI

func EncodeCSRRSI(o opcodes.OP_CSRRSI) (uint32, error)

func EncodeCSRRW

func EncodeCSRRW(o opcodes.OP_CSRRW) (uint32, error)

func EncodeCSRRWI

func EncodeCSRRWI(o opcodes.OP_CSRRWI) (uint32, error)

func EncodeDRET

func EncodeDRET(o opcodes.OP_DRET) (uint32, error)

func EncodeEBREAK

func EncodeEBREAK(o opcodes.OP_EBREAK) (uint32, error)

func EncodeECALL

func EncodeECALL(o opcodes.OP_ECALL) (uint32, error)

func EncodeFENCE

func EncodeFENCE(o opcodes.OP_FENCE) (uint32, error)

func EncodeFENCE_I

func EncodeFENCE_I(o opcodes.OP_FENCE_I) (uint32, error)

func EncodeILLEGAL

func EncodeILLEGAL(o opcodes.OP_ILLEGAL) (uint32, error)

func EncodeJAL

func EncodeJAL(o opcodes.OP_JAL) (uint32, error)

func EncodeJALR

func EncodeJALR(o opcodes.OP_JALR) (uint32, error)

func EncodeLB

func EncodeLB(o opcodes.OP_LB) (uint32, error)

func EncodeLBU

func EncodeLBU(o opcodes.OP_LBU) (uint32, error)

func EncodeLH

func EncodeLH(o opcodes.OP_LH) (uint32, error)

func EncodeLHU

func EncodeLHU(o opcodes.OP_LHU) (uint32, error)

func EncodeLUI

func EncodeLUI(o opcodes.OP_LUI) (uint32, error)

func EncodeLW

func EncodeLW(o opcodes.OP_LW) (uint32, error)

func EncodeMRET

func EncodeMRET(o opcodes.OP_MRET) (uint32, error)

func EncodeOR

func EncodeOR(o opcodes.OP_OR) (uint32, error)

func EncodeORI

func EncodeORI(o opcodes.OP_ORI) (uint32, error)

func EncodeSB

func EncodeSB(o opcodes.OP_SB) (uint32, error)

func EncodeSFENCE_VMA

func EncodeSFENCE_VMA(o opcodes.OP_SFENCE_VMA) (uint32, error)

func EncodeSH

func EncodeSH(o opcodes.OP_SH) (uint32, error)

func EncodeSLL

func EncodeSLL(o opcodes.OP_SLL) (uint32, error)

func EncodeSLLI

func EncodeSLLI(o opcodes.OP_SLLI) (uint32, error)

func EncodeSLT

func EncodeSLT(o opcodes.OP_SLT) (uint32, error)

func EncodeSLTI

func EncodeSLTI(o opcodes.OP_SLTI) (uint32, error)

func EncodeSLTIU

func EncodeSLTIU(o opcodes.OP_SLTIU) (uint32, error)

func EncodeSLTU

func EncodeSLTU(o opcodes.OP_SLTU) (uint32, error)

func EncodeSRA

func EncodeSRA(o opcodes.OP_SRA) (uint32, error)

func EncodeSRAI

func EncodeSRAI(o opcodes.OP_SRAI) (uint32, error)

func EncodeSRET

func EncodeSRET(o opcodes.OP_SRET) (uint32, error)

func EncodeSRL

func EncodeSRL(o opcodes.OP_SRL) (uint32, error)

func EncodeSRLI

func EncodeSRLI(o opcodes.OP_SRLI) (uint32, error)

func EncodeSUB

func EncodeSUB(o opcodes.OP_SUB) (uint32, error)

func EncodeSW

func EncodeSW(o opcodes.OP_SW) (uint32, error)

func EncodeWFI

func EncodeWFI(o opcodes.OP_WFI) (uint32, error)

func EncodeXOR

func EncodeXOR(o opcodes.OP_XOR) (uint32, error)

func EncodeXORI

func EncodeXORI(o opcodes.OP_XORI) (uint32, error)

func FitsIn

func FitsIn(inp uint32, nbits int) (uint32, error)

func GEN_BIMM12HI

func GEN_BIMM12HI(inp int32) (uint32, error)

func GEN_BIMM12LO

func GEN_BIMM12LO(inp int32) (uint32, error)

func GEN_CSR

func GEN_CSR(inp uint32) (uint32, error)

func GEN_FM

func GEN_FM(inp uint32) (uint32, error)

func GEN_IMM12

func GEN_IMM12(inp int32) (uint32, error)

func GEN_IMM12HI

func GEN_IMM12HI(inp int32) (uint32, error)

func GEN_IMM12LO

func GEN_IMM12LO(inp int32) (uint32, error)

func GEN_IMM20

func GEN_IMM20(inp int32) (uint32, error)

func GEN_JIMM20

func GEN_JIMM20(inp int32) (uint32, error)

func GEN_PRED

func GEN_PRED(inp uint32) (uint32, error)

func GEN_RD

func GEN_RD(inp uint32) (uint32, error)

func GEN_RS1

func GEN_RS1(inp uint32) (uint32, error)

func GEN_RS2

func GEN_RS2(inp uint32) (uint32, error)

func GEN_SHAMTW

func GEN_SHAMTW(inp uint32) (uint32, error)

func GEN_SUCC

func GEN_SUCC(inp uint32) (uint32, error)

func GEN_ZIMM

func GEN_ZIMM(inp uint32) (uint32, error)

Types

type Opcode

type Opcode interface {
	Encode() (uint32, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL