A dedicated frame pointer register is definitely a more popular calling convention in common ABIs, but there's nothing intrinsically "wrong" in using a different (possibly simpler) calling convention when it's purely for illustrative purposes (adding a frame pointer register to those snippets would just make them a tad longer and change nothing substantial).
↧