Blame view

mem.c 291 Bytes
Imanol-Mikel Barba Sabariego authored
1
2
3
4
//
// Created by imanol on 12/25/16.
//
5
6
#include <stdint.h>
#include <string.h>
7
8
#include "mem.h"
9
10
11
12
13
14
15
16
17
18
19
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));
}