📄 dfysimulator.h
字号:
// DFYSimulator.h : main header file for the DFYSIMULATOR application
//
#if !defined(AFX_DFYSIMULATOR_H__15E12028_7666_47B8_9DAE_76AF0F0AD5D2__INCLUDED_)
#define AFX_DFYSIMULATOR_H__15E12028_7666_47B8_9DAE_76AF0F0AD5D2__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "resource.h" // main symbols
/////////////////////////////////////////////////////////////////////////////
// CDFYSimulatorApp:
// See DFYSimulator.cpp for the implementation of this class
//
//the following clss will be used
class CExecuteDocument;
class CPU;
class Memory;
class BUSSystem;
class DeviceInterface;
class CDFYSimulatorApp : public CWinApp
{
public:
CDFYSimulatorApp();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDFYSimulatorApp)
public:
virtual BOOL InitInstance();
virtual int ExitInstance();
//}}AFX_VIRTUAL
//simulator component
private:
CPU* _cpu;
Memory* _memory;
BUSSystem* _busSystem;
DeviceInterface* _deviceInterface;
//operation on simulator
public:
CPU* GetSimulatorCPU(){return _cpu;}
Memory* GetSimulatorMemory(){return _memory;}
BUSSystem* GetSimulatorBUSSystem(){return _busSystem;}
DeviceInterface* GetSimulatorDeviceInterface(){return _deviceInterface;}
//attribute
private:
int m_iIntMask;//record the cpu's IRQ mask
BOOL m_bOpenINT;//if the cpu Open INT ,the value is TRUE
BOOL m_bStep;//if the cpu execute in step ,the value is TRUE
char* m_strCurFileName;
int m_iSimulatorSpeed;
BOOL m_bExeFrameExist;//TRUE means the excute frame exist
BOOL m_bDebugFrameExist;//TRUE means the debug frame exist
public:
char* GetCurFileName();
void SetCurFileName(char* strFileName);
int GetSimulatorSpeed();
BOOL GetExeFrameState(){return m_bExeFrameExist;}
void SetExeFrameState(BOOL bExist){m_bExeFrameExist=bExist;}
BOOL GetDebugFrameState(){return m_bDebugFrameExist;}
void SetDebugFrameState(BOOL bExist){m_bDebugFrameExist=bExist;}
// Implementation
//{{AFX_MSG(CDFYSimulatorApp)
afx_msg void OnAppAbout();
afx_msg void OnFileOpen();
afx_msg void OnModeExecute();
afx_msg void OnModeDebug();
afx_msg void OnModeProcessor();
afx_msg void OnModeSpeed();
afx_msg void OnViewMemory();
afx_msg void OnViewRegister();
afx_msg void OnUpdateViewRegister(CCmdUI* pCmdUI);
afx_msg void OnViewStack();
afx_msg void OnUpdateViewStack(CCmdUI* pCmdUI);
afx_msg void OnViewVariable();
afx_msg void OnUpdateViewVariable(CCmdUI* pCmdUI);
afx_msg void OnViewOutput();
afx_msg void OnUpdateViewOutput(CCmdUI* pCmdUI);
afx_msg void OnUpdateViewMemory(CCmdUI* pCmdUI);
afx_msg void OnDevice8259();
afx_msg void OnUpdateDevice8259(CCmdUI* pCmdUI);
afx_msg void OnComponentCpu();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
protected:
void UninstallSimulator();
void LoadSimulator();
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DFYSIMULATOR_H__15E12028_7666_47B8_9DAE_76AF0F0AD5D2__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -