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

Dynamic response of control systems, Q. Dynamic Response of Control Systems...

Q. Dynamic Response of Control Systems? The existence of transients (and associated oscillations) is a characteristic of systems that possess energy-storage elements and that a

Hall effect is associated with which material, Hall Effect is associated wi...

Hall Effect is associated with (A) Conductors. (B) Semiconductors. (C) Thermistors. (D)Solders. Ans: Hall Effect is associated with semiconductors.

Use of cro for frequency measurement, Q. Explain the use of CRO for frequen...

Q. Explain the use of CRO for frequency measurement.   Measurement of frequency: The frequency of the periodic signals is easily measured with a CRO. The frequency of a si

Determine the function of time for the clock, Q. Determine the function of ...

Q. Determine the function of time for the clock? Given the block diagram for a 4-bit shift-left register shown in Figure (a), draw the output (Q 0 , Q 1 , Q 2 , Q 3 , and data

Trivalent impurity to a semiconductor, Addition of trivalent impurity to a ...

Addition of trivalent impurity to a semiconductor creates many (A) Holes. (B) Free electrons. (C) Valance electrons. (D) Bound electrons. Ans: Addition o

Find the power supplied by the voltage source, Find the power supplied by t...

Find the power supplied by the voltage source and the power absorbed by the 24 Ω resistor (R3) in the circuit shown below:   Determine the voltage V2 in the circuit shown.

Explain working of digital process control, Q. Explain working of Digital P...

Q. Explain working of Digital Process Control? Figure shows a block diagram for microcomputer-based control of a physical process, such as a chemical plant. A slight variation

Compute current in given the circuit configuration, Q. Consider the circuit...

Q. Consider the circuit configuration shown in Figure. Let V i = 1V, R 1 = 1000, R 2 = 2000, and A = 3. (a) Compute i 2 . (b) If R 1 changed to 500 , recompute i 2 .

Factors of contributing to losses in service cables, Factors of Contributin...

Factors of Contributing to Losses in Service Cables 1. Tapping of underground service cables: The service cables must be visible so that tapping of cables can be detected. U

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