Started implementing the debugger.

This commit is contained in:
2017-01-31 19:42:04 +01:00
parent 3eba81d2bd
commit e47cb247eb
13 changed files with 7188 additions and 118 deletions

20
vdp.cpp
View File

@@ -22,19 +22,19 @@ struct t_sprite {
Uint8 col = 1;
};
SDL_Window* sdlWindow = NULL;
SDL_Renderer* sdlRenderer = NULL;
SDL_Texture* sdlTexture = NULL;
SDL_Rect src, dst;
const Uint8* keys = nullptr;
Uint8 just_pressed = SDL_SCANCODE_UNKNOWN;
static SDL_Window* sdlWindow = NULL;
static SDL_Renderer* sdlRenderer = NULL;
static SDL_Texture* sdlTexture = NULL;
static SDL_Rect src, dst;
static const Uint8* keys = nullptr;
static Uint8 just_pressed = SDL_SCANCODE_UNKNOWN;
t_sprite sprites[32];
static t_sprite sprites[32];
Uint8 screen_map[16 * 12];
Uint8 screen_color[16 * 12];
static Uint8 screen_map[16 * 12];
static Uint8 screen_color[16 * 12];
//Uint8 char_map[256 * 8];
Uint8 screen_buffer[128 * 96 * 4];
static Uint8 screen_buffer[128 * 96 * 4];
static Uint8 cursor_x = 0;
static Uint8 cursor_y = 0;