// instructions.h #pragma once #include"core.h" #include"6502.h" // Load and Store Instructions void fLDA(Addressing); void fLDX(Addressing); void fLDY(Addressing); void fSTA(Addressing); void fSTX(Addressing); void fSTY(Addressing); // Arithmetic Instructions void fADC(Addressing); void fSBC(Addressing); //Increment and Decrement Instructions void fINC(Addressing); void fINX(Addressing); void fINY(Addressing); void fDEC(Addressing); void fDEX(Addressing); void fDEY(Addressing); // Logical Instructions void fAND(Addressing); void fORA(Addressing); void fEOR(Addressing); // Jump, Branch, Compare, and Test Bits void fJMP(Addressing); void fBCC(Addressing); void fBCS(Addressing); void fBEQ(Addressing); void fBNE(Addressing); void fBMI(Addressing); void fBPL(Addressing); void fBVS(Addressing); void fBVC(Addressing); void fCMP(Addressing); void fCPX(Addressing); void fCPY(Addressing); void fBIT(Addressing); // Shift and Rotate Instructions void fASL(Addressing); void fLSR(Addressing); void fROL(Addressing); void fROR(Addressing); // Transfer Instructions void fTAX(Addressing); void fTAY(Addressing); void fTXA(Addressing); void fTYA(Addressing); // Stack Instructions void fTSX(Addressing); void fTXS(Addressing); void fPHA(Addressing); void fPHP(Addressing); void fPLA(Addressing); void fPLP(Addressing); // Subroutine Instructions void fJSR(Addressing); void fRTS(Addressing); void fRTI(Addressing); // Set/Reset Insutrctions void fCLC(Addressing); void fCLD(Addressing); void fCLI(Addressing); void fCLV(Addressing); void fSEC(Addressing); void fSED(Addressing); void fSEI(Addressing); // NOP/BRK Instructions void fNOP(Addressing); void fBRK(Addressing);