News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Displaying PSW content

Started by nerdek, January 19, 2013, 10:53:44 PM

Previous topic - Next topic

nerdek

Hello, I'm beginner with ASM so don't be harsh. I'm wondering how to display the content of PSW on standard output. I mean every single bit i.e :
CF 0
PF 1
AF 0
and so on. Actually I need to display flag registers but my first thought was to display psw because it has all I need. I would be very gratefull for every tip (ofcourse scratch of code would be quite better :) )

Magnum

Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

qWord

In the attachment a short example using the MASM32 SDK. For the flags, read up in AMD's or Intel's manuals.
MREAL macros - when you need floating point arithmetic while assembling!

Gunther

Hi nerdek,

first things first: Welcome to the forum. Please check qWord's example and check the manuals. Flags are often used.

Gunther
You have to know the facts before you can distort them.

nerdek

Thank you very much ! Your example helped me a lot :) (PSW - program status word I thought it's common but I might be wrong)

dedndave

we usually call it EFLAGS   :P

Magnum

Thanks nerdek.

Grab a couch and get comfortable here.

Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org