Module std::registers

Expand description

Functions to expose 14 of the reserved FuelVM registers for ease of use.


Get the amount of units of call_frames::msg_asset_id() being sent.

Remaining gas in the context.

Error codes for particular operations.

Flags register.

Memory address of beginning of current call frame.

Remaining gas globally.

Memory address below the current bottom of the heap (points to free memory).

Pointer to the start of the currently-executing code.

Contains overflow & underflow of addition, subtraction, and multiplication.

The program counter. Memory address of the current instruction.

Return value length in bytes.

Return value or pointer.

Memory address on top of current writable stack area (points to free memory).

Memory address of bottom of current writable stack area.