Quantcast
Channel: x86 Assembly - Programmers Heaven
Viewing all articles
Browse latest Browse all 152

STATUS FLAG. Need help fast:)

$
0
0
Hi all. I want to check the Status Flag after a command but it gives wrong values! For example:
After adding 126 with 127 Status Flag would be FFBA, BUT...
when i run this code, it gives 7112:

mov ax, 126
mov bx, 127
PUSHF
MOV dx, 0FFFFh
PUSH dx
POPF
add ax, bx
PUSHF
POP ax
POPF

Viewing all articles
Browse latest Browse all 152

Latest Images

Trending Articles





Latest Images