Adds functions to read and write mappings, as well as enable and disable the memory mapper. This also moves increases the io space by 16 bytes.
13 lines
182 B
C
13 lines
182 B
C
#ifndef _MAPPER_H
|
|
#define _MAPPER_H
|
|
|
|
#include <stdint.h>
|
|
|
|
void mapper_enable(uint8_t en);
|
|
|
|
uint8_t mapper_read(uint8_t addr);
|
|
void mapper_write(uint8_t data, uint8_t addr);
|
|
|
|
#endif
|
|
|