1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
// instruction-init.h
// Initializes every instruction function prior to addressing.h so that function addresses are accessible
// Load and Store Instructions
void fLDA(Addressing addr, address val);
void fLDX(Addressing addr, address val);
void fLDY(Addressing addr, address val);
void fSTA(Addressing addr, address val);
void fSTX(Addressing addr, address val);
void fSTY(Addressing addr, address val);
// Arithmetic Instructions
void fADC(Addressing addr, address val);
void fSBC(Addressing addr, address val);
//Increment and Decrement Instructions
void fINC(Addressing addr, address val);
void fINX(Addressing addr, address val);
void fINY(Addressing addr, address val);
void fDEC(Addressing addr, address val);
void fDEX(Addressing addr, address val);
void fDEY(Addressing addr, address val);
// Logical Instructions
void fAND(Addressing addr, address val)
void fORA(Addressing addr, address val);
void fEOR(Addressing addr, address val);
// Jump, Branch, Compare, and Test Bits
void fJMP(Addressing addr, address val);
void fBCC(Addressing addr, address val);
void fBCS(Addressing addr, address val);
void fBEQ(Addressing addr, address val);
void fBNE(Addressing addr, address val);
void fBMI(Addressing addr, address val);
void fBPL(Addressing addr, address val);
void fBVS(Addressing addr, address val);
void fBVC(Addressing addr, address val);
void fCMP(Addressing addr, address val);
void fCPX(Addressing addr, address val);
void fCPY(Addressing addr, address val);
void fBIT(Addressing addr, address val);
// Shift and Rotate Instructions
void fASL(Addressing addr, address val);
void fLSR(Addressing addr, address val);
void fROL(Addressing addr, address val);
void fROR(Addressing addr, address val);
// Transfer Instructions
void fTAX(Addressing addr, address val);
void fTAY(Addressing addr, address val);
void fTXA(Addressing addr, address val);
void fTYA(Addressing addr, address val);
// Stack Instructions
void fTSX(Addressing addr, address val);
void fTXS(Addressing addr, address val);
void fPHA(Addressing addr, address val);
void fPHP(Addressing addr, address val);
void fPLA(Addressing addr, address val);
void fPLP(Addressing addr, address val);
// Subroutine Instructions
void fJSR(Addressing addr, address val);
void fRTS(Addressing addr, address val);
void fRTI(Addressing addr, address val);
// Set/Reset Insutrctions
void fCLC(Addressing addr, address val);
void fCLD(Addressing addr, address val);
void fCLI(Addressing addr, address val);
void fCLV(Addressing addr, address val);
void fSEC(Addressing addr, address val);
void fSED(Addressing addr, address val);
void fSEI(Addressing addr, address val);
// NOP/BRK Instructions
void fNOP(Addressing addr, address val);
void fBRK(Addressing addr, address val);
|