Expand description
Addressing modes supported by EraVM.
Structs§
- Absolute
Stack - Absolute addressing into stack.
- Advance
Stack Pointer - Same as
RelativeStack, but moves the stack pointer on access (decreases it when reading data; increases when writing data). - Arguments
- Arguments provided to an instruction in an EraVM bytecode.
- Code
Page - Absolute addressing into the code page of the currently executing program.
- Immediate1
- Immediate value passed as a first instruction arg.
- Immediate2
- Immediate value passed as a second instruction arg.
- NotRegister
OrImmediate - Error converting
AnySourcetoRegisterOrImmediate. - Register
- Representation of one of 16 VM registers.
- Register1
- Register passed as a first instruction argument.
- Register2
- Register passed as a second instruction argument.
- Register
AndImmediate - Combination of a register and an immediate value wrapped by
AbsoluteStack,RelativeStack,AdvanceStackPointerandCodePageaddressing modes. - Relative
Stack - Relative addressing into stack (relative to the VM stack pointer).
Enums§
- AnyDestination
- All supported addressing modes for the first destination argument.
- AnySource
- All supported addressing modes for the first source argument.
- Register
OrImmediate - Register or immediate addressing modes required by some VM instructions.