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

Subversion Repositories zipcpu

[/] [zipcpu/] [trunk/] [sw/] [zasm/] [zparser.h] - Diff between revs 100 and 126

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

Rev 100 Rev 126
Line 77... Line 77...
                ZIPO_FPADD=0x18, ZIPO_FPSUB,                    // 5'h1100x
                ZIPO_FPADD=0x18, ZIPO_FPSUB,                    // 5'h1100x
                ZIPO_FPMUL, ZIPO_FPDIV,                         // 5'h1101x
                ZIPO_FPMUL, ZIPO_FPDIV,                         // 5'h1101x
                ZIPO_FPCVT, ZIPO_FPINT,                         // 5'h1110x
                ZIPO_FPCVT, ZIPO_FPINT,                         // 5'h1110x
        } ZIPOP;
        } ZIPOP;
 
 
 
#define ZIPO_MPY        ZIPO_LDIHI
 
#define ZIPO_MPYSHI     ZIPO_MPYS
 
#define ZIPO_MPYUHI     ZIPO_MPYU
 
 
 
        ZIPIMM  brev(ZIPIMM) const;
 
 
        ZIPI    op_cmp(ZIPCOND cnd, ZIPIMM imm, ZIPREG b, ZIPREG a) const;
        ZIPI    op_cmp(ZIPCOND cnd, ZIPIMM imm, ZIPREG b, ZIPREG a) const;
        ZIPI    op_cmp(ZIPCOND cnd, ZIPIMM imm, ZIPREG a) const;
        ZIPI    op_cmp(ZIPCOND cnd, ZIPIMM imm, ZIPREG a) const;
        ZIPI    op_cmp(ZIPIMM imm, ZIPREG b, ZIPREG a) const
        ZIPI    op_cmp(ZIPIMM imm, ZIPREG b, ZIPREG a) const
                { return op_cmp(ZIPC_ALWAYS, imm, b, a); }
                { return op_cmp(ZIPC_ALWAYS, imm, b, a); }
Line 108... Line 113...
 
 
        ZIPI    op_noop(void) const;
        ZIPI    op_noop(void) const;
        ZIPI    op_break(void) const;
        ZIPI    op_break(void) const;
        ZIPI    op_lock(void) const;
        ZIPI    op_lock(void) const;
 
 
 
        ZIPI    op_mpy(ZIPCOND cnd, ZIPIMM imm, ZIPREG a) const;
 
        ZIPI    op_mpy(ZIPCOND cnd, ZIPIMM imm, ZIPREG b, ZIPREG a) const;
 
//
        ZIPI    op_ldihi(ZIPCOND cnd, ZIPIMM imm, ZIPREG a) const;
        ZIPI    op_ldihi(ZIPCOND cnd, ZIPIMM imm, ZIPREG a) const;
        ZIPI    op_ldilo(ZIPCOND cnd, ZIPIMM imm, ZIPREG a) const;
 
        ZIPI    op_ldihi(ZIPIMM imm, ZIPREG a) const
        ZIPI    op_ldihi(ZIPIMM imm, ZIPREG a) const
                { return op_ldihi(ZIPC_ALWAYS, imm, a); }
                { return op_ldihi(ZIPC_ALWAYS, imm, a); }
 
        ZIPI    op_ldilo(ZIPCOND cnd, ZIPIMM imm, ZIPREG a) const;
        ZIPI    op_ldilo(ZIPIMM imm, ZIPREG a) const
        ZIPI    op_ldilo(ZIPIMM imm, ZIPREG a) const
                { return op_ldilo(ZIPC_ALWAYS, imm, a); }
                { return op_ldilo(ZIPC_ALWAYS, imm, a); }
 
 
        ZIPI    op_mpyu(ZIPCOND cnd, ZIPIMM imm, ZIPREG b, ZIPREG a) const;
        ZIPI    op_mpyu(ZIPCOND cnd, ZIPIMM imm, ZIPREG b, ZIPREG a) const;
        ZIPI    op_mpyu(ZIPCOND cnd, ZIPIMM imm, ZIPREG a) const;
        ZIPI    op_mpyu(ZIPCOND cnd, ZIPIMM imm, ZIPREG a) const;
        ZIPI    op_mpyu(ZIPIMM imm, ZIPREG b, ZIPREG a) const
        ZIPI    op_mpyu(ZIPIMM imm, ZIPREG b, ZIPREG a) const
                { return op_mpyu(ZIPC_ALWAYS, imm, b, a); }
                { return op_mpyu(ZIPC_ALWAYS, imm, b, a); }
        ZIPI    op_mpyu(ZIPIMM imm, ZIPREG a) const
        ZIPI    op_mpyu(ZIPIMM imm, ZIPREG a) const
                { return op_mpyu(ZIPC_ALWAYS, imm, a); }
                { return op_mpyu(ZIPC_ALWAYS, imm, a); }
 
//
 
        ZIPI    op_mpyuhi(ZIPCOND cnd, ZIPIMM imm, ZIPREG b, ZIPREG a) const
 
                { return op_mpyu(cnd,imm,b,a); }
 
        ZIPI    op_mpyuhi(ZIPCOND cnd, ZIPIMM imm, ZIPREG a) const
 
                { return op_mpyu(cnd,imm,a); }
 
 
        ZIPI    op_mpys(ZIPCOND cnd, ZIPIMM imm, ZIPREG b, ZIPREG a) const;
        ZIPI    op_mpys(ZIPCOND cnd, ZIPIMM imm, ZIPREG b, ZIPREG a) const;
        ZIPI    op_mpys(ZIPCOND cnd, ZIPIMM imm, ZIPREG a) const;
        ZIPI    op_mpys(ZIPCOND cnd, ZIPIMM imm, ZIPREG a) const;
        ZIPI    op_mpys(ZIPIMM imm, ZIPREG b, ZIPREG a) const
        ZIPI    op_mpys(ZIPIMM imm, ZIPREG b, ZIPREG a) const
                { return op_mpys(ZIPC_ALWAYS, imm, b, a); }
                { return op_mpys(ZIPC_ALWAYS, imm, b, a); }
        ZIPI    op_mpys(ZIPIMM imm, ZIPREG a) const
        ZIPI    op_mpys(ZIPIMM imm, ZIPREG a) const
                { return op_mpys(ZIPC_ALWAYS, imm, a); }
                { return op_mpys(ZIPC_ALWAYS, imm, a); }
 
//
 
        ZIPI    op_mpyshi(ZIPCOND cnd, ZIPIMM imm, ZIPREG b, ZIPREG a) const
 
                { return op_mpys(cnd,imm,b,a);  }
 
        ZIPI    op_mpyshi(ZIPCOND cnd, ZIPIMM imm, ZIPREG a) const
 
                { return op_mpys(cnd,imm,a);    }
 
 
        ZIPI    op_rol(ZIPCOND cnd, ZIPIMM imm, ZIPREG b, ZIPREG a) const;
        ZIPI    op_rol(ZIPCOND cnd, ZIPIMM imm, ZIPREG b, ZIPREG a) const;
        ZIPI    op_rol(ZIPCOND cnd, ZIPIMM imm, ZIPREG a) const;
        ZIPI    op_rol(ZIPCOND cnd, ZIPIMM imm, ZIPREG a) const;
        ZIPI    op_rol(ZIPIMM imm, ZIPREG b, ZIPREG a) const
        ZIPI    op_rol(ZIPIMM imm, ZIPREG b, ZIPREG a) const
                { return op_rol(ZIPC_ALWAYS, imm, b, a); }
                { return op_rol(ZIPC_ALWAYS, imm, b, a); }

powered by: WebSVN 2.1.0

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