mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 19:30: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;
|
||||
}
|
||||
|
||||
case Instruction::PC:
|
||||
{
|
||||
auto value = builder.getIntN(256, currentPC);
|
||||
stack.push(value);
|
||||
break;
|
||||
}
|
||||
|
||||
case Instruction::ADDRESS:
|
||||
{
|
||||
auto value = ext.address();
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
3031333234363a40414243444536600035602635601335380060016002f2
|
||||
5a3031333234363a4041424344455a36600035602635601335380060016002f2
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
|
||||
(asm
|
||||
PC
|
||||
ADDRESS
|
||||
BALANCE
|
||||
CALLER
|
||||
|
|
@ -13,6 +14,7 @@ TIMESTAMP
|
|||
NUMBER
|
||||
DIFFICULTY
|
||||
GASLIMIT
|
||||
PC
|
||||
CALLDATASIZE
|
||||
0
|
||||
CALLDATALOAD
|
||||
|
|
|
|||
Loading…
Reference in a new issue