Unconditional jump - jump instruction , Electrical Engineering

Assignment Help:

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.


Related Discussions:- Unconditional jump - jump instruction

Direct tapping and unmetered connections, Direct Tapping and Unmetered Conn...

Direct Tapping and Unmetered Connections Direct Tapping Direct tapping of power by non-customers is widely prevalent. This is mainly in domestic and agricultural categori

Explain limit signal spectrum to prevent aliasing, Explain Limit Signal Spe...

Explain Limit Signal Spectrum to Prevent Aliasing? The sampling frequency should at least be two times that of the highest frequency in the incoming signal to avoid aliasing. T

Find maximum probable percentage error in the measurement, Q. A current of ...

Q. A current of 65 A is measured with an analog ammeter having a probable error of ± 0.5% of full scale of 100 A. Find the maximum probable percentage error in the measurement.

Torque required to turn a self excited generator, Work must be done against...

Work must be done against the electromagnetic torque in order to generate the voltage (and current) supplied to the electrical load connected to the generator. Therefore energy con

Live human detection robot, which simulation software is better for this p...

which simulation software is better for this project, and how can i simulate it?

Interrupts, how the interrupts are affected by system rest

how the interrupts are affected by system rest

Immediate addressing , Immediate  Addressing In this  addressing mode...

Immediate  Addressing In this  addressing mode that 8/16  bit data  is specified  in the  instruction itself  as its  one of the  operands. Normally the instructions  using  a

The fundamental frequency , The frequency domain representation of a signal...

The frequency domain representation of a signal is shown  below: i. What are the fundamental frequency and the corresponding period of this signal (shown in Figure )? ii.  Pl

Physics, find the resultant of two forces 20N and25N acting at an angle 60...

find the resultant of two forces 20N and25N acting at an angle 60 degree each other

Radio over Fiber, I need to get a summary for a radio over fiber paper that...

I need to get a summary for a radio over fiber paper that I have , the summary need to be on the following format: abstract, introduction,methodology,results, conclusion and refere

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd