mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-20 11:46:44 +00:00
PC instructions
This commit is contained in:
parent
20cd698cf8
commit
c002d9b843
3 changed files with 10 additions and 1 deletions
|
|
@ -495,6 +495,13 @@ std::unique_ptr<llvm::Module> Compiler::compile(const dev::bytes& bytecode)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case Instruction::PC:
|
||||||
|
{
|
||||||
|
auto value = builder.getIntN(256, currentPC);
|
||||||
|
stack.push(value);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case Instruction::ADDRESS:
|
case Instruction::ADDRESS:
|
||||||
{
|
{
|
||||||
auto value = ext.address();
|
auto value = ext.address();
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
3031333234363a40414243444536600035602635601335380060016002f2
|
5a3031333234363a4041424344455a36600035602635601335380060016002f2
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
(asm
|
(asm
|
||||||
|
PC
|
||||||
ADDRESS
|
ADDRESS
|
||||||
BALANCE
|
BALANCE
|
||||||
CALLER
|
CALLER
|
||||||
|
|
@ -13,6 +14,7 @@ TIMESTAMP
|
||||||
NUMBER
|
NUMBER
|
||||||
DIFFICULTY
|
DIFFICULTY
|
||||||
GASLIMIT
|
GASLIMIT
|
||||||
|
PC
|
||||||
CALLDATASIZE
|
CALLDATASIZE
|
||||||
0
|
0
|
||||||
CALLDATALOAD
|
CALLDATALOAD
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue