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

What are multistageand single stage networks, Q. What are multistageand sin...

Q. What are multistageand single stage networks? Compare strengths and weaknesses of each. OR List the key difference in single stage, two stage and three stage Networks. A

Give the applications of steel, Give the applications of steel. Steel ...

Give the applications of steel. Steel : It contains iron with a small percentage of carbon added to this. Iron itself is not extremely strong but while carbon is added this as

Calculate the rated load current of machine, A 500 MVA, 33kv, three phase s...

A 500 MVA, 33kv, three phase steam turbine generator has a synchronous reactance of 1.6 p.u. It delivers a rated output at 0.8 power factor lagging. Calculate (a) The synchronou

Is the mosfetoperating in the active region, Q. A depletion MOSFET is given...

Q. A depletion MOSFET is given to have large V A , V P = 2.8V, I DSS = 4.3 mA, v DS = 4.5V,and v GS = 1.2V. (a) Is theMOSFEToperating in the active region? (b) Find iD.

Use of computers in power systems, Q. Use of Computers in Power Systems? ...

Q. Use of Computers in Power Systems? The control and stability of any electric power system is indeed extremely important, in particular when a system is expected to maintain

What is the per-unit slip at full load, Q. A three-phase, 60-Hz induction m...

Q. A three-phase, 60-Hz induction motor runs at almost 1800 r/min at no load, and at 1710 r/min at full load. (a) How many poles does the motor have? (b) What is the per-unit

Stator current control methods - motor control , Stator  Current Control ...

Stator  Current Control Methods The torque  and speed  of an induction motor  can be  controlled  by the  stator  current  the motor  behaviour  is different from that with VS

Illustrate working of application layer, Q. Illustrate working of Applicati...

Q. Illustrate working of Application Layer? As the highest layer in OSI reference model, application layer provides services to users of OSI environment. Layer

Find the real and reactive powers per phase, Q. A 345-kV, 60-Hz, three-phas...

Q. A 345-kV, 60-Hz, three-phase transmission line delivers 600 MVA at 0.866 power factor lagging to a three-phase load connected to its receiving- end terminals. Assuming that the

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