Explain the following assembler directives. 1) DB 2) DUP 3) EQU 4) ENDs.

1 Answer

Answer :

1) DB (Define Byte or Data Byte):

This is used to define a byte type variable.

The range of values : 0 – 255 for unsigned numbers -128 to 127 for signed numbers

This can be used to define a single byte or multiple bytes

Ex: NUM DB? ; Allocate one memory location

2) DUP (Duplicate memory location):

This directive can be used to generate multiple bytes or words with known as well as un-initialized values.

E.g TABLE DW 100 DUP(0) ; Create array of 100 words all contains data 0

3) EQU (Equate to):

The EQU directive is used to declare the micro symbols to which some constant value is assigned. Micro assembler will replace every occurrence of the symbol in a program by its value.

Syntax: Symbol_name EQU expression

Example: CORRECTION_FACTOR EQU 100

4) ENDs:

This directive informs the assembler the end of the segment

The directives SEGMENT, ENDS are always enclosed in data, code, stack and extra segments.

Related questions

Description : Explain the use of following assembler directives. (i) EQU (ii) ORG

Last Answer : (i) EQU: Equate It is used to define constant without occupying a memory location. Syntax: Label EQU Numeric value By means of this directive, a numeric value is replaced by a symbol. For e.g. ... decimal. If the number is notfollowed by H, it is decimal and the assembler will convert it to hex.

Description : Define memory segmentation. How memory segmentation is achieved in 8086? State advantages of memory segmentation.

Last Answer : Memory Segmentation: The memory in an 8086 microprocessor is organized as a segmented memory. The physical memory is divided into 4 segments namely, - Data segment, Code Segment, Stack Segment and Extra ... 16 bit size. 6) Programs and data can be stored separately from each other in segmentation.

Description : Enlist the features of 8085 microprocessor.

Last Answer : Features of 8085 microprocessor: 1. 16 address line so 216=64 Kbytes of memory can be addressed. 2. Operating clock frequency is 3MHz and minimum clock  frequency is 500 KHz. 3. On chip bus ... cycle TTL clock 10. Provide 2 serial I/O lines, so peripheral can be interfaced with  8085 μp

Description : Describe the functions of stack pointer and program counter of 8085. 

Last Answer : Stack pointer: 1. It is a 16 bit register which is used to store the address of topmost filled memory location of stack memory. 2. SP always points current top of stack. 3. If data is ... of memory and in 8085 the address of memory is 16 bit. Hence program counter is 16 bit register.

Description : Describe re-entrant procedure with the help of schematic diagram.

Last Answer : Re-entrant Procedures: A procedure is said to be re-entrant, if it can be interrupted, used and re-entered without losing or writing over anything. To be a re-entrant, Procedure ... program execution flow reenters in the procedure1. These types of procedures are called reentrant procedures.

Description : Write an algorithm and draw the flowchart to find sum of series of numbers. 

Last Answer : Algorithim to find sum of series of numbers: 1. Initialize data segment 2. Initialize byte counter and memory pointer to read number from array. 3. Initialize sum variable to 0 4. sum=sum+number from array ... Decrement byte counter 9. If byte counter=0 then step 10 else step 4 10. Stop

Description : Write an algorithm to subtract two 16 bit numbers (With borrow) in 8086 microprocessor.

Last Answer : Algorithm for 16 bit numbers subtraction with borrow: 1. Load 0000H into CX register (for borrow) 2. Load the first number into AX(accumulator) 3. Load the second number into BX register 4. Subtract ... . Move data from AX(accumulator) to memory 8. Move data from CX register to memory 9. Stop

Description : Enlist any four addressing modes of 8086 microprocessor.

Last Answer : Addressing modes of 8086 : 1. Immediate 2. Direct 3. Register 4. Register indirect 5. Indexed 6. Register relative 7. Based indexed 8. Relative based indexed 9. Implied

Description : State the use of OF and DF flags of 8086 microprocessor.

Last Answer : Overflow Flag: This flag is set if an overflow occurs, i.e. if the result of a signed operation is large enough to be accommodated in destination register. Direction Flag: It selects either increment or decrement mode for DI &/or SI register during string instructions.

Description : Define pipelining.

Last Answer : Pipelining: Process of fetching the next instruction while the current instruction is executing is called pipelining which will reduce the execution time.

Description : State the functions of following pins of 8085 1) SOD 2) HLDA

Last Answer : 1) SOD: Serial Output data SOD pin is used to transmit data serially from accumulator to the external devices connected to the pin.  2) HLDA: Microprocessor generates HLDA signal to acknowledge requesting device after HOLD signal.

Description : State the functions of temporary registers of 8085 microprocessor.

Last Answer : Temp Register (8 bits) is also called as operand register as it is used by μp for storing one of the operands during an operation and also for storing the result of any execution temproary.

Description : List out any four assembler directives and state their functions.

Last Answer : ORG directive: It is used to specify starting address of the Program. A 16bit address follows ORG ORG 0020H will start program from 0020H memory location.  END directive: It indicates end of the ... that when the label appears in the program, itp constant value will be substituted for the label.

Description : What is the function of assembler ?

Last Answer : : Assembler's job (1) is to convert the nominal code into machine language. (2) The Assembly converts the address into an address written in machine language. (3) Verify that each instruction ... all the mistakes. (6) To make every instruction in assembly language an instruction in machine language.

Description : What is assembler

Last Answer : The assembler translates the assembly language program text which is given as input to the assembler to their binary equivalents known as object code. The time required to translate the assembly code ... time. The assembler checks for syntax errors & displays them before giving the object code.

Description : The translator program used in assembly language is called a. Compiler b. Interpreter c. Assembler d. Translator

Last Answer : c. Assembler

Description : Explain law of demand and law of supply.

Last Answer : The Law of Demand The law of demand states that, if all other factors remain equal, the higher the price of a good, the less people will demand that good. In other words, the higher the price, the lower ... ). At point B, the quantity supplied will be Q2 and the price will be P2, and so on.

Description : Explain the procedure of detailed energy audit.

Last Answer : Detailed Energy Audit Detailed audit provides a detailed project implementation plan for a facility, since it evaluate all major energy using systems. This type of audit offers the ... Management aspects of design and operating data collection, field measurements, data analysis, and training

Description : Explain any four important properties of petroleum fuel.

Last Answer : Properties of petroleum fuel The flash point of a volatile fuel is the lowest temperature at which it can vaporize to form an ignitable mixture in air. The flash point is an important concept in ... of combustion contain the water vapor and that the heat in the water vapor is not recovered.

Description : Explain construction and working of solar water heater.

Last Answer : Solar Water Heater  Construction A typical domestic solar water heater consists of a hot water storage tank and one or more flat plate collectors. Inlet and outlet pipes are connected ... the tank continues automatically due to density difference between hot and cold water (thermosyphon effect).

Description : Explain energy conservation and its importance.

Last Answer : Energy conservation Energy Conservation is the deliberate practice or an attempt to save electricity, fuel oil or gas or any other combustible material, to be able to put to additional use for ... are produced. e) Generally to relieve shortage and improve development. f) Advantage in PAT scheme.

Description : Explain construction of biogas plant.

Last Answer : Fixed Roof Biogas Plant  Construction It consits of inlet tank, digester and outlet tank. Sluury is prepeared in inlet tank. Mass is digeated in digester. Gas is collected at the top dome. Digested mass ... digester gas can supply useful energy in the form of hot air, hot water or steam.

Description : Explain MCB and ELCB with connection diagram supplying single phase load. 

Last Answer : OR OR Explanation: * MCB provides short circuit protection. * MCB provides overload protection * ELCB provides earth fault protection. * MCB is in series with ... occurs, the ELCB cuts off the power within the time of 0.1 sec. automatically to protect the personnel. 

Description : Explain the suitability of aluminium as an electrical conductor with respect to its mechanical and electrical properties. 

Last Answer : Following are requirements of conductor:- i) High conductivity :  Material should have high conductivity, So that * cross section of conductor (size) reduces, * Copper losses reduces, * So Efficiency ... . Boiling point is 1820°C 9. Specific gravity is 2.7 10. High resistance to corrosion. 

Description : Draw and explain V and inverted V curves for synchronous motor.

Last Answer : V curves' and inverted V curves' for Synchronous Motor:  V curve:  V curve is a plot of the stator current versus field current for different constant loads. The graph is plotted ... Vcurves of synchronous motor. The highest point on each of these curves indicates unity power factor.

Description : Explain construction and working of AC servomotor.

Last Answer : Construction of AC Servo Motor: AC servo motor is mainly composed of a stator and a rotor. Laminated stator core is usually made of silicon steel. Two phase windings are placed in the stator slots at 90 degree ... on rotor. Due to the force or torque acting on the rotor, it is set in motion. 

Description : Draw the block diagram of regulated power supply, explain function of each block and draw waveforms of each stage.

Last Answer : 1. A step down transformer 2. A rectifier 3. A filter 4. A regulator Operation of Regulated Power Supply:- Step Down Transformer:- A step down transformer will ... regulator. A regulator will maintain the output constant even when changes at the input or any other changes occur.

Description : Explain dynamic and static induced emf with neat diagram.

Last Answer : Dynamically Induced EMF:-  In this case, either coil moves or magnet moves, so that there is relative motion between coil & magnetic field. Thus magnetic field is cut by coil & emf is induced in it. The emf ... The expression for induced EMF is e= -L(di/dt) or = -N(dϕ/dt).

Description : Explain the concept of lagging and leading phase angle by waveform.

Last Answer : i) Leading phase angle :  When two ac quantities of same frequency do not attain their respective zero or peak values simultaneously, then the quantities are said to be out-of-phase quantities. The ... Similarly, in the second diagram, the voltage is said to be lagging the current by  Φ.

Description : In time-cost optimization of a project, crashing is done. (A) On all the activities (B) On all the activities lying on the critical path (C) Only on activities lying on the ... critical activities and those that become critical at any stage of crashing in the order of ascending cost slope

Last Answer : D

Description : Magnetic and Non-magnetic Materials

Last Answer : We have now looked at a number of ways in which matter can be grouped, such as into metals, semi-metals and non-metals; electrical conductors and insulators, and thermal conductors and insulators. ... information must be stored, in computers and TV's, as well as in generators and electric motors.

Description : Metals, Metalloids and Non-metals

Last Answer : The elements in the periodic table can also be divided according to whether they are metals, metalloids or non-metals. The zigzag line separates all the elements that are metals from those that ... more metals then non-metals. Metals, metalloids and non-metals all have their own specific properties.

Description : Names and formulae of substances

Last Answer : Think about what you call your friends. Some of your friends might have full names (long names) and a nickname (short name). These are the words we use to tell others who or what we are ... that was used earlier, the compound name is a combination of the names of the elements but slightly changed.

Description : Outline the process of accounting.

Last Answer : Process of accounting An accounting system tracks and controls the income and expenses of a business. Accounting systems can be as simple as a pen and notepad, and can be as complex ... find themselves required to create reports for external stakeholders, such as lenders and private investors. 

Description : Describe the concept of fixed cost, variable cost and total cost.

Last Answer : Total cost  Total cost refers to total expense incurred in reaching a particular level of output, if such total cost is divided by quantity produced average or unit cost is obtained. The ... . Direct material, direct labour, direct expenses, variable overheads are some examples of variable cost.

Description : Outline any four duties and responsibilities of energy manager.

Last Answer : Responsibilities and Duties of Energy Manager Responsibilities Prepare an annual activity plan and present to management concerning financially attractive investments to reduce energy costs Establish an ... and manner as may be provided in the regulations of the Energy Conservation Act.

Description : List the advantages and disadvantages of hydropower. 

Last Answer : Hydropower plant Advantages Renewable - Hydroelectric energy is renewable. This means that we cannot use up. However, there's only a limited number of suitable reservoirs where hydroelectric power ... MW under construction. Only one of these projects was started in the last two years. 

Description : Illustrate the benefits of hydrogen energy as a future energy.

Last Answer : Benefits of Hydrogen Energy The use of hydrogen greatly reduces pollution. When hydrogen is combined with oxygen in a fuel cell, energy in the form of electricity is produced. This electricity can ... sources of fuel. This ideally means that you need less hydrogen to complete an enormous task.

Description : State various types of energy losses with their control measures in any utility.

Last Answer : Energy loss and control in any utility Energy saving opportunities in cooling tower (These measures will save electrical energy used in fan or pumps) 1. Follow manufacturer's recommended ... Preheating combustion air 10. Switching from steam to air atomization Switching to lower cost fuel

Description : Define calorific value. Differentiate between net calorific value and gross calorific value.

Last Answer : Calorific value of fuel  The amount of energy produced by the complete combustion of a material or fuel.  Measured in units of energy per amount of material, e.g. kJ/kg. Difference between NCV and GCV ... is not an actual heat available for use. It is an actual heat available for use.

Description : Describe profitability evaluation by rate of return on investment. 

Last Answer : Profitability by ROI Return on investment, or ROI, is the most common profitability ratio. There are several ways to determine ROI, but the most frequently used method is to divide net profit by total ... investment types. Return on investment = (revenue − cost of goods sold) / cost of goods sold

Description : Classify energy sources with two examples each.

Last Answer : Types of energy Source  Primary energy source is an energy form found in nature that has not been subjected to any conversion or transformation process. The primary energy sources are derived from: the sun, ... energy sources: These sources can renew again and again. e.g Solar, Wind, Biomass, Hydro

Description : State two objectives of energy audit.

Last Answer : Objective of energy audit  To determine ways to reduce energy consumption per unit of product output or to lower operating costs. Energy Audit provides a bench-mark" (Reference ... effective use of energy throughout the organization. Provide detailed documentation for monitoring of energy use

Description : List the two factors affecting on cost estimation.

Last Answer : Factors affecting cost estimation 1) Labor Wage Rates 2) Inflation Factor 3) Project Schedule 4) Quality of Plans & Specifications 5) Reputation of Engineer 6) Regulatory Requirements 7) Insurance Requirements 8) Size and Type of Project 9) Location 10) Contingency

Description : Define balance sheet.

Last Answer : Balance sheet  It is a statement of the assets, liabilities, and capital of a business or other organization at a particular point in time, detailing the balance of income and expenditure over the preceding period.

Description : List various types of costs. 

Last Answer : Types of Cost Total Cost Fixed Cost Variable cost Direct cost Indirect Cost

Description : State the use of Lux Meter and Tachometer in energy audit.

Last Answer : Use of lux meter – to measure intensity of light Use of tachometer – to measure speed

Description : List four environmental benefits of wind energy.

Last Answer : Environmental benefits of Wind Energy 1. Renewable & Sustainable 2. Environmentally Friendly 3. Reduces Fossil Fuel Consumption 4. Small Footprint

Description : State any two units of energy.

Last Answer : Units of energy: Joule Calorie Kilowatt Kilowatt-hour Watt

Description : State the insulating materials used in motor. Write temperature class and withstand temperature ranges for them. 

Last Answer : The insulating materials used in motor are as belows: 1. Cotton, 2. Silk, or paper, 3. Press board, 4. Resins 5. PVC 6. Cellulose-Fiber, 7. Enameled coating, etc  ... Over 180° Mica, porcelain, ceramics, glass quartz, asbestos, treated glass fiber or treated asbestos. etc.