-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDisasmWindow.h
More file actions
70 lines (51 loc) · 1.53 KB
/
Copy pathDisasmWindow.h
File metadata and controls
70 lines (51 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
//
// DisasmWindow.h
// Copyright © 2003 William Sheldon Simms III
//
#ifndef INCLUDED_DISASMWINDOW_H
#define INCLUDED_DISASMINDOW_H
#include "wx/wx.h"
#include "Memory.h"
#include "MemoryListener.h"
#include "WordRegisterListener.h"
#include "BreakpointManager.h"
class DisasmWindow: public wxScrolledWindow,
public MemoryListener,
public WordRegisterListener,
public BreakpointListener
{
public:
DisasmWindow (wxWindow * parent, Memory * nmem, BreakpointManager * nbpm);
void OnPaint (wxPaintEvent& event);
void OnMouseLeftDown (wxMouseEvent& event);
void ForceRefresh (void);
void TellNewValue (unsigned short w);
void TellNewValue (unsigned short addr, unsigned char byte);
void TellAddedBreakpoint (Breakpoint * bp);
void TellDeletedBreakpoint (Breakpoint * bp);
void TellEnabledBreakpoint (Breakpoint * bp);
void TellDisabledBreakpoint (Breakpoint * bp);
private:
Memory * mem;
BreakpointManager * bpm;
wxBitmap * bkpt_enabled;
wxBitmap * bkpt_disabled;
int bkpt_bmp_width;
int bkpt_bmp_height;
int bkpt_bmp_xoffs;
int bkpt_bmp_yoffs;
int cwidth;
int cheight;
int firstaddr;
int lastaddr;
int addridx;
unsigned short addrvec[65536];
bool running;
bool initial;
bool keep_pc_in_window;
int num_lines_backward (int addr); // should be called before num_lines_forward()
int num_lines_forward (int addr); // should be called after num_lines_backward()
void disassemble (unsigned short addr, char * buf);
DECLARE_EVENT_TABLE()
};
#endif // INCLUDED_DISASMWINDOW_H