mirror of
https://github.com/thiagoauler/apple1.git
synced 2024-06-02 20:41:37 +00:00
15 lines
200 B
C
15 lines
200 B
C
|
#include "inc/types.h"
|
||
|
#include "inc/ram.h"
|
||
|
|
||
|
db ram_memory[4096]; // total memory: 4KB
|
||
|
|
||
|
void ram_read()
|
||
|
{
|
||
|
ram.mdr = ram_memory[ram.mar];
|
||
|
}
|
||
|
|
||
|
void ram_write()
|
||
|
{
|
||
|
ram_memory[ram.mar] = ram.mdr;
|
||
|
}
|