forked from commanderx16/x16-emulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
debugger.h
40 lines (32 loc) · 1.47 KB
/
debugger.h
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
// *******************************************************************************************
// *******************************************************************************************
//
// File: debugger.h
// Date: 5th September 2019
// Purpose: Debugger header
// Author: Paul Robson (paul@robson.org.uk)
//
// *******************************************************************************************
// *******************************************************************************************
#ifndef _DEBUGGER_H
#define _DEBUGGER_H
#include <SDL.h>
extern int showDebugOnRender;
void DEBUGRenderDisplay(int width,int height);
void DEBUGBreakToDebugger(void);
int DEBUGGetCurrentStatus(void);
void DEBUGSetBreakPoint(int newBreakPoint);
void DEBUGInitUI(SDL_Renderer *pRenderer);
void DEBUGFreeUI();
#define DBG_WIDTH (60) // Char cells across
#define DBG_HEIGHT (60)
#define DBG_ASMX (1) // Disassembly starts here
#define DBG_LBLX (26) // Debug labels start here
#define DBG_DATX (30) // Debug data starts here.
#define DBG_STCK (40) // Debug stack starts here.
#define DBG_MEMX (1) // Memory Display starts here
#define DBG_ZP_REG (45) // Zero page registers start here
#define DMODE_STOP (0) // Debugger is waiting for action.
#define DMODE_STEP (1) // Debugger is doing a single step
#define DMODE_RUN (2) // Debugger is running normally.
#endif