z80_intf.[cpp/.h]: fix ZetSetHL(), add ZetSetSP()

This commit is contained in:
dinkc64 2015-03-14 17:30:47 +00:00
parent 42fcf24f48
commit d358141ae5
2 changed files with 6 additions and 0 deletions

View File

@ -774,6 +774,11 @@ void ZetSetBUSREQLine(INT32 nStatus)
}
void ZetSetHL(INT32 n, UINT16 value)
{
ZetCPUContext[n]->reg.hl.w.l=value;
}
void ZetSetSP(INT32 n, UINT16 value)
{
ZetCPUContext[n]->reg.sp.w.l=value;
}

View File

@ -51,6 +51,7 @@ INT32 ZetIdle(INT32 nCycles);
INT32 ZetSegmentCycles();
INT32 ZetTotalCycles();
void ZetSetHL(INT32 n, UINT16 value);
void ZetSetSP(INT32 n, UINT16 value);
//#define ZetRaiseIrq(n) ZetSetIRQLine(n, ZET_IRQSTATUS_AUTO)
//#define ZetLowerIrq() ZetSetIRQLine(0, Z80_CLEAR_LINE)