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

Binary to octal conversion, Binary  to Octal Conversion To convert a b...

Binary  to Octal Conversion To convert a binary  number into octal  divide the number into  group  of three  bits each  starting from the least significant bit. Then put equiva

Strategic perspective of an organization, Strategic Perspective of An organ...

Strategic Perspective of An organization Strategic perspectives cover functions such as revenue, customer satisfaction, people, procedure and technology. Every organization re

Determine the input resistance between terminals of circuit, Q. Consider Fi...

Q. Consider Figure of the weighted differencing amplifier. Let R 3 = R 1 and R 4 = R 2 . Determine the input resistance between terminals a and b of the circuit.

What do you mean by frequency response, Q. What do you mean by Frequency re...

Q. What do you mean by Frequency response? Now let us examine the response of a circuit to a sinusoidal source, called an oscillator, whose frequency can be varied.Known as the

Find the antenna temperature, Q. If an antenna has an available noise power...

Q. If an antenna has an available noise power of 1.6 × 10 -15 W in a 1-MHz bandwidth, find the antenna temperature.

Astable multivibrator circuit, how does this circuit work and what are th e...

how does this circuit work and what are th electrical components in it do?

What do you mean by negative impedance converter, Q. What do you mean by Ne...

Q. What do you mean by Negative Impedance Converter? The op-amp circuit of Figure causes a negative resistance R in between the input terminal and ground. In the more general

Equivalent circuit of a dc machine, Equivalent Circuit of a DC Machine ...

Equivalent Circuit of a DC Machine A review of the material presented with regard to elementary direct-current machines can be helpful at this stage to recall the principles of

Determine the armature current and torque angle, Q. Determine the armature ...

Q. Determine the armature current and torque angle? A 1500-hp, 6600-V, six-pole, 60-Hz, three-phase, wye-connected, synchronous motor, with a synchronous reactance of 36 , neg

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