Find limit of recursion: Difference between revisions

no edit summary
(made Fermat cry)
No edit summary
Line 8:
Find the limit of recursion.
<br><br>
=={{header|6502 Assembly}}==
The 6502's hardware stack isn't like other processors. First, it is fixed at the $0100-$01FF address range. The stack pointer is an 8-bit value, and assumes that the stack is always between $0100-$01FF. If the stack were to reach $01, and another <code>JSR</code> is executed, the stack would underflow to $FE, and the bottom of the stack would get clobbered. Since each JSR pushes a 2-byte return address onto the stack, the hardware limit of recursion is 128 calls.
 
=={{header|8080 Assembly}}==
1,489

edits