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

Subversion Repositories zipcpu

[/] [zipcpu/] [trunk/] [sw/] [zasm/] [zopcodes.h] - Diff between revs 2 and 13

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

Rev 2 Rev 13
Line 46... Line 46...
#define URGFIELD(MN)    (0x0100400 +(MN&0x0ff))
#define URGFIELD(MN)    (0x0100400 +(MN&0x0ff))
#define SRGFIELD(MN)    (0x0200400 +(MN&0x0ff))
#define SRGFIELD(MN)    (0x0200400 +(MN&0x0ff))
#define IMMFIELD(LN,MN) (0x40000000 + (((LN&0x0ff)<<8)+(MN&0x0ff))) // Sgn extnd
#define IMMFIELD(LN,MN) (0x40000000 + (((LN&0x0ff)<<8)+(MN&0x0ff))) // Sgn extnd
// #define      REGVAL(V)       ((V & 0x0f)+0x020)
// #define      REGVAL(V)       ((V & 0x0f)+0x020)
 
 
typedef unsigned int    ZIPI;
typedef unsigned int    ZIPI;   // A Zip CPU instruction
 
 
typedef struct {
typedef struct {
        char    s_opstr[8];
        char    s_opstr[8];
        ZIPI    s_mask, s_val;
        ZIPI    s_mask, s_val;
        int     s_result, s_ra, s_rb, s_i, s_cf;
        int     s_result, s_ra, s_rb, s_i, s_cf;

powered by: WebSVN 2.1.0

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