OpenCores
URL https://opencores.org/ocsvn/zipcpu/zipcpu/trunk

Subversion Repositories zipcpu

[/] [zipcpu/] [trunk/] [sw/] [zasm/] [asmdata.cpp] - Diff between revs 34 and 36

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 34 Rev 36
Line 376... Line 376...
                case OP_NOT:
                case OP_NOT:
                        in = zp.op_not(m_cond, m_opb);
                        in = zp.op_not(m_cond, m_opb);
                        break;
                        break;
                case OP_NEG:
                case OP_NEG:
                        if (m_cond != zp.ZIPC_ALWAYS) {
                        if (m_cond != zp.ZIPC_ALWAYS) {
                                yyerror("Illegal operation: Conditional negate.  Negates cannot handle conditions");
                                LLINE *lln = new LLINE;
 
                                lln->addline(new ILINE(zp.op_mov(m_cond,-1,m_opb,m_opb)));
 
                                lln->addline(new ILINE(zp.op_not(m_cond,m_opb)));
 
                                return lln;
                        } else {
                        } else {
                                LLINE *lln = new LLINE;
                                LLINE *lln = new LLINE;
                                lln->addline(new ILINE(zp.op_not(m_opb)));
                                lln->addline(new ILINE(zp.op_not(m_opb)));
                                lln->addline(new ILINE(zp.op_add(1,m_opb)));
                                lln->addline(new ILINE(zp.op_add(1,m_opb)));
                                return lln;
                                return lln;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.