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
Perform an extensive web search of popular microcontroller manufacturers (some of the major players) to select a suitable device for the system to control the lighting of a typical

Write a MC68H12 assembly language program to find the largest number in an array of ten 8-bit numbers. The array is stored in memory locations starting at address $1100. Use branch

Write a program on the assembly language to do the following: 1- Allocate array with 32bit 100 element 2- Prompt the user to enter the maximum or the upper bound of the rando

Using the AddSub program from Ch3 under c:\Masm615\examples as a reference, write a program that subtracts three 16-bit integers using only registers. Insert a call DumpRegs statem

#write a program 8086 to find the largest number

A good starting point for your program is the toupper.asm program shown in class. It already queries the user for input and sets up a loop that looks at each character of the input

Port Mapped I/O or I/O Mapped I/O I/O devices are mapped into a separate address space. This is generally accomplished by having a different set of signal lines to denote a mem

1. Start your program at address $8500. To do this you need to inform the assembler, through the EQU and ORG assembler directives, that you want your program to start at $8500. Thi

8254 Programmable Timer A diagram of Intel's 8254 interval event/timer counter is given in Figure. The 8254 consists of 3 identical counting circuits, per of which has GATE and

#Write a function to calculate the following arithmetic operation and return the result. A = 2 + (3x)3 + y/2n (x, y and n are arguments of the function where x is an integer in the