fixed mem access violation

This commit is contained in:
Lauchmelder 2021-10-24 13:47:11 +02:00
parent 2b71e3e0d2
commit 56c9dfbe6e
8 changed files with 188 additions and 64 deletions

View file

@ -2,6 +2,7 @@
#define _BUS_H_
#include "types.h"
#include <SDL.h>
struct CPU;
struct PPU;
@ -18,10 +19,12 @@ struct Bus
struct Cartridge* cartridge;
Byte masterClockTimer;
SDL_Renderer* screen;
};
// Sets up the Bus, allocates memory and creates devices
struct Bus* createBus();
struct Bus* createBus(SDL_Renderer* renderer);
// Destroys the bus, cleans up memory and destroys devices on the Bus
void destroyBus(struct Bus* bus);