I'm trying to get my head around how computation in the EVM works in this example.
PC: 3 STACK: [54] MEM: [], STORAGE: {}
SLOAD pops one from the stack, and pushes the value in contract storage at that index onto the stack. Since the contract is used for the first time, it has nothing there, so zero.
PC: 4 STACK: [0] MEM: [], STORAGE: {}
Can someone explain what SLOAD did? It says "pops one from the stack", ok that would be 54. "And pushes the value in contract storage" Which value? The one popped (i.e, the key?) or the message value? and then nothing is added to storage.. no idea whats going on :S