correctly reading flags register

i'm trying to read bits 12-14 in the flags reg for a routine to detect CPU
types. i was trying with PUSHF and then POP DX but according to my debugger, the value changed when it was moved into DX, and my 16-bit debugger does not display any higher bits such as I/O Privilege level bits

have any suggestions?


Comments

  • : i'm trying to read bits 12-14 in the flags reg for a routine to detect CPU
    : types. i was trying with PUSHF and then POP DX but according to my debugger, the value changed when it was moved into DX, and my 16-bit debugger does not display any higher bits such as I/O Privilege level bits
    :
    : have any suggestions?
    :
    :
    :

    suggestion:
    With PUSHF u push the flag register into the stack.
    what if you get it from the stack by using the stack SS to move it into DX
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion