NES emulator in progress
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
nesem/bus.h

17 lines
465 B

#include <stdio.h>
#include <stdlib.h>
#include "common.h"
#define BUS_SIZE 0xFFFF
byte debug_read_do_not_use_pls(word address);
void busWrite8(word address, word data);
word busRead8(word adress);
word busRead16(word address);
void busWrite16(word address, word data);
void dumpBus();
word mapperResolveRead(word address); //gets defined in the cartridge mapper circuit code bcuz it differs from cart to cart
word mapperResolveWrite(word address, byte data);