* m32c.cpu (f-dsp-8-s24): Mask high byte after shifting it.
* m32c-ibld.c: Regenerate.
This commit is contained in:
parent
81a0b7e2ae
commit
21375995bd
4 changed files with 12 additions and 4 deletions
|
@ -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)))
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue