[A83] Re: cant get code to work
[Prev][Next][Index][Thread]
[A83] Re: cant get code to work
On Sat, 11 May 2002 VertGuy@aol.com wrote:
your code doesn't modifty b anywhere else in the routine, so in this case
you can just leave out the popping and pushing, and inc b directly.
It'd eliminate the need for the push of bc before the routine too.
> b is used in the loop which calls this routine. 'djnz' is used to loop it so
> when 2nd is pressed in the code I posted, the loop goes through one more
> time. I push and pop bc for that use... would it be better to use a user
> defined variable? I don't know of another way to not push/pop bc, and on an
> earlier post, I was informed that to use the stack in a subroutine, I had to
> pop/push the memory address (hl).
>
>
>
References: