forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 0
Assembler
Jeffrey Wilcke edited this page Jun 8, 2014
·
1 revision
This is the assembler code emitted by the Mutan compiler and which can be used directly in the asm
expression followed by the asm opcodes.
Comments can be made using ";"
asm {
push1 10 ; Push 10 to stack
push1 20 ; Push 20 to stack
add ; Add 10 and 20 together
}
stop
add
mul
sub
div
sdiv
mod
smod
exp
neg
lt
gt
eq
not
and
or
xor
byte
sha3
address
balance
origin
caller
callvalue
calldataload
calldatasize
gasprice
prevhash
coinbase
timestamp
number
difficulty
gaslimit
pop
dup
swap
mload
mstore
mstore8
sload
sstore
jump
jumpi
pc
msize
create
call
return
suicide
push1
push2
push3
push4
push5
push6
push7
push8
push9
push10
push11
push12
push13
push14
push15
push16
push17
push18
push19
push20
push21
push22
push23
push24
push25
push26
push27
push28
push29
push30
push31
push32