summaryrefslogtreecommitdiff
path: root/instruction-init.h
diff options
context:
space:
mode:
authoralekseiplusplus <alekseijeaves@protonmail.com>2023-04-06 15:36:28 +1000
committeralekseiplusplus <alekseijeaves@protonmail.com>2023-04-06 15:36:28 +1000
commit4b2952578ece47358960e29825443f77070a7457 (patch)
tree5ee3b4b1d72e6f077f750ef1fe84d11e203ebcb0 /instruction-init.h
parent7b62c20136b2164d392668d0d74b519e9eeb487b (diff)
fixed instruction-init.h
Diffstat (limited to 'instruction-init.h')
-rw-r--r--instruction-init.h77
1 files changed, 77 insertions, 0 deletions
diff --git a/instruction-init.h b/instruction-init.h
new file mode 100644
index 0000000..73c80b9
--- /dev/null
+++ b/instruction-init.h
@@ -0,0 +1,77 @@
+// 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);