I think this example puts the stack-pointer into HL, doesn't it?

On Saturday 28 March 2009 22:02:04 bob...@comcast.net wrote:
> ----- candida lopez rodriguez  wrote:
> > I need to obtain the PC address (one of the commands that I want to have
> > is dump the registers). My problem is that I can not see a way to obtain
> > the PC, I can set it using HL but I do not have a way to obtain its
> > value. There is a way to do so
>
> You can add it to hl:
>
> ld hl,0
> add hl,sp
>
> Randy

-- 
Richard.
PGP Key-id: 0x5AB3D350

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

Reply via email to