16 lines
383 B
C
16 lines
383 B
C
#ifndef MEMORY_MAP_H
|
|
#define MEMORY_MAP_H
|
|
|
|
#include "io.h"
|
|
#include "ram.h"
|
|
#include "rom.h"
|
|
|
|
#include <stdint.h>
|
|
|
|
uint8_t readMemory(uint16_t address, uint8_t *ram, uint8_t *rom);
|
|
void writeMemory(uint16_t address, uint8_t value, uint8_t *ram);
|
|
|
|
uint8_t readStack(uint8_t address, uint8_t *ram);
|
|
void writeStack(uint8_t address, uint8_t value, uint8_t *ram);
|
|
|
|
#endif // MEMORY_MAP_H
|