From 21375995bd28258d997c67b0736426e5aabc581b Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Sat, 3 Jul 2010 04:09:56 +0000 Subject: * m32c.cpu (f-dsp-8-s24): Mask high byte after shifting it. * m32c-ibld.c: Regenerate. --- cpu/m32c.cpu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpu/m32c.cpu') diff --git a/cpu/m32c.cpu b/cpu/m32c.cpu index 28d6ea5..bcc3616 100644 --- a/cpu/m32c.cpu +++ b/cpu/m32c.cpu @@ -572,10 +572,10 @@ ) (df f-dsp-8-s24 "24 bit signed" (all-isas) 8 24 INT ((value pc) (or SI - (or (srl value 16) (and value #xff00)) + (or (and (srl value 16) #xff) (and value #xff00)) (sll (ext INT (trunc QI (and value #xff))) 16))) ((value pc) (or SI - (or (srl value 16) (and value #xff00)) + (or (and (srl value 16) #xff) (and value #xff00)) (sll (ext INT (trunc QI (and value #xff))) 16))) ) -- cgit v1.1