Michael Forney
3a0480e07d
core/asm: allow numbers in labels ( #20362 )
...
Numbers were already allowed when creating labels, just not when
referencing them.
5 years ago
Michael Forney
b0b277525c
core/asm: assembly parser label fixes ( #20210 )
...
* core/asm: Fix encoding of pushed labels
EVM uses big-endian byte-order, so to pad a label value to 4 bytes,
zeros must be added to the front, not the end.
* core/asm: Fix PC calculations when a label is pushed
Incrementing PC by 5 is only correct if the label appears after a jump,
in which case there is an implicit push. When it appears after an explicit
push, PC should only be incremented by 4.
* core/asm: Allow JUMP with no argument
This way, a label can be pushed explicitly, or loaded from memory to
implement a jump table.
5 years ago
Corey Lin
768b4c2e6b
asm: remove unused parameter for function Lex ( #18058 )
6 years ago
Guillaume Ballet
97b2806686
core/asm: Use hexadecimal addresses in assembly dumps ( #17870 )
6 years ago
Caesar Chad
ec192f18b4
core/asm: correct comments typo ( #16974 )
...
* core/asm/compiler: correct comments typo
core/asm/compiler: correct comments typo
* Correct comments typo
7 years ago
Caesar Chad
f04c0e341e
core/asm: correct comments typo ( #16975 )
...
core/asm/lexer: correct comments typo
7 years ago
dm4
c514fbccc0
core/asm: accept uppercase instructions ( #16531 )
7 years ago
dm4
49e38c970e
core/asm: remove unused condition ( #16487 )
7 years ago
thomasmodeneis
ba1030b6b8
build: enable goimports and varcheck linters ( #16446 )
7 years ago
hydai
7c131f4d6d
core/asm: fixed typo (posititon -> position) ( #16366 )
7 years ago
hydai
a063876749
core/asm: fixed typo (labal -> label) ( #16313 )
7 years ago
Mark Rushakoff
98ec5e5011
core/asm: rename isAlphaNumeric to isLetter ( #16212 )
...
The function would return false for numbers, so isLetter is a more
accurate description of the behavior.
7 years ago
Zach
3da1bf8ca1
all: use gometalinter.v2, fix new gosimple issues ( #15650 )
7 years ago
Fiisio
02b4d074f6
core/asm: use ContainsRune instead of IndexRune ( #15098 )
7 years ago
njupt-moon
53f3460ab5
core/asm: fix hex number lexing ( #14861 )
7 years ago
Jeffrey Wilcke
230cf2ec91
cmd/evm, core/asm: add EVM assembler ( #3686 )
...
The evm compile command implements a simple assembly language that compiles to
EVM bytecode.
8 years ago
Valentin Wüstholz
37511ec520
core, core/vm, cmd/disasm: unify procedures for disassembling evm code ( #3530 )
8 years ago