diff --git a/main/utils.zkasm b/main/utils.zkasm index f86fac42..e17e7c57 100644 --- a/main/utils.zkasm +++ b/main/utils.zkasm @@ -697,17 +697,17 @@ SHRarith_32: SHRarith_0: :RETURN -; @info Shift right D bytes to A +; @info Shift left D bytes to A ; @in A ; @in D -; @out A - A >> (8*D)) => A +; @out A - A << (8*D) => A SHLarith: %MAX_CNT_STEPS - STEP - 7 :JMPN(outOfCountersStep) - 31 - D :JMPN(SHRarith_32) - D :JMPZ(SHRarith_0) + 31 - D :JMPN(SHLarith_32) + D :JMPZ(SHLarith_0) %MAX_CNT_MEM_ALIGN - CNT_MEM_ALIGN - 1 :JMPN(outOfCountersMemalign) @@ -716,9 +716,9 @@ SHLarith: $ => A :MEM_ALIGN_RD :RESTORE, RETURN -SHRarith_32: +SHLarith_32: 0 => A :RETURN -SHRarith_0: +SHLarith_0: :RETURN ; @info Shift right D bits to A