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
[email protected] wrote:
> loadhlpc:
> pop hl
> push hl
> ret
------------------------------------------------------------------------------
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user