[A83] Re: program counter value
[Prev][Next][Index][Thread]
[A83] Re: program counter value
One way might be to have something like this
	call	getPC
	[..HL is now PC..]
getPC:
	pop	hl
	jp	(hl)
Although I think that if you ask how to get PC, you're not able to use
calls, so... you can also use this.
	ld	hl,$E9E1
	ld	($FE6F),hl
	call	$FE6F
	[..now HL is PC..]
Tijl
On Sat, 1 Dec 2001, The one and only SUCKER ... wrote:
>
> Is there a way to get the value of the Program Counter?
> I know "ld CP,hl" does not exist, but does somebody know
> how?
>
>             SUCKER
References: