Module zksync_vm2::addressing_modes
source · Expand description
Addressing modes supported by EraVM.
Structs§
- Absolute addressing into stack.
- Same as
RelativeStack
, but moves the stack pointer on access (decreases it when reading data; increases when writing data). - Arguments provided to an instruction in an EraVM bytecode.
- Absolute addressing into the code page of the currently executing program.
- Immediate value passed as a first instruction arg.
- Immediate value passed as a second instruction arg.
- Error converting
AnySource
toRegisterOrImmediate
. - Representation of one of 16 VM registers.
- Register passed as a first instruction argument.
- Register passed as a second instruction argument.
- Combination of a register and an immediate value wrapped by
AbsoluteStack
,RelativeStack
,AdvanceStackPointer
andCodePage
addressing modes. - Relative addressing into stack (relative to the VM stack pointer).
Enums§
- All supported addressing modes for the first destination argument.
- All supported addressing modes for the first source argument.
- Register or immediate addressing modes required by some VM instructions.