Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

x86 flags after bit shifts with count = 0 (Developers)

posted by mht Homepage, Wroclaw, Poland, 22.11.2008, 15:15

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:

Intel(R) 64 and IA-32 Architectures Software Developer Manual, Vol. 2B: Instruction Set Reference on page 4-364 says that all flags remain unchanged if the shift count (CL mod 32) is zero.

Am186(TM) and Am188(TM) Family Instruction Set Manual says the same on page 252 and others.

Randall Hyde's The art of assembly language in page 29 of Chapter 6 also says the same.

So I guess I can assume this is true for all x86 processors... Anyone with original 8088/8086 manuals?

 

Complete thread:

Back to the forum
Board view  Mix view
22751 Postings in 2119 Threads, 402 registered users (1 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum