stack

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BLKDROP

func BLKDROP(num uint8) (op *helpers.AdvancedOP)

func BLKDROP2

func BLKDROP2(i, j uint8) (op *helpers.AdvancedOP)

func BLKPUSH

func BLKPUSH(i, j uint8) (op *helpers.AdvancedOP)

func BLKSWAP

func BLKSWAP(i, j uint8) (op *helpers.AdvancedOP)

func BLKSWX

func BLKSWX() *helpers.SimpleOP

func CHKDEPTH

func CHKDEPTH() *helpers.SimpleOP

func CONDSEL

func CONDSEL() *helpers.SimpleOP

func DEBUG

func DEBUG(arg uint8) *helpers.AdvancedOP

func DEBUGSTR

func DEBUGSTR(data []byte) vm.OP

func DEPTH

func DEPTH() *helpers.SimpleOP

func DROP

func DROP() *helpers.SimpleOP

func DROP2

func DROP2() *helpers.SimpleOP

func DROPX

func DROPX() *helpers.SimpleOP

func DUMP

func DUMP(idx uint8) *helpers.AdvancedOP

func DUMPSTK

func DUMPSTK() *helpers.SimpleOP

func DUP

func DUP() *helpers.SimpleOP

func DUP2

func DUP2() *helpers.SimpleOP

func NIP

func NIP() *helpers.SimpleOP

func NOP

func NOP() *helpers.SimpleOP

func ONLYTOPX

func ONLYTOPX() *helpers.SimpleOP

func ONLYX

func ONLYX() *helpers.SimpleOP

func OVER

func OVER() *helpers.SimpleOP

func OVER2

func OVER2() *helpers.SimpleOP

func PICK

func PICK() *helpers.SimpleOP

func PU2XC

func PU2XC(i, j, k uint8) (op *helpers.AdvancedOP)

func PUSH2

func PUSH2(i, j uint8) (op *helpers.AdvancedOP)

func PUSH3

func PUSH3(i, j, k uint8) (op *helpers.AdvancedOP)

func PUXC

func PUXC(i, j uint8) (op *helpers.AdvancedOP)

func PUXC2

func PUXC2(i, j, k uint8) (op *helpers.AdvancedOP)

func PUXCPU

func PUXCPU(i, j, k uint8) (op *helpers.AdvancedOP)

func REVERSE

func REVERSE(x, y uint8) (op *helpers.AdvancedOP)

func REVX

func REVX() *helpers.SimpleOP

func ROLL

func ROLL() *helpers.SimpleOP

func ROLLREV

func ROLLREV() *helpers.SimpleOP

func ROT

func ROT() *helpers.SimpleOP

func ROTREV

func ROTREV() *helpers.SimpleOP

func STRDUMP

func STRDUMP() *helpers.SimpleOP

func SWAP

func SWAP() *helpers.SimpleOP

func SWAP2

func SWAP2() *helpers.SimpleOP

func TUCK

func TUCK() *helpers.SimpleOP

func XC2PU

func XC2PU(i, j, k uint8) (op *helpers.AdvancedOP)

func XCHG0

func XCHG0(i uint8) (op *helpers.AdvancedOP)

func XCHG0L

func XCHG0L(i uint8) (op *helpers.AdvancedOP)

func XCHG2

func XCHG2(i, j uint8) (op *helpers.AdvancedOP)

func XCHG3

func XCHG3(i, j, k uint8) (op *helpers.AdvancedOP)

func XCHGX

func XCHGX() *helpers.SimpleOP

func XCPU

func XCPU(i, j uint8) (op *helpers.AdvancedOP)

func XCPU2

func XCPU2(i, j, k uint8) (op *helpers.AdvancedOP)

func XCPUXC

func XCPUXC(i, j, k uint8) (op *helpers.AdvancedOP)

Types

type OpDICTPUSHCONST

type OpDICTPUSHCONST struct {
	helpers.Prefixed
	// contains filtered or unexported fields
}

func DICTPUSHCONST

func DICTPUSHCONST(cont *cell.Cell) *OpDICTPUSHCONST

func (*OpDICTPUSHCONST) Deserialize

func (op *OpDICTPUSHCONST) Deserialize(code *cell.Slice) error

func (*OpDICTPUSHCONST) InstructionBits

func (op *OpDICTPUSHCONST) InstructionBits() int64

func (*OpDICTPUSHCONST) Interpret

func (op *OpDICTPUSHCONST) Interpret(state *vm.State) error

func (*OpDICTPUSHCONST) Serialize

func (op *OpDICTPUSHCONST) Serialize() *cell.Builder

func (*OpDICTPUSHCONST) SerializeText

func (op *OpDICTPUSHCONST) SerializeText() string

type OpPOP

type OpPOP struct {
	helpers.Prefixed
	// contains filtered or unexported fields
}

func POP

func POP(stackIndex uint8) *OpPOP

func (*OpPOP) Deserialize

func (op *OpPOP) Deserialize(code *cell.Slice) error

func (*OpPOP) InstructionBits

func (op *OpPOP) InstructionBits() int64

func (*OpPOP) Interpret

func (op *OpPOP) Interpret(state *vm.State) error

func (*OpPOP) Serialize

func (op *OpPOP) Serialize() *cell.Builder

func (*OpPOP) SerializeText

func (op *OpPOP) SerializeText() string

type OpPOPL

type OpPOPL struct {
	helpers.Prefixed
	// contains filtered or unexported fields
}

func POPL

func POPL(index uint8) *OpPOPL

func (*OpPOPL) Deserialize

func (op *OpPOPL) Deserialize(code *cell.Slice) error

func (*OpPOPL) InstructionBits

func (op *OpPOPL) InstructionBits() int64

func (*OpPOPL) Interpret

func (op *OpPOPL) Interpret(state *vm.State) error

func (*OpPOPL) Serialize

func (op *OpPOPL) Serialize() *cell.Builder

func (*OpPOPL) SerializeText

func (op *OpPOPL) SerializeText() string

type OpPUSH

type OpPUSH struct {
	helpers.Prefixed
	// contains filtered or unexported fields
}

func PUSH

func PUSH(stackIndex uint8) *OpPUSH

func (*OpPUSH) Deserialize

func (op *OpPUSH) Deserialize(code *cell.Slice) error

func (*OpPUSH) InstructionBits

func (op *OpPUSH) InstructionBits() int64

func (*OpPUSH) Interpret

func (op *OpPUSH) Interpret(state *vm.State) error

func (*OpPUSH) Serialize

func (op *OpPUSH) Serialize() *cell.Builder

func (*OpPUSH) SerializeText

func (op *OpPUSH) SerializeText() string

type OpPUSHCONT

type OpPUSHCONT struct {
	helpers.Prefixed
	// contains filtered or unexported fields
}

func PUSHCONT

func PUSHCONT(cont *cell.Cell) *OpPUSHCONT

func PUSHREFCONT

func PUSHREFCONT(cont *cell.Cell) *OpPUSHCONT

func (*OpPUSHCONT) Deserialize

func (op *OpPUSHCONT) Deserialize(code *cell.Slice) error

func (*OpPUSHCONT) InstructionBits

func (op *OpPUSHCONT) InstructionBits() int64

func (*OpPUSHCONT) Interpret

func (op *OpPUSHCONT) Interpret(state *vm.State) error

func (*OpPUSHCONT) Serialize

func (op *OpPUSHCONT) Serialize() *cell.Builder

func (*OpPUSHCONT) SerializeText

func (op *OpPUSHCONT) SerializeText() string

type OpPUSHCTR

type OpPUSHCTR struct {
	helpers.Prefixed
	// contains filtered or unexported fields
}

func PUSHCTR

func PUSHCTR(ctrIndex uint8) *OpPUSHCTR

func (*OpPUSHCTR) Deserialize

func (op *OpPUSHCTR) Deserialize(code *cell.Slice) error

func (*OpPUSHCTR) InstructionBits

func (op *OpPUSHCTR) InstructionBits() int64

func (*OpPUSHCTR) Interpret

func (op *OpPUSHCTR) Interpret(state *vm.State) error

func (*OpPUSHCTR) Serialize

func (op *OpPUSHCTR) Serialize() *cell.Builder

func (*OpPUSHCTR) SerializeText

func (op *OpPUSHCTR) SerializeText() string

type OpPUSHINT

type OpPUSHINT struct {
	helpers.Prefixed
	// contains filtered or unexported fields
}

func PUSHINT

func PUSHINT(value *big.Int) *OpPUSHINT

func (*OpPUSHINT) Deserialize

func (op *OpPUSHINT) Deserialize(code *cell.Slice) error

func (*OpPUSHINT) InstructionBits

func (op *OpPUSHINT) InstructionBits() int64

func (*OpPUSHINT) Interpret

func (op *OpPUSHINT) Interpret(state *vm.State) error

func (*OpPUSHINT) Serialize

func (op *OpPUSHINT) Serialize() *cell.Builder

func (*OpPUSHINT) SerializeText

func (op *OpPUSHINT) SerializeText() string

type OpPUSHL

type OpPUSHL struct {
	helpers.Prefixed
	// contains filtered or unexported fields
}

func PUSHL

func PUSHL(index uint8) *OpPUSHL

func (*OpPUSHL) Deserialize

func (op *OpPUSHL) Deserialize(code *cell.Slice) error

func (*OpPUSHL) InstructionBits

func (op *OpPUSHL) InstructionBits() int64

func (*OpPUSHL) Interpret

func (op *OpPUSHL) Interpret(state *vm.State) error

func (*OpPUSHL) Serialize

func (op *OpPUSHL) Serialize() *cell.Builder

func (*OpPUSHL) SerializeText

func (op *OpPUSHL) SerializeText() string

type OpPUSHREF

type OpPUSHREF struct {
	helpers.Prefixed
	// contains filtered or unexported fields
}

func PUSHREF

func PUSHREF(value *cell.Cell) *OpPUSHREF

func (*OpPUSHREF) Deserialize

func (op *OpPUSHREF) Deserialize(code *cell.Slice) error

func (*OpPUSHREF) InstructionBits

func (op *OpPUSHREF) InstructionBits() int64

func (*OpPUSHREF) Interpret

func (op *OpPUSHREF) Interpret(state *vm.State) error

func (*OpPUSHREF) Serialize

func (op *OpPUSHREF) Serialize() *cell.Builder

func (*OpPUSHREF) SerializeText

func (op *OpPUSHREF) SerializeText() string

type OpPUSHREFSLICE

type OpPUSHREFSLICE struct {
	helpers.Prefixed
	// contains filtered or unexported fields
}

func PUSHREFSLICE

func PUSHREFSLICE(value *cell.Slice) *OpPUSHREFSLICE

func PUSHSLICE

func PUSHSLICE(value *cell.Slice) *OpPUSHREFSLICE

func (*OpPUSHREFSLICE) Deserialize

func (op *OpPUSHREFSLICE) Deserialize(code *cell.Slice) error

func (*OpPUSHREFSLICE) InstructionBits

func (op *OpPUSHREFSLICE) InstructionBits() int64

func (*OpPUSHREFSLICE) Interpret

func (op *OpPUSHREFSLICE) Interpret(state *vm.State) error

func (*OpPUSHREFSLICE) Serialize

func (op *OpPUSHREFSLICE) Serialize() *cell.Builder

func (*OpPUSHREFSLICE) SerializeText

func (op *OpPUSHREFSLICE) SerializeText() string

type OpPUSHSLICEINLINE

type OpPUSHSLICEINLINE struct {
	helpers.Prefixed
	// contains filtered or unexported fields
}

func PUSHSLICEINLINE

func PUSHSLICEINLINE(value *cell.Slice) *OpPUSHSLICEINLINE

func (*OpPUSHSLICEINLINE) Deserialize

func (op *OpPUSHSLICEINLINE) Deserialize(code *cell.Slice) error

func (*OpPUSHSLICEINLINE) InstructionBits

func (op *OpPUSHSLICEINLINE) InstructionBits() int64

func (*OpPUSHSLICEINLINE) Interpret

func (op *OpPUSHSLICEINLINE) Interpret(state *vm.State) error

func (*OpPUSHSLICEINLINE) Serialize

func (op *OpPUSHSLICEINLINE) Serialize() *cell.Builder

func (*OpPUSHSLICEINLINE) SerializeText

func (op *OpPUSHSLICEINLINE) SerializeText() string

type OpXCHG

type OpXCHG struct {
	helpers.Prefixed
	// contains filtered or unexported fields
}

func XCHG

func XCHG(a, b uint8) *OpXCHG

func (*OpXCHG) Deserialize

func (op *OpXCHG) Deserialize(code *cell.Slice) error

func (*OpXCHG) InstructionBits

func (op *OpXCHG) InstructionBits() int64

func (*OpXCHG) Interpret

func (op *OpXCHG) Interpret(state *vm.State) error

func (*OpXCHG) Serialize

func (op *OpXCHG) Serialize() *cell.Builder

func (*OpXCHG) SerializeText

func (op *OpXCHG) SerializeText() string

Jump to

Keyboard shortcuts

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