cscg22-gearboy

CSCG 2022 Challenge 'Gearboy'
git clone https://git.sinitax.com/sinitax/cscg22-gearboy
Log | Files | Refs | sfeed.txt

gui_debug.h (1687B)


      1/*
      2 * Gearboy - Nintendo Game Boy Emulator
      3 * Copyright (C) 2012  Ignacio Sanchez
      4
      5 * This program is free software: you can redistribute it and/or modify
      6 * it under the terms of the GNU General Public License as published by
      7 * the Free Software Foundation, either version 3 of the License, or
      8 * any later version.
      9
     10 * This program is distributed in the hope that it will be useful,
     11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
     13 * GNU General Public License for more details.
     14
     15 * You should have received a copy of the GNU General Public License
     16 * along with this program.  If not, see http://www.gnu.org/licenses/
     17 *
     18 */
     19
     20#ifndef GUI_DEBUG_H
     21#define	GUI_DEBUG_H
     22
     23#ifdef GUI_DEBUG_IMPORT
     24    #define EXTERN
     25#else
     26    #define EXTERN extern
     27#endif
     28
     29#define BYTE_TO_BINARY_PATTERN "%c%c%c%c%c%c%c%c"
     30#define BYTE_TO_BINARY_PATTERN_SPACED "%c%c%c%c %c%c%c%c"
     31#define BYTE_TO_BINARY(byte)  \
     32  (byte & 0x80 ? '1' : '0'), \
     33  (byte & 0x40 ? '1' : '0'), \
     34  (byte & 0x20 ? '1' : '0'), \
     35  (byte & 0x10 ? '1' : '0'), \
     36  (byte & 0x08 ? '1' : '0'), \
     37  (byte & 0x04 ? '1' : '0'), \
     38  (byte & 0x02 ? '1' : '0'), \
     39  (byte & 0x01 ? '1' : '0') 
     40
     41EXTERN void gui_debug_windows(void);
     42EXTERN void gui_debug_reset(void);
     43EXTERN void gui_debug_reset_symbols(void);
     44EXTERN void gui_debug_load_symbols_file(const char* path);
     45EXTERN void gui_debug_toggle_breakpoint(void);
     46EXTERN void gui_debug_reset_breakpoints_cpu(void);
     47EXTERN void gui_debug_reset_breakpoints_mem(void);
     48EXTERN void gui_debug_runtocursor(void);
     49EXTERN void gui_debug_go_back(void);
     50
     51#undef GUI_DEBUG_IMPORT
     52#undef EXTERN
     53#endif	/* GUI_DEBUG_H */