⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 zeropageview.h

📁 专门为65XX系列芯片设计的变异调试环境的源代码
💻 H
字号:
/*-----------------------------------------------------------------------------
	6502 Macroassembler and Simulator

Copyright (C) 1995-2003 Michal Kowalski

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
-----------------------------------------------------------------------------*/

// ZeroPageView.h : header file
//

#ifndef _ZeroPageView_
#define _ZeroPageView_

#include "MemoryDoc.h"

/////////////////////////////////////////////////////////////////////////////
// CZeroPageView view

class CZeroPageView : public CView
{
  int m_nCx;	// ilo滄 kolumn
  int m_nCy;	// ilo滄 wierszy
  int m_nChrW;	// szeroko滄 znak體 (font mono)
  int m_nChrH;	// wysoko滄 znak體

  void calc(CDC *pDC);
  void scroll(UINT nSBCODE, int nPos, int nRepeat= 1);
  int set_scroll_range();
  void get_view_rect(RECT &rect)
  { GetClientRect(&rect); }
  int bytes_in_line()
  {
    int lim= (m_nCx - 17) / 3;	// ilo滄 wy渨ietlanych w jednym wierszu bajt體
    return lim <= 0 ? 1 : lim;
  }
  int find_prev_addr(UINT16 &addr, const COutputMem &mem, int cnt= 1, int bytes= 0);
  int find_next_addr(UINT16 &addr, const COutputMem &mem, int cnt= 1, int bytes= 0);
  int find_delta(UINT16 &addr, UINT16 dest, const COutputMem &mem, int max_lines);
protected:
  CZeroPageView();           // protected constructor used by dynamic creation
  DECLARE_DYNCREATE(CZeroPageView)
    
    // Attributes
public:
  static CFont m_Font;
  static LOGFONT m_LogFont;
  static COLORREF m_rgbTextColor;
  static COLORREF m_rgbBkgndColor;
  
  // Operations
public:
  
  // Overrides
  // ClassWizard generated virtual function overrides
  //{{AFX_VIRTUAL(CZeroPageView)
	public:
  virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
  virtual void OnInitialUpdate();
	protected:
  virtual void OnDraw(CDC* pDC);      // overridden to draw this view
  virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
	//}}AFX_VIRTUAL
  
  // Implementation
protected:
  virtual ~CZeroPageView();
#ifdef _DEBUG
  virtual void AssertValid() const;
  virtual void Dump(CDumpContext& dc) const;
#endif
  
  // Generated message map functions
protected:
  //{{AFX_MSG(CZeroPageView)
  afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  afx_msg void OnSize(UINT nType, int cx, int cy);
  afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  afx_msg void OnUpdateMemoryGoto(CCmdUI* pCmdUI);
  afx_msg void OnMemoryGoto();
  afx_msg void OnUpdateMemoryChg(CCmdUI* pCmdUI);
  afx_msg void OnMemoryChg();
	//}}AFX_MSG
  DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -