Re: A86: Re: Asm questions


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

Re: A86: Re: Asm questions




> if i remeber right you need to pop af if you send it in the loop
> if you don't and there are like 5 time it has to jump there you will
> have 5 entrys pushed and that would crash your calc
> >       jp m, keyloop                           ;it's not a usefull key if negative
> >       pop af                                  ;recall the keycode
> >       push af                                 ;and save it again


The jump command doesn't mess with the stack at all.  I made sure that
at the end of each program branch all pushes were accounted for with
pops, but jumping should not affect it.  The call instruction uses the
stack, not jump.


References: