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

Types of hazards, The contents of compressed gas cylinders can range from h...

The contents of compressed gas cylinders can range from highly flammable substances, such as hydrogen, propane and ethane (acetylene), to toxic gases, such as chlorine, sulphur dio

Which metal has material with lowest resistivity, The material with lowest ...

The material with lowest resistivity is (A) Constantan.         (B) Silver. (C) manganin.            (D) nichrome. Ans: The material with lowest resist

Formal lab report, I need someone help me to do electronics formal lab repo...

I need someone help me to do electronics formal lab report, I tried many time to submit it but I couldn''t? plz help me

Overall performance indicator method, Overall Performance Indicator Method ...

Overall Performance Indicator Method Overall Performance Indicator could be derived from a combination of few of the specific core indicators. The way this combination is comm

Static v- i characteristics - power semiconductor devices , Static V- I Cha...

Static V- I Characteristics A thyristor  works in  three basic  modes a.Reverse  blocking mode b.Forwards  blocking  mode and c.Forward  conducting  mode In revers

Develop logic expression and find one possible logic circuit, Q. Figure (a)...

Q. Figure (a) shows the seven-segment array that iswidely used to formthe decimal digits 0 to 9 in LEDdisplays, as indicated in Figure(b). Let the inputs be the four binary digits

Electric machinery fundamentals, Ask qu1. If the resistor Radj is adjusted ...

Ask qu1. If the resistor Radj is adjusted to 175O what is the rotational speed of the motor at no-load conditions? 2. Assuming no armature reaction, what is the speed of the motor

Show the process for taking observations by satellite, Q. Show the Process ...

Q. Show the Process for taking observations by satellite? Sensors are devices to make observations, which have sophisticated mechanism for taking observations. The detectors ar

Adaptors-safe conduct, Adaptors : When you plug two or more appliances int...

Adaptors : When you plug two or more appliances into a plug that makes it possible to use more than one piece of electrical equipment from a single socket. The total current drawn

Obtain an expression for the closed-loop transfer function, Q. A noninverti...

Q. A noninverting op-amp circuit and its closed-loop representation are given in Figure. Obtain an expression for the closed-loop transfer function H(ω) = Y (ω)/X(ω) and comment on

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