[A83] Re: call, stack adresses and free space


[Prev][Next][Index][Thread]

[A83] Re: call, stack adresses and free space




There are actually times when this is not so silly to do.  For example, when
you will have a sort of "switch" statement (C terminology), and need to jump
to a common address at the end of each block.  It is much shorter to push
the jump address once and ret to it many places, rather than jumping to it
many places.

> ld hl,bob
> push hl
> ret
>
> it would be like
>
> jp bob






References: