summaryrefslogtreecommitdiff
path: root/src/cpu/table.h
blob: 70be5253624cc05ad6786ab1dc4fbb0eefdcfc7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//	table.h
//	Defines the instruction table, and the functions to access it.
#pragma once

#include"stdint.h"
#include"stdlib.h"
#include"string.h"
#include"addressing.h"

// Runs the next instruction through the CPU
void CallInstructionTable();

// Sets an individual portion of an instruction set
void SetInstructionTable(int index, void* function, Addressing addressing, int cycles);

// Initializes instruction table in memory.
void InitInstructionTable();