Or one instruction shorter (and 17 T states faster):
loadhlpc:
         pop   hl
        jp    (hl)

But this returns PC for Your code because user code doesn't know about 
Your loadhlpc function and doesn't call it... IMHO the only way after 
breakpoint (RST or NMI break request) is to look for break address in 
stack space.

Hynek Sladky


bodr...@mail.dm.unipi.it wrote:
> loadhlpc:
>         pop   hl
>         push  hl
>         ret

------------------------------------------------------------------------------
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to