You don't want to screw around with eflags like that -- you are misusing that flag. What you want to do is declare a variable to hold all the bit-mapped flags then you can set and clear the individual bits to your heart's content.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
Lets assume all you need are 8 or fewer flags which can be store in one byte of data
flags db 0 ; allocate memory for the 8 flags
; set the 2d bit
mov al,flags
or al,00000010h
mov flags,al
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
It doesn't. And you can't.
>>create an application in real mode that uses the flags to store the results of calculations and other stuff.
As I said before, that is a mis-use of the flags. Even if you could change them they won't stay that way very long because the flags are changed when certain operations are performed. The only flag I can think of that you can change yourself is the direction flag using cli instruction.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343