Added method to fetch current PC value

This commit is contained in:
Nik Henson 2011-09-07 07:36:08 +00:00
parent 0a512d79eb
commit 532c6e7edb
2 changed files with 15 additions and 0 deletions

View file

@ -3742,6 +3742,11 @@ void CZ80::SetINT(BOOL state)
intLine = state;
}
UINT16 CZ80::GetPC(void)
{
return pc;
}
void CZ80::Reset(void)
{
pc = 0x0000;

View file

@ -109,6 +109,16 @@ public:
*/
void SetINT(BOOL state);
/*
* GetPC(void):
*
* Returns the current PC value.
* Returns:
* Current value of PC register.
*/
UINT16 GetPC(void);
/*
* Reset(void):
*