22 "Addressing gas cost must fit in 16 bits");
24 uint16_t indirect_operand_count = 0;
25 uint16_t relative_operand_count = 0;
29 indirect_operand_count++;
32 relative_operand_count++;
#define AVM_ADDRESSING_INDIRECT_L2_GAS
#define AVM_ADDRESSING_RELATIVE_L2_GAS
#define AVM_ADDRESSING_BASE_RESOLUTION_L2_GAS
bool is_operand_relative(uint16_t indirect_flag, size_t operand_index)
Checks if the operand at the given index is relative.
bool is_operand_indirect(uint16_t indirect_flag, size_t operand_index)
Checks if the operand at the given index is indirect.
uint16_t compute_addressing_gas(uint16_t addressing_mode)
Computes the gas cost for addressing.