From: Richard G. <ri...@re...> - 2009-03-28 22:11:37
|
I think this example puts the stack-pointer into HL, doesn't it? On Saturday 28 March 2009 22:02:04 bo...@co... 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 |