Add log msg for power-cycle, and improve debug-check for U1 $Csnn I/O access.

This commit is contained in:
tomcw 2022-03-12 10:16:25 +00:00
parent 12d1a0e1fe
commit 51149083e6
3 changed files with 6 additions and 2 deletions

View File

@ -341,7 +341,7 @@ pcap_t * TfePcapOpenAdapter(const std::string & interface_name)
return NULL;
}
if(g_fh) fprintf(g_fh, "PCAP: Succesfully opened adapter: '%s'\n", TfePcapDevice->name);
if(g_fh) fprintf(g_fh, "PCAP: Successfully opened adapter: '%s'\n", TfePcapDevice->name);
tfe_arch_enumadapter_close();
return TfePcapFP;

View File

@ -970,7 +970,9 @@ void Uthernet1::tfe_transmit(
static BYTE __stdcall TfeIoCxxx (WORD programcounter, WORD address, BYTE write, BYTE value, ULONG nCycles)
{
#ifdef _DEBUG
if (!IS_APPLE2)
const UINT slot = (address >> 8) & 0xf;
if (!IS_APPLE2 && slot == SLOT3)
{
// Derived from UTAIIe:5-28
//

View File

@ -532,6 +532,8 @@ void GetAppleWindowTitle()
// todo: consolidate CtrlReset() and ResetMachineState()
void ResetMachineState()
{
LogFileOutput("Apple II power-cycle\n");
GetCardMgr().Reset(true);
g_bFullSpeed = 0; // Might've hit reset in middle of InternalCpuExecute() - so beep may get (partially) muted