| 1 | /* |
| 2 | * Copyright (C) 2002-2010 The DOSBox Team |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License as published by |
| 6 | * the Free Software Foundation; either version 2 of the License, or |
| 7 | * (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program; if not, write to the Free Software |
| 16 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 17 | */ |
| 18 | |
| 19 | /* Local Debug Function */ |
| 20 | |
| 21 | /* $Id: debug_inc.h,v 1.12 2009-05-27 09:15:41 qbix79 Exp $ */ |
| 22 | |
| 23 | #include <curses.h> |
| 24 | #include "mem.h" |
| 25 | |
| 26 | #define PAIR_BLACK_BLUE 1 |
| 27 | #define PAIR_BYELLOW_BLACK 2 |
| 28 | #define PAIR_GREEN_BLACK 3 |
| 29 | #define PAIR_BLACK_GREY 4 |
| 30 | #define PAIR_GREY_RED 5 |
| 31 | |
| 32 | |
| 33 | void DBGUI_StartUp(void); |
| 34 | |
| 35 | struct DBGBlock { |
| 36 | WINDOW * win_main; /* The Main Window */ |
| 37 | WINDOW * win_reg; /* Register Window */ |
| 38 | WINDOW * win_data; /* Data Output window */ |
| 39 | WINDOW * win_code; /* Disassembly/Debug point Window */ |
| 40 | WINDOW * win_var; /* Variable Window */ |
| 41 | WINDOW * win_out; /* Text Output Window */ |
| 42 | Bit32u active_win; /* Current active window */ |
| 43 | Bit32u input_y; |
| 44 | Bit32u global_mask; /* Current msgmask */ |
| 45 | }; |
| 46 | |
| 47 | |
| 48 | struct DASMLine { |
| 49 | Bit32u pc; |
| 50 | char dasm[80]; |
| 51 | PhysPt ea; |
| 52 | Bit16u easeg; |
| 53 | Bit32u eaoff; |
| 54 | }; |
| 55 | |
| 56 | extern DBGBlock dbg; |
| 57 | |
| 58 | /* Local Debug Stuff */ |
| 59 | Bitu DasmI386(char* buffer, PhysPt pc, Bitu cur_ip, bool bit32); |
| 60 | int DasmLastOperandSize(void); |
| 61 |