Or-logical instruction-microprocessor, Assembly Language

OR: Logical OR: The OR instruction carries out the OR operation in the similar way as described in case of the AND operation. The restriction on source and destination operands are also the similar as in case of AND operation. The instance are as follows:

Example :


1.     OR  AX,         0098H

2.     OR  R AX,      BX

3.     OR  R AX,      [5000H]

4.     OR  [5000H], 0008H

The contents of AX are considering 3FOFH, then the first example instruction will be carried out as given below.

1605_OR1.jpg

So the result 3F9FH will be stored in the AX register.

 

Posted Date: 10/12/2012 2:27:37 AM | Location : United States







Related Discussions:- Or-logical instruction-microprocessor, Assignment Help, Ask Question on Or-logical instruction-microprocessor, Get Answer, Expert's Help, Or-logical instruction-microprocessor Discussions

Write discussion on Or-logical instruction-microprocessor
Your posts are moderated
Related Questions
write a Mips program that read a string AND PRINT IT ON THE SCREEN

Overview of Intel Pro-Pentium : The 2 chief players in the PC CPU market are Motorola and Intel.  Intel has enjoyed incredible success with its processors since the early 1980

When Seen in the choir, Terry was the picture of an angelic devil. I have to underline the predicate twice

1- Write an assembly program that:   a- Defines an array of 10 (word type)elements;   b- Finds out the number of negative elements   c- Calculate the summation of the posi

what will be the value of EAX after following instructions execute? mov bx, 0FFFFh and bx, 6Bh

What is the hex for + and - under with a sum involved

check the al-register for palindromic number

AAA: ASCII Adjust after Addition operation the AAA instruction is executed after an ADD instruction that adds 2 ASCII coded operands to give a byte of outcome in the AL. The AAA i

You have been hired by the Elbonian government to write an Assembly program to help its workforce determine how much their tax will be. The tax laws in Elbonian are very simple. Th

Code for Reading Flow & Generating LED Output The code starts with the scanning of the PORT 3, for reading the flow status to check for various flow conditions and compare to