Explain the following instructions.

SWAP A

ADD C

MUL AB

CJNE A, add, radd

MOV A, R0

MOVX A, @ A + DPTR.

1 Answer

Answer :

SWAP A

Description: This instruction exchanges bits 0-3 of the Accumulator with bits 4-7 of the

Accumulator. This instruction is identical to executing "RR A" or "RL A four times

Example: MOV A, #59H ; A= 59H

 SWAP A ; A= 95H

ADD C

Description: This instruction is used to perform addition of two eight-bit numbers along with

carry. The result is stored in accumulator which is the default destination.

Example: ADDC A, R0 : Add contents of accumulator, R0 and carry .The result is stored in

accumulator.

MUL AB

Description: the multiplicand and the multiplier must be in A and B registers. After

multiplication if the result is 8 bit it will be in the accumulator and if the result is larger than

8 bit ,lower byte of result will be in accumulator and higher byte will be in register B.

Example :MOV A,#10H

 MOV B,#02 H

 MUL AB

After execution A=20H,B=0 H

CJNE A, add, radd

Description: Compare the contents of the accumulator with the 8 bit data in memory

address mentioned in the instruction and if they are not equal then jump to the relative

address mentioned in the instruction.

Example: CJNE A, 04H, UP: Compare the contents of the accumulator with the contents of

04H memory and if they are not equal then jump to the line of instruction where UP label is

mention

MOV A,R0

Description: this instruction copies the contents of source register R0 into accumulator. The

register R0 remains unaffected.

Example: Before Execution A=43 H, R0=32 H

 After execution A=32 H, R0-32H

MOVX A, @ A + DPTR. (Consider it as MOVC A,@A+DPTR)

Description: Copy the contents of code memory pointed by the sum of Accumulator and

DPTR to the Accumulator

MOVC is a move instruction, which moves data from the code memory space. The

address operand in this example is formed by adding the content of the DPTR register to

the accumulator value. Here the DPTR value is referred to as the base address and the

accumulator value is referred to as the index address.

Related questions

Description : Which of the following instruction perform the move accumulator to external RAM of 16bit address? a) MOV @ DPTR, A b) MOVX @ Ri, A c) MOV A, @ Ri d) MOVX @ DPTR, A

Last Answer : c) MOV A, @ Ri

Description : Which of the following instruction is wrong a) INC DPTR b) MOV @DPTR, A c) MOV A, @A+DPTR d) DEC DPTR

Last Answer : d) DEC DPTR

Description : What instruction performs Compare immediate to indirect and jump if not equal. a) CJNE A, #data, rel b) CJNE Rn, #data, rel c) CJNE @ Ri, #data, rel d) CJNE A, data, rel

Last Answer : b) CJNE Rn, #data, rel

Description : Identify direct addressing instructions from following instructions : (i) MOV RO, R5 (ii) MOV RO, 80 H (iii) MOV RO, #75H (iv) ADD A, 45 H

Last Answer : Instructions ii) and iv) are direct addressing as 80H and 45H are direct addresses

Description : Explain following instructions of 8051. (i) ADDC (ii) L CALL

Last Answer : (i) ADDC: The ADDC instruction adds a byte value and the value of the carry flag to the accumulator. The results of the addition are stored back in the accumulator. Several of the flag ... . Then the program counter is loaded with the new address and control is transferred to the subroutine. 

Description : Memory access in RISC architecture is limited to instructions a. CALL and RET b. PUSH and POP c. STA and LDA d. MOV and JMP

Last Answer : c. STA and LDA

Description : What will be the hexadecimal value in the register ax (32-bit) after executing the following instructions? Mov al, 15 Mov ah, 15 Xor al, al Mov cl, 3 Shr ax, cl Codes: (A) 0F00 h (B) 0F0F h (C) 01E0 h (D) FFFF h

Last Answer : (C) 01E0 h

Description : List out any two instructions of following addressing modes: (i) Immediate addressing. (ii) Register addressing.

Last Answer : (i) Immediate addressing instructions: 1. MOV A, #36H 2. MOV DPTR, #27A2H (ii) Register addressing. 1. MOV A, R0 2. MOV R7, A

Description : What is the full form of 'MUL' ? -How To ?

Last Answer : The full form of 'MUL' is Maruti Udyog Limited

Description : which are of these examples of Intel 8086 opcodes: a. MOV b. ADD c. SUB d. All of these

Last Answer : d. All of these

Description : An ideal voltage amplifier should have A) Ri = 0, R0 = 0 B) Ri = 0, R0 =∞ C) Ri = ∞, R0 = 0 D) Ri = ∞, R0 = ∞.

Last Answer : C) Ri = ∞, R0 = 0

Description : What is the location value of R0 and the content at that place? a) 45H, 4F b) 50H, 30H c) 30H, 50H d) 50H, 45H

Last Answer : c) 30H,

Description : Which of the following instruction perform jump indirect relative to DPTR a) JMP A+DPTR b) JMP DPTR c) JMP @A+DPTR d) SJMP A+DPTR

Last Answer : b) JMP DPTR

Description : What physical law gives the flux of energy of an idealized object above 0 K? (a) P = ρRT (b) So(r/r0) 2 (c) σT4 (d) hν

Last Answer : (c) σT4

Description : Develop a program to swap two numbers using pointer and add swaped numbers also print their addition.

Last Answer : #include<stdio.h> void swap(int *a,int *b) {  int temp;  temp=*a;  *a=*b;  *b=temp; } void main() { int x,y,sum; printf("\n Enter value for x:"); scanf(" ... x); printf("\ny=%d",y); sum=x+y; printf("Sum of x+y = %d",sum); }

Description : For a gaseous reaction, `A(g)+3B(g)to3C(g)+3D(g),DeltaU` is 17 kcal at `27^(@)C`. Assuming `R=2cal" "K^(-1)mol^(-1)`, the value of `DeltaH` for the ab

Last Answer : For a gaseous reaction, `A(g)+3B(g)to3C(g)+3D(g),DeltaU` is 17 kcal at `27^(@)C`. Assuming `R=2cal" " ... Kcal B. 18.2 Kcal C. 20.0 Kcal D. 16.4 Kcal

Description : In the figure above (not to scale), `AB=AC` and `/_BAO=25^(@)`. Find `/_BOC,` if O is the centre of the circle.

Last Answer : In the figure above (not to scale), `AB=AC` and `/_BAO=25^(@)`. Find `/_BOC,` if O is the centre of the circle.

Description : In the figure above (not to scale), AB is the diameter of the circle with centre O. If `/_ ACO=30^(@),` then find `/_ BOC`.

Last Answer : In the figure above (not to scale), AB is the diameter of the circle with centre O. If `/_ ACO=30^(@),` then find `/_ BOC`.

Description : In a circle , chord AB subtends an angle of `60^(@)` at the centre and chord CD subtends `120^(@)`, at it. Then which chord is longer ?

Last Answer : In a circle , chord AB subtends an angle of `60^(@)` at the centre and chord CD subtends `120^(@)`, at it. Then which chord is longer ?

Description : In the given figure, AB is the diameter and `/_ADC = 2 /_BDC`. If `/_ BCD =70^(@)`, then find the angle made by AC at the centre of the circle.

Last Answer : In the given figure, AB is the diameter and `/_ADC = 2 /_BDC`. If `/_ BCD =70^(@)`, then find the angle made by AC at the centre of the circle.

Description : In the above figure, O is the centre of the circle AB,AD and CD are the chords . If `/_ ADC=130^(@)` then fid `/_ ACB`.

Last Answer : In the above figure, O is the centre of the circle AB,AD and CD are the chords . If `/_ ADC=130^(@)` then fid `/_ ACB`.

Description : In `Delta ABC`, if `/_A=80^(@)` and `AB=AC`, then `/_ B = ___________________`.

Last Answer : In `Delta ABC`, if `/_A=80^(@)` and `AB=AC`, then `/_ B = ___________________`.

Description : In the above figure (not to scale) , `AB||DE` and `EC||GF`. If `/_ EGF=100^(@)` and `/_ ECF=40^(@),` find the following . (i) `/_ABC` (ii) `/_GFC` (ii

Last Answer : In the above figure (not to scale) , `AB||DE` and `EC||GF`. If `/_ EGF=100^(@)` and `/_ ECF=40^ ... following . (i) `/_ABC` (ii) `/_GFC` (iii) `/_GDF`

Description : Explain the various selection factors of microcontroller suitable for application.

Last Answer : The selection of microcontroller depends upon the type of application. The following factors must be considered while selecting the microcontroller.  1. Word length: The word length of ... and for lesser production EPROM version or CPU version with external program memory is suitable

Description : State and explain the need of the following development tools microcontroller board: (i) Editor (ii) Assembler (iii) Compiler (iv) Linker

Last Answer : 1) Editor: An editor is a program which helps you to construct your assembly language program in right format so that the assembler will translate it correctly to machine language. So, you can type your ... . Some examples of linker are ASEM-51 BL51, Keil u Vision Debugger, LX 51 Enhanced Linker etc

Description : Draw the format of PSW register of 8051 microcontroller and explain the function of each bit.

Last Answer : 1. CY: Carry flag. This flag is set whenever there is a carry out from the D7 bit after an 8 bit addition or subtraction. It can also be set to 1 or 0 directly by instructions such as SETB C and ... the A register contains an odd number of 1s, then P=1. P=0 if A has an even number of 1s.

Description : Draw and explain Internal port structure of Port 0 and Port 1 of 8051 microcontroller.

Last Answer : Port-0 can be configured as a normal bidirectional I/O port or it can be used for address/data interfacing for accessing external memory. When control is '1', the port is used for address/data ... is not able to sink the current the pin voltage may rise, leading to a possible wrong reading.

Description : Explain with sketch the interfacing of 4 ×4 matrix keypad with 8051 microcontroller.

Last Answer : Interfacing keypad Fig. shows how to interface the 4 X 4 matrix keypad to two ports in microcontroller. The rows are connected to an output port and the columns are connected to an input port. To ... key has been pressed, the next task is to find out which column the pressed key belongs to.

Description : Explain the use of following assembler directives. (i) EQU (ii) ORG

Last Answer : (i) EQU: Equate It is used to define constant without occupying a memory location. Syntax: Label EQU Numeric value By means of this directive, a numeric value is replaced by a symbol. For e.g. ... decimal. If the number is notfollowed by H, it is decimal and the assembler will convert it to hex.

Description : Describe serial communication in 8051. Explain the use of SCON register.

Last Answer : 8051 micro controller communicate with another peripheral device through RXD and TXD pin of port3.controller have four mode of serial communication.  1. Serial Data Mode-0 (Baud Rate Fixed) In this mode ... .0 Receive interrupt flag. Set by hardware halfway through the stop bit time in mode 1. 

Description : Explain processes of interrupt enabling and disabling in 8051.

Last Answer : Interrupts are the events that temporarily suspend the main program, pass the control to the external sources and execute their task. It then passes the control to the main program where it had left off. ... interrupts. Its bit sequence and their meanings are shown in the following figure.

Description : Explain function of following pins of 8051 (i) Pin 31 (ii) Pin 29 (iii) Pin 21-28 

Last Answer : i) Pin 31-EA : It is and active low I/P to 8051 microcontroller. When (EA)= 0, then 8051 microcontroller access from external program memory (ROM) only. When (EA) = 1, then it access internal ... /Output, when external memory is interfaced, PORT 2 pins act as the higher-order address bus. (A8-A15)

Description : Draw and explain the interfacing of DAC to 8051.

Last Answer : Diagram:  * Microcontroller generates output which is in digital form but many controlling system requires analog signal as they don't accept digital data thus making it necessary to use DAC ... current. Hence we require an I to V converter to convert this current into equivalent voltage. 

Description : Videos from .mov to .mp4 format?

Last Answer : answer:the answer to the real question is : freemake.com free video converter,

Description : What are the conversion ratio for MP4, Mpeg, AVI, 3gp, WMV, Divx and MOV converted to FLV? ex:100mb AVI =FLV?

Last Answer : answer:

Description : With what software can I edit/rotate mov. files?

Last Answer : AVS4you is one of many free tools that allows you to do this.

Description : Whats the best program to convert Mov files to Mp4?

Last Answer : i use this, http://www.videora.com/en-us/Converter/zune/

Description : How can I determine who created a type of computer file, such as jpegs and .mov files?

Last Answer : answer:Yes. Examine the email source code and trace the path it took and where it really came from. The files do not have serial #s. If they are photos they may have EXIF info but that won't be ... -on the drop down next to reply' select show original' Don't open the files. Tracing IP addresses

Description : How can I convert a AVCHD (.MTS) file to a MOV file on a non-Intel PowerMac G5 or Windows XP pc? FREE?

Last Answer : http://www.moviesmac.com/video-converter-mac/, this may solve the problem.

Description : How can I make a .MOV file small enough to upload?

Last Answer : Check out handbrake. It should be able to do what you want.

Description : Anyone familiar with video editing .mov files on PC?

Last Answer : Im not sure what Ulead is, but if youre going to be editing a lot of videos, a good program would be Apple’s Motion 4. Another would be Adobe After Effects. I prefer Motion. Though, I dont know the prices of either program.

Description : Windows Vista video files: Convert .MOV to .WMA?

Last Answer : Go to lifehacker.com and search for “free video converter.” It will provide you with multiple articles and free program reccomendations. Lifehacker is great for looking for new and (usually) free software.

Description : I changed my .mov file to a .avi file with a website and Windows Movie Maker still won't support the file.

Last Answer : AVI files are tricky. It isn’t really a format, it is a wrapper. What is inside could be a lot of different video and audio types. My advice is to convert to mp4 if you can. That is a pretty universal codec. Anyone with Quicktime and iTunes will be able to play it. And the quality is good.

Description : Converting MOV to WMV on a Mac?

Last Answer : Email him a codec and have him run it and hit “next next next next next finish”. Then send him the .mov file, and it will play in his Winblows Media Player. PC’s are the inferior minority, now it’s their time to bend to our will and ways. :P

Description : How can I convert a .swf (flash) file to Quicktime .mov?

Last Answer : You can try this program. It’s converted everything I’ve needed it for so far and easy to use. It may not work for your purposes since it’s designed for audio conversions but it’s a really nice program nonetheless.

Description : How do I remove 3:2 pulldown from a .mov file?

Last Answer : You can definately do it in mencoder (http://mplayerhq.hu), but that's all commandline-y.

Description : Is there a free, PC alternative to Quicktime for playing .mov files?

Last Answer : answer:try VLC Media player VLC - the cross-platform media player and streaming server VLC media player is a highly portable multimedia player for various audio and video formats (MPEG-1, MPEG-2, MPEG-4, ... or multicast in IPv4 or IPv6 on a high-bandwidth network. and better yet, its open source.

Description : i used quicktime pro to convert a mpg file to a .mov file but somehow the audio track is lost. does anyone know how i can fixt it?

Last Answer : answer:Not sure what you're running, but here's my guess at the possible problem: 1. QuickTime without the Pro upgrade has limited import/export functionality; if you are not running the Pro Version this ... conversion tools (e.g. versiontracker) to find 3rd party utils. that do this. Good luck :)

Description : Is there a free program to convert DVD to MOV?

Last Answer : Mac or PC?

Description : How do i convert .mov files?

Last Answer : what format do u want to convert to and what media/player would it be for?