Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
4cc5b031
Commit
4cc5b031
authored
Feb 24, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added opcodes
parent
a3fb7008
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
52 deletions
+51
-52
stack.go
ethchain/stack.go
+51
-52
No files found.
ethchain/stack.go
View file @
4cc5b031
...
...
@@ -9,57 +9,57 @@ type OpCode int
// Op codes
const
(
oSTOP
OpCode
=
iota
oADD
oMUL
oSUB
oDIV
oSDIV
oMOD
oSMOD
oEXP
oNEG
oLT
oLE
oGT
oGE
oEQ
oNOT
oMYADDRESS
oTXSENDER
oTXVALUE
oTX
FEE
oTXDATA
N
o
TXDATA
oBLK_
PREVHASH
oBLK_
COINBASE
oBLK_
TIMESTAMP
oBLK_
NUMBER
oBLK_
DIFFICULTY
oBASEFEE
oSHA256
OpCode
=
32
oRIPEMD160
OpCode
=
33
oECMUL
OpCode
=
34
oECADD
OpCode
=
35
oECSIGN
OpCode
=
36
oECRECOVER
OpCode
=
37
oECVALID
OpCode
=
38
oSHA3
OpCode
=
39
oPUSH
OpCode
=
48
oPOP
OpCode
=
49
oDUP
OpCode
=
50
oSWAP
OpCode
=
51
oMLOAD
OpCode
=
52
oMSTORE
OpCode
=
53
oSLOAD
OpCode
=
54
oSSTORE
OpCode
=
55
oJMP
OpCode
=
56
oJMPI
OpCode
=
57
oIND
OpCode
=
58
oEXTRO
OpCode
=
59
oBALANCE
OpCode
=
60
oMKTX
OpCode
=
61
oSUICIDE
OpCode
=
62
oSTOP
=
0x00
oADD
=
0x01
oMUL
=
0x02
oSUB
=
0x03
oDIV
=
0x04
oSDIV
=
0x05
oMOD
=
0x06
oSMOD
=
0x07
oEXP
=
0x08
oNEG
=
0x09
oLT
=
0x0a
oLE
=
0x0b
oGT
=
0x0c
oGE
=
0x0d
oEQ
=
0x0e
oNOT
=
0x0f
oMYADDRESS
=
0x10
oTXSENDER
=
0x11
oTXVALUE
=
0x12
oTX
DATAN
=
0x13
oTXDATA
=
0x14
o
BLK_PREVHASH
=
0x15
oBLK_
COINBASE
=
0x16
oBLK_
TIMESTAMP
=
0x17
oBLK_
NUMBER
=
0x18
oBLK_
DIFFICULTY
=
0x19
oBLK_
NONCE
=
0x1a
oBASEFEE
=
0x1b
oSHA256
=
0x20
oRIPEMD160
=
0x21
oECMUL
=
0x22
oECADD
=
0x23
oECSIGN
=
0x24
oECRECOVER
=
0x25
oECVALID
=
0x26
oSHA3
=
0x27
oPUSH
=
0x30
oPOP
=
0x31
oDUP
=
0x32
oSWAP
=
0x33
oMLOAD
=
0x34
oMSTORE
=
0x35
oSLOAD
=
0x36
oSSTORE
=
0x37
oJMP
=
0x38
oJMPI
=
0x39
oIND
=
0x3a
oEXTRO
=
0x3b
oBALANCE
=
0x3c
oMKTX
=
0x3d
oSUICIDE
=
0x3f
)
// Since the opcodes aren't all in order we can't use a regular slice
...
...
@@ -83,7 +83,6 @@ var opCodeToString = map[OpCode]string{
oMYADDRESS
:
"MYADDRESS"
,
oTXSENDER
:
"TXSENDER"
,
oTXVALUE
:
"TXVALUE"
,
oTXFEE
:
"TXFEE"
,
oTXDATAN
:
"TXDATAN"
,
oTXDATA
:
"TXDATA"
,
oBLK_PREVHASH
:
"BLK_PREVHASH"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment