fixed mem access violation
This commit is contained in:
parent
2b71e3e0d2
commit
56c9dfbe6e
8 changed files with 188 additions and 64 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue