Unconditional jump - jump instruction , Electrical Engineering

Unconditional Jump

JMP ( Unconditional Jump ) Instruction: This  instruction is used to transfer  the execution to the  specified  memory  address unconditionally ( does not check any condition before jump).  It is  normally  used to create an indefinite  loop. The  instruction format is

                            JMP 16 bit memory address

Actually it copies  the specified  memory address into the  program counter register. Hence the  microprocessor reads  the next  instruction from the address  stored in the program  counter. Now as  usual  the contains  of the  program  counter register  starts  incrementing by  one. Program executes sequentially until it encounters any other  branch  instruction.

See followings   example to  understand  the working  of JMP  instruction.

Note: You  must have noticed that Sex codes  of IN  and OUT  instruction  are written  at two  consecutive  memory  locations and Hex  codes  of JMP instruction  are written at  three  consecutive  memory  locations. Without going  into the  details of the Hex  codes and size of the instruction at this moment ( which will be  discussed later in this chapter) let us concentrate on the working  of the JMP  instruction.

In the  above program the instruction JMP  20502H will  transfer  the execution back to the first instruction which is stored  at 2050H and keep on repeating the  task by  creating  an indefinite  loop.

The  above  program may be  written  as shown  below using labels when written  using  assembler. In laboratory using microprocessor  kit one has to the hex  codes( programming techniques will be explained in detail in chapter4).

The label  represent the  memory  address of the instruction written  along with  it. In the above  program the label  START represents the  memory  address 2050H where IN  instruction is stored. It is referred  by JMP  instruction  written at memory  location 2054H.

Posted Date: 4/5/2013 1:07:15 AM | Location : United States







Related Discussions:- Unconditional jump - jump instruction , Assignment Help, Ask Question on Unconditional jump - jump instruction , Get Answer, Expert's Help, Unconditional jump - jump instruction Discussions

Write discussion on Unconditional jump - jump instruction
Your posts are moderated
Related Questions
Name  the flag bits available in 8085 microprocessors. The 8085 microprocessor has five flags to show  five different  types  of data conditions .they are zero(Z),carry(CY),Sig

Q. Can you explain about Trapeziodal Clippers? During The Positive half cycle, the diode D1 will be open circuited and the input appears as the output until, the applied bias v

Explain Practical Digital to Analog Converters? In several DSP applications, we must reconstruct an analog signal after the digital processing stage. This is completed using a

Capacitors : These are electrical condensers having a system of electrical conductors and insulators. The simplest form consists of two parallel metal plates separated by a layer

Q. An FM station's modulator has a sensitivity k FM = 5π × 10 4 rad/s·V. A receiver uses a discriminator that has a gain constant of 10 -5 /π V·s/rad. Neglecting noise, determin

What is I/O mapping? The assignment of addresses to various I/O devices in the memory chip is known as I/O mapping.

Q. A low-pass filter circuit is shown in Figure. Using a PSpice program and PROBE, obtain the Bode magnitude plot for the transfer function ¯H(f) = ¯V out / ¯V in for the frequ

INR (Increment )  Instruction This  instruction is used to  increment  the contents  of any  register or memory  location by one. There  are two  format.

Q. A wye-connected, three-phase, 50-Hz, six-pole synchronous alternator develops a voltage of 1000 V rms between the lines when the rotor dc field current is 3A. If this alternator

what is quality factor in term circuit analysis