0

I am trying to understand Ethereum Bytecodes. So whenever there is any JUMP/JUMPI opcode it is preceded by some PUSH opcode.

My question is how can I differentiate if this jump is direct or indirect? Can someone provide me some example of Ethereum bytecodes where jump is Indirect.

Deepak Yadav
  • 53
  • 1
  • 7

1 Answers1

0

When it jumps to a label, it's indirect by definition. And when it jumps to an absolute value, it's direct again by definition.

Ferit
  • 8,692
  • 8
  • 34
  • 59
  • I guess push is not there for indirect jump because if push is there before jump then the target address is directly sitting on the top of the stack. – Deepak Yadav Jul 23 '19 at 16:19