[A83] Re: cant get code to work
[Prev][Next][Index][Thread]
[A83] Re: cant get code to work
On Fri, 10 May 2002, Joe Pemberton wrote:
> hl,bc', 'add hl,hl', and 'add hl,sp'. In this case 3 'inc hl's is smaller
> and faster than the code it would take to load 3 into de or something and do
> 'add hl,de'.
> Just in my opinion - It's bad coding to pop more words of the stack than
> you've pushed, especially within subroutines. Try to think of a way you
> don't have to do that. What is the 'inc b' for, BTW?
> - - Joe
I think he passes an argument to the subroutine, by pushing it, in the
subroutine he pops the argument, and increases it if some condition is
true.
>
>
References: