Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Binary Op"); #98

Open
github-actions bot opened this issue Jul 20, 2020 · 0 comments
Open

Implement Binary Op"); #98

github-actions bot opened this issue Jul 20, 2020 · 0 comments
Labels

Comments

@github-actions
Copy link

Implement Binary Op");

throw new NotImplementedException("TODO: Implement Binary Op");

            // 命令を実行, PCは個別に進める必要があるので注意
            switch (this.Inst) {
                /********************* Binary Op    *********************/
                case Instruction.ADC: // NVZC
                case Instruction.AND: // NZ
                case Instruction.EOR: // NZ
                case Instruction.SBC: // NVZC
                    throw new NotImplementedException("TODO: Implement Binary Op");
                /********************* Shift/Rotate *********************/
                case Instruction.ASL: // NZC
                case Instruction.LSR: // NZC
                case Instruction.ORA: // NZ
                case Instruction.ROL: // NZC
                case Instruction.ROR: // NZC
                    throw new NotImplementedException("TODO: Implement Shift/Rotate");
                /********************* Inc/Dec      *********************/
                case Instruction.DEC: // NZ
                case Instruction.DEX: // NZ
                case Instruction.DEY: // NZ
                case Instruction.INC: // NZ
                case Instruction.INX: // NZ
                case Instruction.INY: // NZ
                    throw new NotImplementedException("TODO: Implement Inc/Dec");
                /********************* Clear        *********************/
                case Instruction.CLC: // C
                case Instruction.CLD: // D
                case Instruction.CLI: // I
                case Instruction.CLV: // V
                case Instruction.REP: // NVMXDIZC
                    throw new NotImplementedException("TODO: Implement Clear");
                /********************* Set          *********************/
                case Instruction.SEC: // C
                case Instruction.SED: // D
                case Instruction.SEI: // I
                case Instruction.SEP: // NVMXDIZC
                    throw new NotImplementedException("TODO: Implement Set");
                /********************* Compare      *********************/
                case Instruction.CMP: // NZC
                case Instruction.CPX: // NZC
                case Instruction.CPY: // NZC
                    throw new NotImplementedException("TODO: Implement Compare");
                /********************* Branch  *********************/
                case Instruction.BCC:
                case Instruction.BCS:
                case Instruction.BEQ:
                case Instruction.BMI:
                case Instruction.BNE:
                case Instruction.BPL:
                case Instruction.BRL:
                case Instruction.BVC:
                case Instruction.BVS:
                    throw new NotImplementedException("TODO: Implement Branch");
                /********************* Jump/Return  *********************/
                case Instruction.JMP:
                case Instruction.JSR:
                case Instruction.RTI:
                case Instruction.RTL:
                case Instruction.RTS:
                    throw new NotImplementedException("TODO: Implement Jump/Return");
                /********************* Push         *********************/
                case Instruction.PEA:
                case Instruction.PEI:
                case Instruction.PER:
                case Instruction.PHA:
                case Instruction.PHB:
                case Instruction.PHK:
                case Instruction.PHP:
                case Instruction.PHX:
                case Instruction.PHY:
                    throw new NotImplementedException("TODO: Implement Push");
                /********************* Pop         *********************/
                case Instruction.PLA: // NZ
                case Instruction.PLB: // NZ
                case Instruction.PLD: // NZ
                case Instruction.PLP: // NVMXDIZC
                case Instruction.PLX: // NZ
                case Instruction.PLY: // NZ
                    throw new NotImplementedException("TODO: Implement Pop");
                /********************* Other        *********************/
                case Instruction.BIT: // NVZ
                case Instruction.BRK: // DI
                case Instruction.MVN:
                case Instruction.MVP:
                case Instruction.NOP:
                case Instruction.STP:
                case Instruction.TRB: // Z
                case Instruction.TSB: // Z
                case Instruction.WAI:
                case Instruction.WDM:
                case Instruction.XBA: // NZ
                case Instruction.XCE: // MXCE
                    throw new NotImplementedException("TODO: Implement Other");
                /********************* Transfer     *********************/
                case Instruction.TAX: // NZ
                case Instruction.TAY: // NZ
                case Instruction.TCD: // NZ
                case Instruction.TCS: // NZ
                case Instruction.TDC: // NZ
                case Instruction.TSC: // NZ
                case Instruction.TSX: // NZ
                case Instruction.TXA: // NZ
                case Instruction.TXS:
                case Instruction.TXY: // NZ
                case Instruction.TYA: // NZ
                case Instruction.TYX: // NZ
                    throw new NotImplementedException("TODO: Implement Transfer");
                /********************* Load         *********************/
                case Instruction.LDA: { // NZ
                    // 取得した値をA regに読み込み
                    var srcData = read();
                    cpu.AConsideringMemoryReg = srcData;

353c623ced6d81464e69dc550d52acf9ec49b355

@github-actions github-actions bot added the todo label Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants