The current documentation says that CACHE and SWAP acts on the ith element of the stack but it is nowhere mentioned if the stack is indexed from 0 or 1. Looking at the actual implementation in ceval.c makes the answer obvious but it is tedious and the documentation could be improved I believe.
The text was updated successfully, but these errors were encountered:
MatthieuDartiailh commentedAug 31, 2022
Documentation
The current documentation says that CACHE and SWAP acts on the ith element of the stack but it is nowhere mentioned if the stack is indexed from 0 or 1. Looking at the actual implementation in ceval.c makes the answer obvious but it is tedious and the documentation could be improved I believe.
The text was updated successfully, but these errors were encountered: