mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-04 23:03:08 +00:00
sys_gas
This commit is contained in:
parent
f19b755393
commit
f117d76b73
@ -77,7 +77,15 @@ global sys_msize:
|
||||
SWAP1
|
||||
EXIT_KERNEL
|
||||
global sys_gas:
|
||||
PANIC
|
||||
// stack: kexit_info
|
||||
DUP1 %shr_const(192)
|
||||
// stack: gas_used, kexit_info
|
||||
%mload_context_metadata(@CTX_METADATA_GAS_LIMIT)
|
||||
// stack: gas_limit, gas_used, kexit_info
|
||||
SUB
|
||||
// stack: gas_remaining, kexit_info
|
||||
SWAP1
|
||||
EXIT_KERNEL
|
||||
global sys_log0:
|
||||
PANIC
|
||||
global sys_log1:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user