Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DUP ¶
type DUP struct{ base.NoOperandsInstruction }
DUP Duplicate the top operand stack value * 栈指令直接对操作数栈进行操作,共9条:pop和pop2指令将栈 顶变量弹出,dup系列指令复制栈顶变量,swap指令交换栈顶的两 个变量。 和其他类型的指令不同,栈指令并不关心变量类型。
栈指令的操作数就在栈中,直接进行栈相关操作即可获得,故继承 base.NoOperandsInstruction
type DUP2 ¶
type DUP2 struct{ base.NoOperandsInstruction }
DUP2 Duplicate the top one or two operand stack values
type DUP2_X1 ¶
type DUP2_X1 struct{ base.NoOperandsInstruction }
DUP2_X1 Duplicate the top one or two operand stack values and insert two or three values down
type DUP2_X2 ¶
type DUP2_X2 struct{ base.NoOperandsInstruction }
DUP2_X2 Duplicate the top one or two operand stack values and insert two, three, or four values down
type DUP_X1 ¶
type DUP_X1 struct{ base.NoOperandsInstruction }
DUP_X1 Duplicate the top operand stack value and insert two values down
type DUP_X2 ¶
type DUP_X2 struct{ base.NoOperandsInstruction }
DUP_X2 Duplicate the top operand stack value and insert two or three values down
type POP2 ¶
type POP2 struct{ base.NoOperandsInstruction }
POP2 Pop the top one or two operand stack values