View Single Post
Old 06 July 2023, 07:40   #246
meynaf
son of 68k
 
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,351
Quote:
Originally Posted by mschulz View Post
This, and also ROXL/ROXR rotations, where CPU deals with 33-bit number.
Didn't think about it, but indeed, there maxing out at 31 would have missed something.
Actually, it is of course 9, 17 or 33 bits depending on the size.
One could think it is logical to cut at 6-bit for .l, 5-bit for .w, 4-bit for .b, but it's not what the cpu does - it's always 6 regardless of the operand size.
Note that PowerPC uses 6 bits as well, but not x86 (didn't check though, this is what i've read).
meynaf is offline  
 
Page generated in 0.04382 seconds with 11 queries