diff --git a/evm/src/cpu/kernel/asm/curve/bn254/curve_arithmetic/miller_loop.asm b/evm/src/cpu/kernel/asm/curve/bn254/curve_arithmetic/miller_loop.asm index 37312b45..1f2d2fc6 100644 --- a/evm/src/cpu/kernel/asm/curve/bn254/curve_arithmetic/miller_loop.asm +++ b/evm/src/cpu/kernel/asm/curve/bn254/curve_arithmetic/miller_loop.asm @@ -70,16 +70,16 @@ global miller_loop: miller_loop_pop: POP %jump(miller_loop) - + miller_final: // stack: 0, O, P, Q, out, retdest PUSH 28 // stack: 28, 0, O, P, Q, out, retdest %jump(miller_zero_final) miller_end: - // stack: times, O, P, Q, out, retdest - POP %pop2 %pop2 %pop4 - // stack: out, retdest + // stack: m, times, O, P, Q, out, retdest + %pop2 %pop2 %pop2 %pop4 + // stack: out, retdest SWAP1 JUMP