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

Determine the resistance and temperature-coefficient, Determine the resista...

Determine the resistance and temperature-coefficient: A platinum coil has a resistance of 3.146 Ω at 40 o C and 3.767 Ω at 100 o C. Determine the resistance at 0 o C and the t

Write discussion on Construction and working of analog type, Write discussi...

Write discussion on Construction and working of analog type storage oscilloscope

Biasing the bjt, Q. Biasing the BJT? A simple method of biasing the BJT...

Q. Biasing the BJT? A simple method of biasing the BJT is shown in Figure. While no general biasing procedure that will work in all cases can be outlined, a reasonable approach

Find the nature of the armature voltage, Q. The flux-density distribution p...

Q. The flux-density distribution produced in a two - pole synchronous generator by an acexcited field winding is B(θ, t) = B m sin ω 1 t cos θ Find the nature of the armatur

Explain the tap changing transformers, Explain the Tap Changing Transformer...

Explain the Tap Changing Transformers? This is the most popular form of voltage control at all voltage levels. It is based on changing the turns ratio of the transformer, hence

Give the register organization of 8257, Give the register organization of 8...

Give the register organization of 8257? The 8257 do the DMA operation over four independent DMA channels. Each of the four channels of 8257 has a couple of two 16-bit registers

Explain the working of asynchronous (ripple) counters, Explain the Working ...

Explain the Working of Asynchronous (Ripple) Counters? An external clock is connected to the clock input of the first flip-flop (FF0) only. Thus FF0 changes state at the falli

Calculate the impedance, What is the impedance Z between terminals A and B ...

What is the impedance Z between terminals A and B of the networks shown below? Express your answers in polar form. Three voltages represented by v 1 (t)=100cosωt, v 2 (t)=7

Explain about hybrid network, Q. Explain about Hybrid network? Hybrid n...

Q. Explain about Hybrid network? Hybrid network (sometimes known as a hybrid coilor duplex coil) in a telephone set is a special balanced transformer used to convert a two-wire

Explain polarization, Explain Polarization. Polarization: A dielectric ...

Explain Polarization. Polarization: A dielectric has molecules the atomic nuclei of that are effectively fixed, related to each other. In absence of any external field all 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