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, 25.11.2008, 22:11

> Not that I needed to know this certain behaviour of shift instructions
> yet, but knowing such details often helps.

Indeed. Knowing precisely the processor's state helps to make code simpler. In this particular case I avoid treating the cases CL = 0 and CL > 0 separately and save a conditional jump.

 

Complete thread:

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