From 7b62c20136b2164d392668d0d74b519e9eeb487b Mon Sep 17 00:00:00 2001 From: alekseiplusplus Date: Thu, 6 Apr 2023 15:35:12 +1000 Subject: shifting towards new structure --- instruction-init | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 instruction-init (limited to 'instruction-init') diff --git a/instruction-init b/instruction-init new file mode 100644 index 0000000..73c80b9 --- /dev/null +++ b/instruction-init @@ -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