mem.c
291 Bytes
//
// Created by imanol on 12/25/16.
//
#include <stdint.h>
#include <string.h>
#include "mem.h"
uint16_t mem[MEMSIZE];
void dump_memory(uint16_t *dump)
{
memcpy(dump,mem,MEMSIZE*sizeof(uint16_t));
}
void load_memory(uint16_t *dump)
{
memcpy(mem,dump,MEMSIZE*sizeof(uint16_t));
}