PC instructions

This commit is contained in:
Paweł Bylica 2014-10-02 14:18:50 +02:00
parent 20cd698cf8
commit c002d9b843
3 changed files with 10 additions and 1 deletions

View file

@ -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();

View file

@ -1 +1 @@
3031333234363a40414243444536600035602635601335380060016002f2
5a3031333234363a4041424344455a36600035602635601335380060016002f2

View file

@ -1,5 +1,6 @@
(asm
PC
ADDRESS
BALANCE
CALLER
@ -13,6 +14,7 @@ TIMESTAMP
NUMBER
DIFFICULTY
GASLIMIT
PC
CALLDATASIZE
0
CALLDATALOAD