Call/return mechanism
mahjongg
Posts: 141
I understand that the cog's do not have a return stack mechanism.
But do I understand correctly that a Call instruction not only does a jump to the subroutine, but also, at run time, modifies the correct return instruction so that return instruction will jump back to the right place (directly after the originating call)?
I't the only thing that makes sense, and the manual is a bit scarce on the actual details.
Mahjongg
But do I understand correctly that a Call instruction not only does a jump to the subroutine, but also, at run time, modifies the correct return instruction so that return instruction will jump back to the right place (directly after the originating call)?
I't the only thing that makes sense, and the manual is a bit scarce on the actual details.
Mahjongg
Comments