X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=amode.h;h=3da232136c56458bff4842d85b10f8e866e33640;hp=818c7113bacef34f3232737bd74d1f5459569593;hb=582df8950c285e1746d0c4a9e3ead6545c962dc8;hpb=da0013df9438aa14e478544307e925462d398cb3 diff --git a/amode.h b/amode.h index 818c711..3da2321 100644 --- a/amode.h +++ b/amode.h @@ -37,7 +37,7 @@ #define AM_CCR 0110 #define AM_NONE 0111 // Nothing #define CACHES 0120 // Instruction/Data/Both Caches (IC/DC/BC) -#define CREG 0121 // Control registers (see CREGlut in mach.h) +#define CREG 0121 // Control registers (see CREGlut in mach.c) #define FREG 0122 // FPU registers (fp0-fp7) #define FPSCR 0123 // FPU system control registers (fpiar, fpsr, fpcr) @@ -68,6 +68,7 @@ #define M_CREG 0x00800000L // Control registers #define M_FREG 0x01000000L // FPn #define M_FPSCR 0x02000000L // fpiar, fpsr, fpcr +#define M_CACHE40 0x04000000L // 68040 cache registers (IC40,DC40,BC40) // Addr mode categories #define C_ALL 0x00000FFFL @@ -79,6 +80,9 @@ #define C_CTRL030 0x0003F7E4L #define C_DATA030 0x0003FFFDL #define C_MOVES (M_AIND | M_APOSTINC | M_APREDEC | M_ADISP | M_AINDEXED | M_ABSW | M_ABSL | M_ABASE | M_MEMPRE | M_MEMPOST) +#define C_BF1 (M_DREG | M_AIND | M_AINDEXED | M_ADISP | M_ABSW | M_ABSL | M_ABASE | M_MEMPOST | M_MEMPRE) +#define C_BF2 (C_BF1 | M_PCDISP | M_PCINDEXED | M_PCBASE | M_PCMPOST | M_PCMPRE) +#define C_PMOVE (M_AIND | M_ADISP | M_AINDEXED | M_ABSW | M_ABSL | M_ABASE | M_MEMPRE | M_MEMPOST) #define C_ALTDATA (C_DATA & C_ALT) #define C_ALTMEM (C_MEM & C_ALT) @@ -133,15 +137,15 @@ extern int nmodes; extern int am0, am1; extern int a0reg, a1reg, a2reg; extern TOKEN a0expr[], a1expr[]; -extern VALUE a0exval, a1exval; +extern uint64_t a0exval, a1exval; extern WORD a0exattr, a1exattr; extern int a0ixreg, a1ixreg; extern int a0ixsiz, a1ixsiz; extern TOKEN a0oexpr[], a1oexpr[]; -extern VALUE a0oexval, a1oexval; +extern uint64_t a0oexval, a1oexval; extern WORD a0oexattr, a1oexattr; extern SYM * a0esym, * a1esym; -extern VALUE a0bexval, a1bexval; +extern uint64_t a0bexval, a1bexval; extern WORD a0bexattr, a1bexattr; extern WORD a0bsize, a1bsize; extern TOKEN a0bexpr[], a1bexpr[]; @@ -149,7 +153,9 @@ extern WORD a0extension, a1extension; extern WORD mulmode; extern int bfparam1; extern int bfparam2; -extern VALUE bf0exval; +extern int bfval1; +extern int bfval2; +extern uint64_t bf0exval; // mnattr: #define CGSPECIAL 0x8000 // Special (don't parse addr modes)