18 lines
426 B
C
18 lines
426 B
C
#ifndef MEMORY_H
|
|
#define MEMORY_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "file.h"
|
|
#include "io.h"
|
|
#include "ram.h"
|
|
#include "rom.h"
|
|
#include "screen.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_H
|