📄 scoreboarddlg.h
字号:
// scoreboardDlg.h : header file
//
#if !defined(AFX_SCOREBOARDDLG_H__0887C41C_24F2_4417_83AB_E15010A98F7A__INCLUDED_)
#define AFX_SCOREBOARDDLG_H__0887C41C_24F2_4417_83AB_E15010A98F7A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CScoreboardDlg dialog
class CScoreboardDlg : public CDialog
{
// Construction
public:
CScoreboardDlg(CWnd* pParent = NULL); // standard constructor
int get_fu_number(char *str);
void readcode();
int get_register_number(char * str);
bool testfinished();
int get_next_instr(int stadge,int fu);
bool available(char * dest);
void updatelist_ps(int row,int column);
void issue(void);
void readop(void);
void writback(void);
void execuse_int();
void execuse_addd();
void execuse_mult();
void execuse_divd();
void updatelist();
void initial();
int Clock;//the time slice
bool stepinto;//indicate if run by step;
bool stepflag;//flag use to control run by step;
bool Start; //begin to run auto
int clockcnt;//count the run colck
// Dialog Data
//{{AFX_DATA(CScoreboardDlg)
enum { IDD = IDD_SCOREBOARD_DIALOG };
CListCtrl m_function;
CListCtrl m_register;
CListCtrl m_instatus;
CListCtrl m_instruction;
CString PathName;
int m_inttime;
int m_addtime;
int m_multime;
int m_divtime;
int m_clock;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CScoreboardDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CScoreboardDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void Onopen();
afx_msg void decode(char* str,struct Instruction *instr);
afx_msg int determtime(char *str);
afx_msg void runauto();
afx_msg void steprun();
afx_msg void OnSetsystem();
afx_msg void OnButton2();
afx_msg void OnMenuitem32775();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SCOREBOARDDLG_H__0887C41C_24F2_4417_83AB_E15010A98F7A__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -