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
SUB Instruction Op code  format is of SUB  instruction is Replace  the three bit code  of the register R from   to obtain the op code of the  required SUB  instruction . o

Q. What is basic working of MOSFET? The metal-oxide-semiconductor construction leads to the name MOSFET, which is also known as insulated-gate FET or IGFET. One type of constru

Describe 74LS139 memory decoder. The 74LS139 is a dual 2-to-4 line decoder. This contains two separate 2-to-4 line decoders - all with its address, output and enable connection

what is a armature reaction ?? give some concepts on double rotating field theory?? thanks

Q. Adaptive control process in motor-speed control system? Figure illustrates the adaptive control process as applied to a motor-speed control system, which is based on adjus

Q. Show an arrangement for multiplexing 64-to-1 by using four 16-to-1 multiplexers and one 4-to-1 multiplexer.

Evaluate currents in the circuits: Determine currents I 1 and I 2 in the given circuits by applying KVL. Solution We apply KVL for first loop : 10 = 1 I 1   + 1 (


The per-phase synchronous reactance of a three-phase, wye-connected, 2.5-MVA, 6.6-kV, 60-Hz turboalternator is 10 . Neglect the armature resistance and saturation. Calculate the v

Q. What is the Voltage controlled resistance region?  In this region the JFET can actually be employed as a variable resistor whose resistance is controlled by the applied gate