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

Explain eddy currents, Explain Eddy currents. Eddy currents: Magnetic m...

Explain Eddy currents. Eddy currents: Magnetic materials placed as in alternating magnetic fields have eddy currents also induced in them. It is because the material is subject

N-type semiconductor, a)  Sketch the variation of electron concentration wi...

a)  Sketch the variation of electron concentration with temperature for i)  an n-type semiconductor doped with 1021  donors m-3 ii)  an intrinsic semiconductor.  b)  Expla

Explain working of three-phase transformers, Q. Explain working of three-ph...

Q. Explain working of three-phase transformers? Transformation in three-phase systems can be accomplished in either of two ways: (1) connecting three identical single-phase tra

Draw a 100 line exchange, Q. Draw a 100 line exchange using two motion sele...

Q. Draw a 100 line exchange using two motion selectors and elucidate, how switching takes place in it. Ans: In a 100 line exchange, every subscriber is assigned a 2 digit

#complex frequency.., i cant imagine of something called complex frequency....

i cant imagine of something called complex frequency...i find it important for laplace transformation,but i am lacking the physical explanation,please explain this to me

Compute the efficiency at one-half load, Q. A certain 10-hp, 230-V motor ha...

Q. A certain 10-hp, 230-V motor has a rotational loss of 600 W, a stator copper loss of 350 W, a rotor copper loss of 350 W, and a stray load loss of 50 W. It is not known whether

#title., what is plane transmission grating/?

what is plane transmission grating/?

Effect of feedback on sensitivity to parameter changes, Q. Effect of feedba...

Q. Effect of feedback on sensitivity to parameter changes? A good control system, in general, should be rather insensitive to parameter variations, while it is still able to fo

Explain linear versus nonlinear control systems, Q. Explain Linear versus n...

Q. Explain Linear versus nonlinear control systems? Linear feedback control systems are idealized models that are conceived by the analyst for the sake of simplicity of analysi

How to remove the LSB from the audio recording?, Using the audiorecorder() ...

Using the audiorecorder() function in MATLAB, make a recording of your voice. Use a sample rate of 8kHz, 16 bits per sample, and aim to record around 2 seconds worth. Quantize 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