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

Subversion Repositories zipcpu

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

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

Rev 89 Rev 100
Line 229... Line 229...
                { return op_lsr(ZIPC_ALWAYS, imm, b, a); }
                { return op_lsr(ZIPC_ALWAYS, imm, b, a); }
        ZIPI    op_lsr(ZIPIMM imm, ZIPREG a) const
        ZIPI    op_lsr(ZIPIMM imm, ZIPREG a) const
                { return op_lsr(ZIPC_ALWAYS, imm, a); }
                { return op_lsr(ZIPC_ALWAYS, imm, a); }
 
 
        ZIPI    op_bra(ZIPCOND cnd, ZIPIMM imm) const
        ZIPI    op_bra(ZIPCOND cnd, ZIPIMM imm) const
                { return op_mov(cnd, imm, ZIP_PC, ZIP_PC); }
                { return op_add(cnd, imm, ZIP_PC); }
        ZIPI    op_bra(ZIPIMM imm) const
        ZIPI    op_bra(ZIPIMM imm) const
                { return op_add(ZIPC_ALWAYS, imm, ZIP_PC); }
                { return op_add(ZIPC_ALWAYS, imm, ZIP_PC); }
        ZIPI    op_brz(ZIPIMM imm) const
        ZIPI    op_brz(ZIPIMM imm) const
                { return op_mov(ZIPC_Z, imm, ZIP_PC, ZIP_PC); }
                { return op_add(ZIPC_Z, imm, ZIP_PC); }
        ZIPI    op_bnz(ZIPIMM imm) const
        ZIPI    op_bnz(ZIPIMM imm) const
                { return op_mov(ZIPC_NZ, imm, ZIP_PC, ZIP_PC); }
                { return op_add(ZIPC_NZ, imm, ZIP_PC); }
        ZIPI    op_bge(ZIPIMM imm) const
        ZIPI    op_bge(ZIPIMM imm) const
                { return op_mov(ZIPC_GE, imm, ZIP_PC, ZIP_PC); }
                { return op_add(ZIPC_GE, imm, ZIP_PC); }
        ZIPI    op_bgt(ZIPIMM imm) const
        ZIPI    op_bgt(ZIPIMM imm) const
                { return op_mov(ZIPC_GT, imm, ZIP_PC, ZIP_PC); }
                { return op_add(ZIPC_GT, imm, ZIP_PC); }
        ZIPI    op_blt(ZIPIMM imm) const
        ZIPI    op_blt(ZIPIMM imm) const
                { return op_mov(ZIPC_LT, imm, ZIP_PC, ZIP_PC); }
                { return op_add(ZIPC_LT, imm, ZIP_PC); }
        ZIPI    op_brc(ZIPIMM imm) const
        ZIPI    op_brc(ZIPIMM imm) const
                { return op_mov(ZIPC_C, imm, ZIP_PC, ZIP_PC); }
                { return op_add(ZIPC_C, imm, ZIP_PC); }
        ZIPI    op_brv(ZIPIMM imm) const
        ZIPI    op_brv(ZIPIMM imm) const
                { return op_mov(ZIPC_V, imm, ZIP_PC, ZIP_PC); }
                { return op_add(ZIPC_V, imm, ZIP_PC); }
        ZIPI    op_bv(ZIPIMM imm) const
        ZIPI    op_bv(ZIPIMM imm) const
                { return op_brv(imm); }
                { return op_brv(imm); }
 
 
        ZIPI    op_clrf(ZIPCOND cnd, ZIPREG a) const
        ZIPI    op_clrf(ZIPCOND cnd, ZIPREG a) const
                { return op_xor(cnd, 0, a, a); }
                { return op_xor(cnd, 0, a, a); }
Line 264... Line 264...
        ZIPI    op_halt(void) const {
        ZIPI    op_halt(void) const {
                return op_or(ZIPC_ALWAYS, 0x10, ZIP_CC); }
                return op_or(ZIPC_ALWAYS, 0x10, ZIP_CC); }
        ZIPI    op_wait(void) const {
        ZIPI    op_wait(void) const {
                return op_or(ZIPC_ALWAYS, 0x10, ZIP_CC); }
                return op_or(ZIPC_ALWAYS, 0x10, ZIP_CC); }
        ZIPI    op_busy(ZIPCOND c) const {
        ZIPI    op_busy(ZIPCOND c) const {
                return op_mov(c, -1, ZIP_PC, ZIP_PC); }
                return op_add(c, -1, ZIP_PC); }
        ZIPI    op_busy(void) const {
        ZIPI    op_busy(void) const {
                return op_mov(ZIPC_ALWAYS, -1, ZIP_PC, ZIP_PC); }
                return op_add(ZIPC_ALWAYS, -1, ZIP_PC); }
 
 
        ZIPI    op_rtu(void) const {
        ZIPI    op_rtu(void) const {
                return op_or(ZIPC_ALWAYS, 0x20, ZIP_CC); }
                return op_or(ZIPC_ALWAYS, 0x20, ZIP_CC); }
        ZIPI    op_rtu(ZIPCOND cnd) const {
        ZIPI    op_rtu(ZIPCOND cnd) const {
                return op_or(cnd, 0x20, ZIP_CC); }
                return op_or(cnd, 0x20, ZIP_CC); }
 
 
        ZIPI    op_jmp(ZIPCOND c, ZIPIMM imm, ZIPREG r) const
        ZIPI    op_jmp(ZIPCOND c, ZIPIMM imm, ZIPREG r) const
                { return op_mov(ZIPC_ALWAYS, imm, r, ZIP_PC); }
                { return op_mov(ZIPC_ALWAYS, imm, r, ZIP_PC); }
 
 
 
        ZIPI    op_ljmp(void) const { return 0x7c87c000; }
 
 
        ZIPI    op_ljmp(ZIPCOND c, ZIPIMM imm) const {
        ZIPI    op_ljmp(ZIPCOND c, ZIPIMM imm) const {
                return op_add(ZIPC_ALWAYS, imm, ZIP_PC); }
                return op_add(ZIPC_ALWAYS, imm, ZIP_PC); }
 
 
        ZIPI    op_not(ZIPCOND c, ZIPREG r) const
        ZIPI    op_not(ZIPCOND c, ZIPREG r) const
                { return op_xor(c, -1, r); }
                { return op_xor(c, -1, r); }

powered by: WebSVN 2.1.0

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