diff options
Diffstat (limited to 'src/devices/cpu/alpha/common.h')
-rw-r--r-- | src/devices/cpu/alpha/common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/alpha/common.h b/src/devices/cpu/alpha/common.h index 0c9668f304a..61daeccdcbc 100644 --- a/src/devices/cpu/alpha/common.h +++ b/src/devices/cpu/alpha/common.h @@ -13,7 +13,7 @@ #define Im(x) (u64(u8(x >> 13))) // literal immediate field #define Disp_M(x) (s64(s16(x))) // memory instruction 16-bit signed offset -#define Disp_P(x) (s64(s16(x << 4)) >> 4) // hardware load/store 12-bit signed offset -#define Disp_B(x) (s64(s32(x << 11)) >> 9) // branch instruction offset +#define Disp_P(x) (s64(util::sext(x, 12))) // hardware load/store 12-bit signed offset +#define Disp_B(x) (s64(util::sext(x << 2, 23))) // branch instruction offset #endif // MAME_CPU_ALPHA_COMMON_H |