summaryrefslogtreecommitdiff
path: root/headers/apple.h
blob: 55ddaa3faee5801b4880dddf423942e3064f41f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#define MEMORY_SIZE 4096

void AppleOn(){
	Memory = calloc(MEMORY_SIZE, sizeof(byte));
	initInstructionTable();
}

void AppleReset(){
	acc = 0; X = 0; Y = 0; P = 0; S = 0;
	idata.cycles = 0; idata.length = 0; idata.add = 0; idata.value = 0;
	free(Memory);
	Memory = calloc(MEMORY_SIZE, sizeof(byte));
}