fix mmc multi def bug

This commit is contained in:
Yanyan Jiang 2021-02-08 15:28:55 +00:00 committed by Zihao Yu
parent a3d742d259
commit 87c35f8f19
2 changed files with 3 additions and 2 deletions

View file

@ -2,6 +2,7 @@
#include "ppu.h"
#include <klib.h>
byte mmc_id;
#define MMC_MAX_PAGE_COUNT 1
static byte mmc_chr_pages[MMC_MAX_PAGE_COUNT][0x2000];

View file

@ -1,6 +1,6 @@
#include "common.h"
byte mmc_id;
extern byte mmc_id;
byte mmc_read(word address);
void mmc_write(word address, byte data);