-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The ISA sign extends disponents values of 8, 15 and 24 bits. For address disponents it also shifts the results by 2 for alignment. The ISA has two writing styles for this though: sign_ext(dispXX * 2) and sign_ext(dispXX) * 2. Assuming that sign_ext() always works on the MSB of the value they are eqivalent. Because: sign_ext(disp8 * 2) = sign_ext(disp8 * 2 = disp9) = sign_ext(disp9) = sign_ext(disp8) * 2. This let to confusion before and for the sign_ext(dispXX * 2) case, and the wrong bit was checked for sign extension (e.g bit 8 for an effective disp9 value).
- Loading branch information
Showing
3 changed files
with
83 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters