fix mmc multi def bug
This commit is contained in:
parent
a3d742d259
commit
87c35f8f19
2 changed files with 3 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
||||||
#include "ppu.h"
|
#include "ppu.h"
|
||||||
#include <klib.h>
|
#include <klib.h>
|
||||||
|
|
||||||
|
byte mmc_id;
|
||||||
#define MMC_MAX_PAGE_COUNT 1
|
#define MMC_MAX_PAGE_COUNT 1
|
||||||
|
|
||||||
static byte mmc_chr_pages[MMC_MAX_PAGE_COUNT][0x2000];
|
static byte mmc_chr_pages[MMC_MAX_PAGE_COUNT][0x2000];
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
byte mmc_id;
|
extern byte mmc_id;
|
||||||
|
|
||||||
byte mmc_read(word address);
|
byte mmc_read(word address);
|
||||||
void mmc_write(word address, byte data);
|
void mmc_write(word address, byte data);
|
||||||
void mmc_copy(word address, byte *source, int length);
|
void mmc_copy(word address, byte *source, int length);
|
||||||
void mmc_append_chr_rom_page(byte *source);
|
void mmc_append_chr_rom_page(byte *source);
|
||||||
|
|
Loading…
Add table
Reference in a new issue