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

Example of clamper circuits, Example of clamper circuits: Example of c...

Example of clamper circuits: Example of clamper circuits are as follow Voltage multiplier circuit: voltage circuit is employed to maintain a relatively low transformer pe

Bode plot, Hai.. i have been given a open loop transfer function to draw a...

Hai.. i have been given a open loop transfer function to draw a bode plot with a particular K value and they asked me to find the value of K for which the phase margin becomes 45d

Explain the synchronous compensators, Explain the Synchronous Compensators ...

Explain the Synchronous Compensators These are synchronous motors running without mechanical loads (or with load if required). Similar to the synchronous generators, they can a

Obtain a pos expression, Q. The K map of a logic function is shown in Figur...

Q. The K map of a logic function is shown in Figure. (a) Obtain a POS expression and its corresponding realization. (b) For the purpose of comparison, obtain the correspondin

Pu value, the p.u. reactance of a 25 MVA, 13.2 kV alternator 0.5 p.u. On a ...

the p.u. reactance of a 25 MVA, 13.2 kV alternator 0.5 p.u. On a base of 50 MVA and 13.8 KV the p.u. value shall be

Meter field testing - sealing points, Meter Field Testing - Sealing Points ...

Meter Field Testing - Sealing Points The meter seal should be tamper proof. The consumer should be briefed about seals. The sealing of all metering systems should be completed

Explain the working of positive clamper, Q . Explain the working of Positiv...

Q . Explain the working of Positive Clamper? Positive Clamper: The circuit for a positive clamper is shown in the figure. During the negative half cycle of the input signal,

Thyristor terminology , Thyristor  Terminology The followings  terms ...

Thyristor  Terminology The followings  terms are used in SCR  specifications: Latching current : The  latching  current is  the value of on stat e current  required  to mai

One byte instructions , One byte Instructions One byte  instruction i...

One byte Instructions One byte  instruction include  both the opcode  operand in the  same byte. To identify  one byte  instruction one  must  observe followings  things .

Cma complement accumulator instruction, CMA Complement Accumulator  Instru...

CMA Complement Accumulator  Instruction Complement the  contents of the accumulator  i e the   accumulator  al once are converted zeros  and all zeros  are converted to  ones.

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