mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 19:30:44 +00:00
TODO: implement BYTE
This commit is contained in:
parent
48897f42c8
commit
710b734236
1 changed files with 23 additions and 0 deletions
|
|
@ -343,6 +343,29 @@ std::unique_ptr<llvm::Module> Compiler::compile(const dev::bytes& bytecode)
|
|||
break;
|
||||
}
|
||||
|
||||
case Instruction::BYTE:
|
||||
{
|
||||
auto byteNum = stack.pop();
|
||||
|
||||
// TODO
|
||||
//auto value = stack.pop();
|
||||
|
||||
/*
|
||||
if (byteNum < 32) - use select
|
||||
{
|
||||
value <<= byteNum*8;
|
||||
value >>= (31-byteNum)*8;
|
||||
push value
|
||||
}
|
||||
else
|
||||
{
|
||||
push 0
|
||||
}
|
||||
*/
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case Instruction::POP:
|
||||
{
|
||||
stack.pop();
|
||||
|
|
|
|||
Loading…
Reference in a new issue