From 4b2952578ece47358960e29825443f77070a7457 Mon Sep 17 00:00:00 2001 From: alekseiplusplus Date: Thu, 6 Apr 2023 15:36:28 +1000 Subject: fixed instruction-init.h --- instruction-init.h | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 instruction-init.h (limited to 'instruction-init.h') 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); -- cgit v1.2.3