⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 arm7tdmi.h

📁 一个任天堂掌上游戏机NDS的源代码
💻 H
📖 第 1 页 / 共 3 页
字号:
        static OPCODE xopRSBSari(), xopRSBSarr();
        static OPCODE xopRSBSrri(), xopRSBSrrr();
        static OPCODE xopRSBSimm();

        static OPCODE xopADDSlli(), xopADDSllr();
        static OPCODE xopADDSlri(), xopADDSlrr();
        static OPCODE xopADDSari(), xopADDSarr();
        static OPCODE xopADDSrri(), xopADDSrrr();
        static OPCODE xopADDSimm();

        static OPCODE xopADCSlli(), xopADCSllr();
        static OPCODE xopADCSlri(), xopADCSlrr();
        static OPCODE xopADCSari(), xopADCSarr();
        static OPCODE xopADCSrri(), xopADCSrrr();
        static OPCODE xopADCSimm();

        static OPCODE xopSBCSlli(), xopSBCSllr();
        static OPCODE xopSBCSlri(), xopSBCSlrr();
        static OPCODE xopSBCSari(), xopSBCSarr();
        static OPCODE xopSBCSrri(), xopSBCSrrr();
        static OPCODE xopSBCSimm();

        static OPCODE xopRSCSlli(), xopRSCSllr();
        static OPCODE xopRSCSlri(), xopRSCSlrr();
        static OPCODE xopRSCSari(), xopRSCSarr();
        static OPCODE xopRSCSrri(), xopRSCSrrr();
        static OPCODE xopRSCSimm();

        static OPCODE xopTSTSlli(), xopTSTSllr();
        static OPCODE xopTSTSlri(), xopTSTSlrr();
        static OPCODE xopTSTSari(), xopTSTSarr();
        static OPCODE xopTSTSrri(), xopTSTSrrr();
        static OPCODE xopTSTSimm();

        static OPCODE xopTEQSlli(), xopTEQSllr();
        static OPCODE xopTEQSlri(), xopTEQSlrr();
        static OPCODE xopTEQSari(), xopTEQSarr();
        static OPCODE xopTEQSrri(), xopTEQSrrr();
        static OPCODE xopTEQSimm();

        static OPCODE xopCMPSlli(), xopCMPSllr();
        static OPCODE xopCMPSlri(), xopCMPSlrr();
        static OPCODE xopCMPSari(), xopCMPSarr();
        static OPCODE xopCMPSrri(), xopCMPSrrr();
        static OPCODE xopCMPSimm();

        static OPCODE xopCMNSlli(), xopCMNSllr();
        static OPCODE xopCMNSlri(), xopCMNSlrr();
        static OPCODE xopCMNSari(), xopCMNSarr();
        static OPCODE xopCMNSrri(), xopCMNSrrr();
        static OPCODE xopCMNSimm();

        static OPCODE xopORRSlli(), xopORRSllr();
        static OPCODE xopORRSlri(), xopORRSlrr();
        static OPCODE xopORRSari(), xopORRSarr();
        static OPCODE xopORRSrri(), xopORRSrrr();
        static OPCODE xopORRSimm();

        static OPCODE xopMOVSlli(), xopMOVSllr();
        static OPCODE xopMOVSlri(), xopMOVSlrr();
        static OPCODE xopMOVSari(), xopMOVSarr();
        static OPCODE xopMOVSrri(), xopMOVSrrr();
        static OPCODE xopMOVSimm();

        static OPCODE xopBICSlli(), xopBICSllr();
        static OPCODE xopBICSlri(), xopBICSlrr();
        static OPCODE xopBICSari(), xopBICSarr();
        static OPCODE xopBICSrri(), xopBICSrrr();
        static OPCODE xopBICSimm();

        static OPCODE xopMVNSlli(), xopMVNSllr();
        static OPCODE xopMVNSlri(), xopMVNSlrr();
        static OPCODE xopMVNSari(), xopMVNSarr();
        static OPCODE xopMVNSrri(), xopMVNSrrr();
        static OPCODE xopMVNSimm();

        //---Multiply/LongMul------------------------------------------------------

        static OPCODE xopMUL(), xopMLA();
        static OPCODE xopUMULL(), xopUMLAL(), xopSMULL(), xopSMLAL();

        static OPCODE xopMULS(), xopMLAS();
        static OPCODE xopUMULLS(), xopUMLALS(), xopSMULLS(), xopSMLALS();

        //---Move Register From Status; Imm/Reg; Cpsr/Spsr-------------------------

        static OPCODE xopMRSrc(), xopMRSrs();

        //---Move Status from Register; Cpsr/Spsr----------------------------------

        static OPCODE xopMSRrc(), xopMSRrs();
        static OPCODE xopMSRic(), xopMSRis();

        //---LS (Load/Store); PReidx/OFfset/PsTidx; Imm/Reg; Minus/Plus; (Shift)---

        static OPCODE xopLDRptim(), xopLDRofim(), xopLDRprim();
        static OPCODE xopLDRptip(), xopLDRofip(), xopLDRprip();

        static OPCODE xopSTRptim(), xopSTRofim(), xopSTRprim();
        static OPCODE xopSTRptip(), xopSTRofip(), xopSTRprip();

        static OPCODE xopLDRBptim(), xopLDRBofim(), xopLDRBprim();
        static OPCODE xopLDRBptip(), xopLDRBofip(), xopLDRBprip();

        static OPCODE xopSTRBptim(), xopSTRBofim(), xopSTRBprim();
        static OPCODE xopSTRBptip(), xopSTRBofip(), xopSTRBprip();

        static OPCODE xopLDRHptim(), xopLDRHofim(), xopLDRHprim();
        static OPCODE xopLDRHptip(), xopLDRHofip(), xopLDRHprip();
        static OPCODE xopLDRHptrm(), xopLDRHofrm(), xopLDRHprrm();
        static OPCODE xopLDRHptrp(), xopLDRHofrp(), xopLDRHprrp();

        static OPCODE xopSTRHptim(), xopSTRHofim(), xopSTRHprim();
        static OPCODE xopSTRHptip(), xopSTRHofip(), xopSTRHprip();
        static OPCODE xopSTRHptrm(), xopSTRHofrm(), xopSTRHprrm();
        static OPCODE xopSTRHptrp(), xopSTRHofrp(), xopSTRHprrp();

        static OPCODE xopLDRTptim(), xopLDRTofim(), xopLDRTprim();
        static OPCODE xopLDRTptip(), xopLDRTofip(), xopLDRTprip();

        static OPCODE xopSTRTptim(), xopSTRTofim(), xopSTRTprim();
        static OPCODE xopSTRTptip(), xopSTRTofip(), xopSTRTprip();

        static OPCODE xopLDRBTptim(), xopLDRBTofim(), xopLDRBTprim();
        static OPCODE xopLDRBTptip(), xopLDRBTofip(), xopLDRBTprip();

        static OPCODE xopSTRBTptim(), xopSTRBTofim(), xopSTRBTprim();
        static OPCODE xopSTRBTptip(), xopSTRBTofip(), xopSTRBTprip();

        static OPCODE xopLDRSHptim(), xopLDRSHofim(), xopLDRSHprim();
        static OPCODE xopLDRSHptip(), xopLDRSHofip(), xopLDRSHprip();
        static OPCODE xopLDRSHptrm(), xopLDRSHofrm(), xopLDRSHprrm();
        static OPCODE xopLDRSHptrp(), xopLDRSHofrp(), xopLDRSHprrp();

        static OPCODE xopLDRSBptim(), xopLDRSBofim(), xopLDRSBprim();
        static OPCODE xopLDRSBptip(), xopLDRSBofip(), xopLDRSBprip();
        static OPCODE xopLDRSBptrm(), xopLDRSBofrm(), xopLDRSBprrm();
        static OPCODE xopLDRSBptrp(), xopLDRSBofrp(), xopLDRSBprrp();

        static OPCODE xopLDRptrmll(), xopLDRofrmll(), xopLDRprrmll();
        static OPCODE xopLDRptrpll(), xopLDRofrpll(), xopLDRprrpll();
        static OPCODE xopLDRptrmlr(), xopLDRofrmlr(), xopLDRprrmlr();
        static OPCODE xopLDRptrplr(), xopLDRofrplr(), xopLDRprrplr();
        static OPCODE xopLDRptrmar(), xopLDRofrmar(), xopLDRprrmar();
        static OPCODE xopLDRptrpar(), xopLDRofrpar(), xopLDRprrpar();
        static OPCODE xopLDRptrmrr(), xopLDRofrmrr(), xopLDRprrmrr();
        static OPCODE xopLDRptrprr(), xopLDRofrprr(), xopLDRprrprr();

        static OPCODE xopSTRptrmll(), xopSTRofrmll(), xopSTRprrmll();
        static OPCODE xopSTRptrpll(), xopSTRofrpll(), xopSTRprrpll();
        static OPCODE xopSTRptrmlr(), xopSTRofrmlr(), xopSTRprrmlr();
        static OPCODE xopSTRptrplr(), xopSTRofrplr(), xopSTRprrplr();
        static OPCODE xopSTRptrmar(), xopSTRofrmar(), xopSTRprrmar();
        static OPCODE xopSTRptrpar(), xopSTRofrpar(), xopSTRprrpar();
        static OPCODE xopSTRptrmrr(), xopSTRofrmrr(), xopSTRprrmrr();
        static OPCODE xopSTRptrprr(), xopSTRofrprr(), xopSTRprrprr();

        static OPCODE xopLDRBptrmll(), xopLDRBofrmll(), xopLDRBprrmll();
        static OPCODE xopLDRBptrpll(), xopLDRBofrpll(), xopLDRBprrpll();
        static OPCODE xopLDRBptrmlr(), xopLDRBofrmlr(), xopLDRBprrmlr();
        static OPCODE xopLDRBptrplr(), xopLDRBofrplr(), xopLDRBprrplr();
        static OPCODE xopLDRBptrmar(), xopLDRBofrmar(), xopLDRBprrmar();
        static OPCODE xopLDRBptrpar(), xopLDRBofrpar(), xopLDRBprrpar();
        static OPCODE xopLDRBptrmrr(), xopLDRBofrmrr(), xopLDRBprrmrr();
        static OPCODE xopLDRBptrprr(), xopLDRBofrprr(), xopLDRBprrprr();

        static OPCODE xopSTRBptrmll(), xopSTRBofrmll(), xopSTRBprrmll();
        static OPCODE xopSTRBptrpll(), xopSTRBofrpll(), xopSTRBprrpll();
        static OPCODE xopSTRBptrmlr(), xopSTRBofrmlr(), xopSTRBprrmlr();
        static OPCODE xopSTRBptrplr(), xopSTRBofrplr(), xopSTRBprrplr();
        static OPCODE xopSTRBptrmar(), xopSTRBofrmar(), xopSTRBprrmar();
        static OPCODE xopSTRBptrpar(), xopSTRBofrpar(), xopSTRBprrpar();
        static OPCODE xopSTRBptrmrr(), xopSTRBofrmrr(), xopSTRBprrmrr();
        static OPCODE xopSTRBptrprr(), xopSTRBofrprr(), xopSTRBprrprr();

        static OPCODE xopLDRTptrmll(), xopLDRTofrmll(), xopLDRTprrmll();
        static OPCODE xopLDRTptrpll(), xopLDRTofrpll(), xopLDRTprrpll();
        static OPCODE xopLDRTptrmlr(), xopLDRTofrmlr(), xopLDRTprrmlr();
        static OPCODE xopLDRTptrplr(), xopLDRTofrplr(), xopLDRTprrplr();
        static OPCODE xopLDRTptrmar(), xopLDRTofrmar(), xopLDRTprrmar();
        static OPCODE xopLDRTptrpar(), xopLDRTofrpar(), xopLDRTprrpar();
        static OPCODE xopLDRTptrmrr(), xopLDRTofrmrr(), xopLDRTprrmrr();
        static OPCODE xopLDRTptrprr(), xopLDRTofrprr(), xopLDRTprrprr();

        static OPCODE xopSTRTptrmll(), xopSTRTofrmll(), xopSTRTprrmll();
        static OPCODE xopSTRTptrpll(), xopSTRTofrpll(), xopSTRTprrpll();
        static OPCODE xopSTRTptrmlr(), xopSTRTofrmlr(), xopSTRTprrmlr();
        static OPCODE xopSTRTptrplr(), xopSTRTofrplr(), xopSTRTprrplr();
        static OPCODE xopSTRTptrmar(), xopSTRTofrmar(), xopSTRTprrmar();
        static OPCODE xopSTRTptrpar(), xopSTRTofrpar(), xopSTRTprrpar();
        static OPCODE xopSTRTptrmrr(), xopSTRTofrmrr(), xopSTRTprrmrr();
        static OPCODE xopSTRTptrprr(), xopSTRTofrprr(), xopSTRTprrprr();

        static OPCODE xopLDRBTptrmll(), xopLDRBTofrmll(), xopLDRBTprrmll();
        static OPCODE xopLDRBTptrpll(), xopLDRBTofrpll(), xopLDRBTprrpll();
        static OPCODE xopLDRBTptrmlr(), xopLDRBTofrmlr(), xopLDRBTprrmlr();
        static OPCODE xopLDRBTptrplr(), xopLDRBTofrplr(), xopLDRBTprrplr();
        static OPCODE xopLDRBTptrmar(), xopLDRBTofrmar(), xopLDRBTprrmar();
        static OPCODE xopLDRBTptrpar(), xopLDRBTofrpar(), xopLDRBTprrpar();
        static OPCODE xopLDRBTptrmrr(), xopLDRBTofrmrr(), xopLDRBTprrmrr();
        static OPCODE xopLDRBTptrprr(), xopLDRBTofrprr(), xopLDRBTprrprr();

        static OPCODE xopSTRBTptrmll(), xopSTRBTofrmll(), xopSTRBTprrmll();
        static OPCODE xopSTRBTptrpll(), xopSTRBTofrpll(), xopSTRBTprrpll();
        static OPCODE xopSTRBTptrmlr(), xopSTRBTofrmlr(), xopSTRBTprrmlr();
        static OPCODE xopSTRBTptrplr(), xopSTRBTofrplr(), xopSTRBTprrplr();
        static OPCODE xopSTRBTptrmar(), xopSTRBTofrmar(), xopSTRBTprrmar();
        static OPCODE xopSTRBTptrpar(), xopSTRBTofrpar(), xopSTRBTprrpar();
        static OPCODE xopSTRBTptrmrr(), xopSTRBTofrmrr(), xopSTRBTprrmrr();
        static OPCODE xopSTRBTptrprr(), xopSTRBTofrprr(), xopSTRBTprrprr();

        //---SWP-------------------------------------------------------------------

        static OPCODE xopSWP(), xopSWPB();

        //---LoaD/STore Multiple; Increment/Decrement After/Before-----------------

        static OPCODE xopLDMIA(), xopLDMIB(), xopLDMDA(), xopLDMDB();
        static OPCODE xopSTMIA(), xopSTMIB(), xopSTMDA(), xopSTMDB();

        static OPCODE xopLDMIAu(), xopLDMIBu(), xopLDMDAu(), xopLDMDBu();
        static OPCODE xopSTMIAu(), xopSTMIBu(), xopSTMDAu(), xopSTMDBu();

        static OPCODE xopLDMIAw(), xopLDMIBw(), xopLDMDAw(), xopLDMDBw();
        static OPCODE xopSTMIAw(), xopSTMIBw(), xopSTMDAw(), xopSTMDBw();

        static OPCODE xopLDMIAuw(), xopLDMIBuw(), xopLDMDAuw(), xopLDMDBuw();
        static OPCODE xopSTMIAuw(), xopSTMIBuw(), xopSTMDAuw(), xopSTMDBuw();

        //---SoftWare Interrupts---------------------------------------------------

        static OPCODE xopSWI();

        //---Thumb xops-------------------------------------------------------------

        static OPCODE xtopLSLimm(), xtopLSRimm(), xtopASRimm();
        static OPCODE xtopADDreg(), xtopSUBreg();
        static OPCODE xtopADDimm3(), xtopSUBimm3();

        static OPCODE xtopMOVimm8r0(), xtopMOVimm8r1();
        static OPCODE xtopMOVimm8r2(), xtopMOVimm8r3();
        static OPCODE xtopMOVimm8r4(), xtopMOVimm8r5();
        static OPCODE xtopMOVimm8r6(), xtopMOVimm8r7();
        static OPCODE xtopCMPimm8r0(), xtopCMPimm8r1();
        static OPCODE xtopCMPimm8r2(), xtopCMPimm8r3();
        static OPCODE xtopCMPimm8r4(), xtopCMPimm8r5();
        static OPCODE xtopCMPimm8r6(), xtopCMPimm8r7();
        static OPCODE xtopADDimm8r0(), xtopADDimm8r1();
        static OPCODE xtopADDimm8r2(), xtopADDimm8r3();
        static OPCODE xtopADDimm8r4(), xtopADDimm8r5();
        static OPCODE xtopADDimm8r6(), xtopADDimm8r7();
        static OPCODE xtopSUBimm8r0(), xtopSUBimm8r1();
        static OPCODE xtopSUBimm8r2(), xtopSUBimm8r3();
        static OPCODE xtopSUBimm8r4(), xtopSUBimm8r5();
        static OPCODE xtopSUBimm8r6(), xtopSUBimm8r7();

        static OPCODE xtopDPg1(), xtopDPg2(), xtopDPg3(), xtopDPg4();
        static OPCODE xtopADDH(), xtopMOVH(), xtopCMPH(), xtopBXreg();

        static OPCODE xtopLDRPCr0(), xtopLDRPCr1();
        static OPCODE xtopLDRPCr2(), xtopLDRPCr3();
        static OPCODE xtopLDRPCr4(), xtopLDRPCr5();
        static OPCODE xtopLDRPCr6(), xtopLDRPCr7();

        static OPCODE xtopSTRSPr0(), xtopSTRSPr1();
        static OPCODE xtopSTRSPr2(), xtopSTRSPr3();
        static OPCODE xtopSTRSPr4(), xtopSTRSPr5();
        static OPCODE xtopSTRSPr6(), xtopSTRSPr7();
        static OPCODE xtopLDRSPr0(), xtopLDRSPr1();
        static OPCODE xtopLDRSPr2(), xtopLDRSPr3();
        static OPCODE xtopLDRSPr4(), xtopLDRSPr5();
        static OPCODE xtopLDRSPr6(), xtopLDRSPr7();

        static OPCODE xtopSTRreg(),  xtopLDRreg();
        static OPCODE xtopSTRHreg(), xtopLDRHreg();
        static OPCODE xtopSTRBreg(), xtopLDRBreg();

        static OPCODE xtopLDRSBreg(), xtopLDRSHreg();

        static OPCODE xtopSTRimm5(),  xtopLDRimm5();
        static OPCODE xtopSTRBimm5(), xtopLDRBimm5();
        static OPCODE xtopSTRHimm5(), xtopLDRHimm5();

        static OPCODE xtopADDPCr0(), xtopADDPCr1();
        static OPCODE xtopADDPCr2(), xtopADDPCr3();
        static OPCODE xtopADDPCr4(), xtopADDPCr5();
        static OPCODE xtopADDPCr6(), xtopADDPCr7();
        static OPCODE xtopADDSPr0(), xtopADDSPr1();
        static OPCODE xtopADDSPr2(), xtopADDSPr3();
        static OPCODE xtopADDSPr4(), xtopADDSPr5();
        static OPCODE xtopADDSPr6(), xtopADDSPr7();
        static OPCODE xtopADDSPimm7();

        static OPCODE xtopPUSH(), xtopPUSHlr();
        static OPCODE xtopPOP(),  xtopPOPpc();

        static OPCODE xtopSWI();

        static OPCODE xtopLDMIAr0(), xtopLDMIAr1();
        static OPCODE xtopLDMIAr2(), xtopLDMIAr3();
        static OPCODE xtopLDMIAr4(), xtopLDMIAr5();
        static OPCODE xtopLDMIAr6(), xtopLDMIAr7();
        static OPCODE xtopSTMIAr0(), xtopSTMIAr1();
        static OPCODE xtopSTMIAr2(), xtopSTMIAr3();
        static OPCODE xtopSTMIAr4(), xtopSTMIAr5();
        static OPCODE xtopSTMIAr6(), xtopSTMIAr7();

        static OPCODE xtopBEQ(), xtopBNE(), xtopBCS(), xtopBCC();
        static OPCODE xtopBMI(), xtopBPL(), xtopBVS(), xtopBVC();
        static OPCODE xtopBHI(), xtopBLS(), xtopBGE(), xtopBLT();
        static OPCODE xtopBGT(), xtopBLE();

        static OPCODE xtopB(), xtopBLsetup(), xtopBLoff();
#endif

};

// Allow opcode implementation files common to both ARMs
#define OPC ARM7TDMI::OPCODE ARM7TDMI::

#define ERR_CPU_DYNALLOC 0x0111

#endif//__ARM7TDMI_H_

/*** EOF: arm7tdmi.h *****************************************************/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -