Selbi's little questions

Discussion in 'Discussion and Q&A Archive' started by Selbi, Mar 25, 2009.

Thread Status:
Not open for further replies.
  1. TmEE

    TmEE Mélodie is powerful ! Member

    Joined:
    Feb 28, 2009
    Messages:
    111
    Location:
    Estonia, Rapla
    BPL - branch if the Negative Flag is 0


    BMI - branch if the Negative Flag is 1


    BHI - branch if the Carry Flag is 1


    EDIT: I need to play more attention to what is going on the thread when I post something :)
     
    Last edited by a moderator: May 25, 2009
  2. Selbi

    Selbi The Euphonic Mess Member

    Joined:
    Jul 20, 2008
    Messages:
    2,416
    Location:
    Northern Germany
    Good to know, thanks. :)


    But:

    What is the Negative flag?
     
  3. nineko

    nineko I am the Holy Cat Member

    Joined:
    Mar 24, 2008
    Messages:
    1,890
    Location:
    italy
    If you read the page I linked you to, you'll see that each instruction can set up to 5 flags: X, Negative, Zero, oVerflow, Carry (not sure on some of the names). Those flags are set according to the kind of operation involved. For example, the Z flag is triggered when you compare two equal numbers.


    I don't know how the Negative flag works though.
     
Thread Status:
Not open for further replies.