Changeset 173


Ignore:
Timestamp:
Jan 3, 2004, 11:36:40 AM (21 years ago)
Author:
Gary Byers
Message:

According to my calculations, you need 5 bits to express a 5-bit register
field (RT, RA, RB, etc.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/lisp-kernel/lisp-exceptions.h

    r137 r173  
    228228#define D_field(instr)   ((instr) & 0xffff)
    229229
    230 #define RT(val) ((val & 0xf) << 21)
     230#define RT(val) ((val & 0x1f) << 21)
    231231#define RS(val) (RT(val))
    232 #define RA(val) ((val & 0xf) << 16)
    233 #define RB(val) ((val & 0xf) << 11)
     232#define RA(val) ((val & 0x1f) << 16)
     233#define RB(val) ((val & 0x1f) << 11)
    234234#define D(val) (val & 0xffff)
    235235
Note: See TracChangeset for help on using the changeset viewer.