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

Show the load current is independent of zl, Q. A negative impedance convert...

Q. A negative impedance converter is used, as shown in Figure. Show that the load current i L is given by v in /R, which is independent of Z L . Note that since the load sees a cu

Which interrupt has the highest priority, TRAP has the maximum priority ...

TRAP has the maximum priority There are 2 types of interrupts external and internal. NMI has highest priority between all external interrupts,TRAP has highest priority between

Draw an electrical relay diagram, Draw an electrical relay diagram rung sho...

Draw an electrical relay diagram rung showing a N/O contact of CR1(coil) in series witha N/C contact of CR2(Coil), operating a lamp L1. A delay-on (TON) relay has a preset of 5.

Determine efficiency on diffrent load cycle, Q. A 75-kVA transformer has an...

Q. A 75-kVA transformer has an iron loss of 1 kW and a full-load copper loss of 1 kW. If the transformer operates on the following load cycle, determine the all-day efficiency:

Control, Ask The goal of this project is to model a system and to design a ...

Ask The goal of this project is to model a system and to design a controller for the system so that the closed-loop system performs satisfactorily. We want to accurately positio

Explain circuit with capacitive load, Circuit with capacitive load Capa...

Circuit with capacitive load Capacitors which obey the relationship of equation are linear capacitors, since the potential difference among the conductive surfaces is linearly

Explain working of single-phase induction motors, Q. Explain working of Sin...

Q. Explain working of Single-Phase Induction Motors? For reasons of simplicity and cost, a single-phase power supply is universally preferred for fractional-horsepower motors.

Floor number display, It is required that the current floor position be dis...

It is required that the current floor position be displayed as a number 1, 2, or 3 on a seven segment LED display on floor 1, which is quite close to the LCU. Data Storage It

Perfect gases avogadro''s hypothesis, Equal volumes of all gases contain th...

Equal volumes of all gases contain the samenumber of molecules when the volumes are measured at the same p and T. Therefore for a given volume at the same p and T, with the same

Illustrate inductance with example, Q. Illustrate Inductance with example? ...

Q. Illustrate Inductance with example? An ideal inductor is also an energy-storage circuit element (with no loss associated with it) like a capacitor, but representing the magn

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