mht Wroclaw, Poland, 22.11.2008, 15:15 |
x86 flags after bit shifts with count = 0 (Developers) |
I needed to know what happens to the x86 flags after executing bit shift instructions (SHR, SHL, etc.) when the shift count given in CL is zero. Unfortunately, virtually all my books and electronic documentation only describe the cases CL = 1 and CL > 1. But I found that: |
Rugxulo Usono, 25.11.2008, 06:47 @ mht |
x86 flags after bit shifts with count = 0 |
> I needed to know what happens to the x86 flags after executing bit shift |
ecm Düsseldorf, Germany, 25.11.2008, 13:31 @ Rugxulo |
x86 flags after bit shifts with count = 0 |
> Unless you're just really really curious or trying to write an x86 --- |
mht Wroclaw, Poland, 25.11.2008, 22:11 @ ecm |
x86 flags after bit shifts with count = 0 |
> Not that I needed to know this certain behaviour of shift instructions |
rr Berlin, Germany, 25.11.2008, 21:21 @ Rugxulo |
x86 flags after bit shifts with count = 0 |
> Or find someone else online who has one --- |
mht Wroclaw, Poland, 25.11.2008, 21:59 @ rr |
x86 flags after bit shifts with count = 0 |
Such a test would be nice, but please do not hurry. If possible, I prefer to find an evidence in official documentation -- then it should be guaranteed that all clones behave identically. |
rr Berlin, Germany, 25.11.2008, 22:10 @ mht |
x86 flags after bit shifts with count = 0 |
> Such a test would be nice, but please do not hurry. --- |
mht Wroclaw, Poland, 28.11.2008, 07:17 @ rr |
x86 flags after bit shifts with count = 0 |
> If you could write a small test tool in the meantime ... |
mht Wroclaw, Poland, 05.12.2008, 08:55 @ mht |
x86 flags after bit shifts with count = 0 |
Original Intel manual does not say explicitly that flags are left unchanged. It explains that SHR ARG, COUNT (other shift instructions are described similarly) is performed as follows: |
RayeR CZ, 25.11.2008, 22:22 @ rr |
x86 flags after bit shifts with count = 0 |
> As you probably remember I have several ATARI Portfolios (Intel 80C88) at --- |
rr Berlin, Germany, 26.11.2008, 20:57 @ RayeR |
x86 flags after bit shifts with count = 0 |
> Are you ATARI Portfolio user? --- |
Rugxulo Usono, 28.11.2008, 00:09 @ rr |
x86 flags after bit shifts with count = 0 |
> > Are you ATARI Portfolio user? --- |
marcov 28.11.2008, 15:41 @ Rugxulo |
x86 flags after bit shifts with count = 0 |
> It's too low in RAM and storage as well as having battery issues. Oh, and |
rr Berlin, Germany, 30.11.2008, 18:33 @ Rugxulo |
x86 flags after bit shifts with count = 0 |
> It's too low in RAM and storage as well as having battery issues. Oh, and --- |
Rugxulo Usono, 30.11.2008, 20:53 @ rr |
x86 flags after bit shifts with count = 0 |
> > It's too low in RAM and storage as well as having battery issues. Oh, --- |
Rugxulo Usono, 30.11.2008, 21:06 @ Rugxulo |
portable handhelds' battery life |
> It took the Game Boy 13 years to get a backlight while Game Gear and Lynx |
rr Berlin, Germany, 30.11.2008, 22:38 @ Rugxulo |
x86 flags after bit shifts with count = 0 |
> Being so limited in RAM really hampers what you can run on it. I could --- |
RayeR CZ, 30.11.2008, 22:41 @ rr |
x86 flags after bit shifts with count = 0 |
> I also have the HP 200LX. --- |