ASSEMBLY LANGUAGE PROGRAMMING
ARCHITECTURE OF 8085
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Equal to
|
|
Not Equal to
|
|
Greater Than
|
|
Less Than
|
Detailed explanation-1: -beq (branch if equal) branches when the values in the two source registers are equal. bne (branch if not equal) branches when they are unequal.
Detailed explanation-2: -BEQ (short for “Branch if EQual") is the mnemonic for a machine language instruction which branches, or “jumps", to the address specified if, and only if the zero flag is set.
Detailed explanation-3: -bne stands for Branch if Not Equal, so the branch is taken if the values in the two registers are not equal; otherwise, execution continues to the following instruction (sometimes called the fallthrough path). There is also a Branch if EQual instruction beq.
Detailed explanation-4: -BNE means Branch on Not Equal. It executes the instruction that follows it without delays (which is why I added a nop after your code), and branch to the specified address if the two registers submitted as parameters are not equal.