vm: reorder splice opcodes

This commit is contained in:
Evgenii Stratonikov 2020-05-07 15:42:13 +03:00
parent 2cec088f08
commit a6271f6bf2
2 changed files with 12 additions and 12 deletions

View file

@ -99,10 +99,10 @@ const (
FROMALTSTACK Opcode = 0x6C FROMALTSTACK Opcode = 0x6C
// Splice // Splice
CAT Opcode = 0x7E CAT Opcode = 0x8B
SUBSTR Opcode = 0x7F SUBSTR Opcode = 0x8C
LEFT Opcode = 0x80 LEFT Opcode = 0x8D
RIGHT Opcode = 0x81 RIGHT Opcode = 0x8E
// Bitwise logic // Bitwise logic
INVERT Opcode = 0x90 INVERT Opcode = 0x90

View file

@ -85,10 +85,10 @@ func _() {
_ = x[DUPFROMALTSTACK-106] _ = x[DUPFROMALTSTACK-106]
_ = x[TOALTSTACK-107] _ = x[TOALTSTACK-107]
_ = x[FROMALTSTACK-108] _ = x[FROMALTSTACK-108]
_ = x[CAT-126] _ = x[CAT-139]
_ = x[SUBSTR-127] _ = x[SUBSTR-140]
_ = x[LEFT-128] _ = x[LEFT-141]
_ = x[RIGHT-129] _ = x[RIGHT-142]
_ = x[INVERT-144] _ = x[INVERT-144]
_ = x[AND-145] _ = x[AND-145]
_ = x[OR-146] _ = x[OR-146]
@ -220,10 +220,10 @@ var _Opcode_map = map[Opcode]string{
106: _Opcode_name[414:429], 106: _Opcode_name[414:429],
107: _Opcode_name[429:439], 107: _Opcode_name[429:439],
108: _Opcode_name[439:451], 108: _Opcode_name[439:451],
126: _Opcode_name[451:454], 139: _Opcode_name[451:454],
127: _Opcode_name[454:460], 140: _Opcode_name[454:460],
128: _Opcode_name[460:464], 141: _Opcode_name[460:464],
129: _Opcode_name[464:469], 142: _Opcode_name[464:469],
144: _Opcode_name[469:475], 144: _Opcode_name[469:475],
145: _Opcode_name[475:478], 145: _Opcode_name[475:478],
146: _Opcode_name[478:480], 146: _Opcode_name[478:480],