List out any four assembler directives and state their functions.

1 Answer

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 assembly language program 

DB directive: he DB directive is the most widely used data directive in the assembler. It is used to define the 8-bit data. When DB is used to define data, the numbers can be in decimal, binary, hex, or ASCII formats.

EQU directive: This is used to define a constant without occupying a memory location. The EQU directive does not set aside storage for a data item but associates a constant value with a data label so that when the label appears in the program, itp constant value will be substituted for the label.

Related questions

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

Last 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 ... the end of the segment The directives SEGMENT, ENDS are always enclosed in data, code, stack and extra segments.

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 : List some compiler directives?

Last Answer : #if #else #elif #endif #define #undef #warning #error #line #region #endregion

Description : List out features of any four addressing modes of 8051.

Last Answer : 1.Immediate addressing mode: In this Immediate Addressing Mode, the data is provided in the instruction itself. The data is provided immediately after the opcode. These are some examples of Immediate Addressing Mode. MOVA ... us see some examples of this mode. MOV 0E5H, @R0 MOV @R1, 80H

Description : State functions of preset, clear, clock and SR inputs related to SR flip flop.

Last Answer : Preset Input: is an asynchronous input to set the Q output to 1 Clear Input: is also asynchronous input to reset the Q output to 0 Clock Input: is used to input external logic clock pulse (HIGH-LO) to ... set the Q output. And R is the reset input which is used to reset Q output of the flipflop.

Description : which of the 2 files are created by the assembler. a. _ List and object file b. Link and object file c. Botha &b d. None of these

Last Answer : a. _ List and object file

Description : The number of switching functions of 3 variables is (A) 8 (B) 64 (C) 128 (D) 256

Last Answer : The number of switching functions of 3 variables is  8 

Description : Which of the following gates can be used to realize all possible combinational logic functions?  (i) OR gate (ii) NOR gate (iii) Exclusive OR gate (iv) NAND gate (v) AND gate  (A) (iii), (iv) and (v)  (B) (i), (iii) and (iv)  (C) (ii) and (iv)  (D) (i) and (v)

Last Answer : Which of the following gates can be used to realize all possible combinational logic functions?  (i) OR gate (ii) NOR gate (iii) Exclusive OR gate (iv) NAND gate (v) AND gate  (A) (iii), (iv) and (v)  (B) (i), (iii) and (iv)  (C) (ii) and (iv)  (D) (i) and (v)

Last Answer : The number of Boolean functions that can be generated by n variables is equal to 22 n.

Description : What can the President do if a State fails to comply with the Directives of the Central Government? (1) He can dissolve State Legislature and order fresh elections (2) He can declare the break-down ... (3) He can send paramilitary forces to the State to secure compliance (4) Any of the above

Last Answer : (2) He can declare the break-down aconstitutional machinery in the State and assume responsibility for the governance of the State Explanation: If the President is satisfied, on the basis of the ... six months to a maximum period of three years with repeated parliamentary approval every six months.

Description : Planning in India derives its objectives from – (i) Preamble (ii) Fundamental duties (iii) Fundamental rights (iv) Directives principles of state policy

Last Answer : (iv) Directives principles of state policy

Description : Experience has shown that certain conditions in an organization are symptoms of possible management fraud. Which of the following conditions would not be considered an indicator of possible fraud? ... their profit center's scope d. Managers are not complying with corporate directives and procedures

Last Answer : Managers are subject to formal performance reviews on a regular basis.

Description : What would a real Robocop's "prime directives" be?

Last Answer : 1. Identify and pursue all vehicles with air fresheners hanging from the mirror. 2. Don’t get caught slipping’ 3. Eat the rich

Description : What are your personal health directives?

Last Answer : They’re “personal” for a reason!

Description : What are your personal directives in case you can't communitcate and are sick?

Last Answer : My day MUST begin with an ice cold glass of Coke!!! Make sure I’m comfortable & NOT in pain. IF I can come out better on the other side of any procedure, fix it. IF NOT…let me go!!!

Description : what organization issues the directives concerning the dissemination of information regarding -General Knowledge

Last Answer : Department of defense issues the directives concerning the dissemination of information regarding intelligence sources, methods, or activities.

Description : What are the 31 directives of the Prime Minister in Corona situation ?

Last Answer : Prime Minister Sheikh Hasina has given 31 point instructions to deal with the crisis caused by coronavirus. There are guidelines for people of all walks of life including doctors , nurses and government ... spread on digital platforms. Do not listen to rumors and do not be disturbed by rumors.

Description : Advance care directives?

Last Answer : DefinitionAdvance care directives are specific instructions, prepared in advance, that are intended to direct a person's medical care if he or she becomes unable to do so in the future. ... health care)".Federal law requires hospitals, nursing homes, and other institutions that receive Medicar

Description : Healthcare Planning with Advance Medical Directives?

Last Answer : Many people think that planning for end of life and making othercritical healthcare decisions is for senior citizens. The truth isthat anyone could end up in a situation where they ... treatments that you prefer and what life saving measuresyour doctors and hospital staff are permitted t

Description : The growth of judicial power over the last one hundred years in liberal democracies have taken place because - (1) The constitutions have given the judiciary more powers (2) Acceptance of the theory of separation of powers (3) The U. N. Directives (4) Protect Human Rights

Last Answer : (4) Protect Human Rights Explanation: The growth of Judicial Power over the last one hundred years in liberal democracies has taken place to protect Human rights.

Description : What are the inline and the precompiler directives

Last Answer : The inline and precompiler directives detect the values directly

Description : In connection with the element of professional development, a CPA firm's system of quality control should ordinarily provide that all personnel a. Possess judgment, motivation, and adequate ... review directives. d. Have the knowledge required to enable them to fulfill responsibilities assigned.

Last Answer : Have the knowledge required to enable them to fulfill responsibilities assigned.

Description : Which of the following problems is most likely to occur in a matrix structure? (a) Decreased employee motivation ; (b) Employees receiving conflicting directives (c) Decreased response to environmental change ; (d) Decreased coordination

Last Answer : (b) Employees receiving conflicting directives

Description : What is the output of the following program ? (Assume that the appropriate pre-processor directives are included and there is no syntax error) main() { char S[ ] = "ABCDEFGH"; printf ("%C",* (& ... Base address of S is 1000 */ } (A) ABCDEFGH1000 (B) CDEFGH1000 (C) DDEFGHH1000 (D) DEFGH1000

Last Answer : (D) DEFGH1000

Description : List four types of sensors used in MPFI system, state their locations and functions.

Last Answer : Sr. Name Function Location 1 Oxygen Sensor Measuring the quantity of oxygen in exhaust  Located at inlet and outlet side of catalytic converter 2 Mass air flow(MAF ... the combustion process and supplies signal to the ECU. This sensor is fitted on cylinder block.

Description : State and explain the need of the following development tools microcontroller board: (i) Editor (ii) Assembler (iii) Compiler (iv) Linker

Last Answer : 1) Editor: An editor is a program which helps you to construct your assembly language program in right format so that the assembler will translate it correctly to machine language. So, you can type your ... . Some examples of linker are ASEM-51 BL51, Keil u Vision Debugger, LX 51 Enhanced Linker etc

Last Answer : A four bit number is given as 0110. Its 2’s complement is 1010.

Description : Select the odd one out - 1) Interpreter 2) Operating System 3) Compiler 4) Assembler

Last Answer : 2) Operating System

Description : converts high level language into machine language is (a) assembler (b) compiler (c) interpreter -Technology

Last Answer : (d) Both compiler and interpreter are language processors that converts high level language into machine language.

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 the function of assembler ?

Last Answer : ( 1) Translating the nominal code into machine language. (2) The Assembly converts the address into an address written in machine language. (3) Verify that each instruction is correct. (4) ... all the mistakes. (6) To make every instruction in assembly language an instruction in machine language.

Description : What is the difference between a cross assembler and a meta assembler?

Last Answer : Feel Free to Answer

Description : What do you call the translator which takes assembly language program as input & produce machine language code as output? A) Compiler B) Interpreter C) Debugger D) Assembler

Last Answer : Answer : D

Description : The translator program used in assembly language is called A) Compiler B) Interpreter C) Assembler D) Translator

Last Answer : Answer : C

Description : Assembler is used as a translator for? a) Low level language b) High Level Language c) COBOL d) C

Last Answer : Answer: a Explanation: Assembler is used in case of low level languages.It is generally used to make the binary code into an understandable format. Interpreter is used with the high level languages similarly

Description : A program that reads each of the instructions in mnemonic form and translates it into the machine-language equivalent. a) Machine language b) Assembler c) Interpreter d) C program

Last Answer : Answer: b Explanation: Assembler does this job. A language that uses mnemonic codes for the representation of machine-language instructions is called assembly language

Description : A ________ is a special program that processes statements written in a particular programming language and turns them into machine language. A. Compiler B. Device Driver C. Assembler D. None of the above

Last Answer : A. Compiler

Description : Which analyses and executes the source code in line-by-line manner, without looking at the entire program? A. Compiler B. Interpreter C. Assembler D. None of the above

Last Answer : B. Interpreter

Description : Which of the following language is the closest to the machine code? A. Compiler B. Interpreter C. Assembler D. None of the above

Last Answer : C. Assembler

Description : Language Translators can be divided into three major categories.They are _________ A. Compiler, Operating System and Assembler B. Compiler, Device Driver and Assembler C. Compiler, Interpreter and System Utility D. Compiler, Interpreter and Assembler

Last Answer : D. Compiler, Interpreter and Assembler

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 : Mnemonic refers to. a Instructions b. Code c. Symbolic codes d Assembler

Last Answer : c. Symbolic codes

Description : Assembler works to convert assembly language program into machine language : a. Before the computer can execute it b. After the computer can execute it c. In between execution d. All of these

Last Answer : a. Before the computer can execute it

Description : To invoke assembler following command are given at command line: a. $ hello.s -o hello.o b. — $as hello.s -o 0 c. $ as hello —-o hello.o d. $ashello.s—o hello.o

Last Answer : d. $ashello.s—o hello.o

Description : By whom address of external function in the assembly source file supplied by __ when activated: a. Assembler b. Linker c. Machine d. Code

Last Answer : b. Linker

Description : The assembler translates ismorphically_ instructions: a. 1.1 b 2:1 c. 3:3 d. 4.1

Last Answer : a. 1.1

Description : Assembler worksin____ phases. a. 1 b 3 a. 2 d 4

Last Answer : a. 2

Description : In second pass, assembler creates _ in binary format for every instruction in program and then refers to the symbol table to giving every symbol an_ _ relating the segment. a. Code and program b. Program and instruction c. Code and offset d. All of these

Last Answer : c. Code and offset

Description : which type of errors are detected by the assembler: a. syntax error b. logical error 9 run time error a none of these

Last Answer : a. syntax error

Description : Ingiven lines of code MOV AX,BL have different type of operands according to assembler for 8086 architecture these identifiers must be of. a. Different type only in byte b. Same type either in word or byte c. Botha &b d. None of these

Last Answer : b. Same type either in word or byte