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

1 Answer

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. MAXIMUM EQU 99 After this directive every appearance of the label MAXIMUM in the program, the assembler will interpret as number 99 (MAXIMUM=99).

(ii) ORG:-ORG stands for Origin

Syntax: ORG Address

The ORG directive is used to indicate the beginning of the address.The origin directive tells the assembler where to load instructions and data into memory. It changes the program counter to the value specified by the expression in the operand field. The number thatcomes after ORG can be either in hex or in decimal. If the number is notfollowed by H, it is decimal and the assembler will convert it to hex.

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 : 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

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 : Explain following instructions of 8051. (i) ADDC (ii) L CALL

Last Answer : (i) ADDC: The ADDC instruction adds a byte value and the value of the carry flag to the accumulator. The results of the addition are stored back in the accumulator. Several of the flag ... . Then the program counter is loaded with the new address and control is transferred to the subroutine. 

Description : Explain function of following pins of 8051 (i) Pin 31 (ii) Pin 29 (iii) Pin 21-28 

Last Answer : i) Pin 31-EA : It is and active low I/P to 8051 microcontroller. When (EA)= 0, then 8051 microcontroller access from external program memory (ROM) only. When (EA) = 1, then it access internal ... /Output, when external memory is interfaced, PORT 2 pins act as the higher-order address bus. (A8-A15)

Description : The electron with change `(q=1.6xx10^(-19)C)` moves in an orbit of radius `5xx10^(-11)`m with a speed of `2.2xx10^(6)ms^(-1)`, around an atom. The equ

Last Answer : The electron with change `(q=1.6xx10^(-19)C)` moves in an orbit of radius `5xx10^(-11)`m with a speed of `2. ... -3)A` C. `1.12xx10^(-9)A` D. `1.12A`

Description : What is the best combination for equ and qual?

Last Answer : What is the answer ?

Description : Surra in animals is caused by C A. Trypanosoma brucei B. Trypanosoma cruzi C. Trypanosoma evansi D. Trypanosoma equ

Last Answer : Trypanosoma evansi

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 : List out any two instructions of following addressing modes: (i) Immediate addressing. (ii) Register addressing.

Last Answer : (i) Immediate addressing instructions: 1. MOV A, #36H 2. MOV DPTR, #27A2H (ii) Register addressing. 1. MOV A, R0 2. MOV R7, A

Description : Differentiate between (i) Harvard and Von-neuman architecture (ii) Microprocessor and Microcontroller

Last Answer : i) Harvard Architecture and Von-neuman architecture ii) Microprocessor and Microcontroller

Description : Describe serial communication in 8051. Explain the use of SCON register.

Last Answer : 8051 micro controller communicate with another peripheral device through RXD and TXD pin of port3.controller have four mode of serial communication.  1. Serial Data Mode-0 (Baud Rate Fixed) In this mode ... .0 Receive interrupt flag. Set by hardware halfway through the stop bit time in mode 1. 

Description : Explain the following instructions. SWAP A ADD C MUL AB CJNE A, add, radd MOV A, R0 MOVX A, @ A + DPTR.

Last Answer : SWAP A Description: This instruction exchanges bits 0-3 of the Accumulator with bits 4-7 of the Accumulator. This instruction is identical to executing "RR A" or "RL A four times ... referred to as the base address and the accumulator value is referred to as the index address.

Description : Explain the various selection factors of microcontroller suitable for application.

Last Answer : The selection of microcontroller depends upon the type of application. The following factors must be considered while selecting the microcontroller.  1. Word length: The word length of ... and for lesser production EPROM version or CPU version with external program memory is suitable

Description : Draw the format of PSW register of 8051 microcontroller and explain the function of each bit.

Last Answer : 1. CY: Carry flag. This flag is set whenever there is a carry out from the D7 bit after an 8 bit addition or subtraction. It can also be set to 1 or 0 directly by instructions such as SETB C and ... the A register contains an odd number of 1s, then P=1. P=0 if A has an even number of 1s.

Description : Draw and explain Internal port structure of Port 0 and Port 1 of 8051 microcontroller.

Last Answer : Port-0 can be configured as a normal bidirectional I/O port or it can be used for address/data interfacing for accessing external memory. When control is '1', the port is used for address/data ... is not able to sink the current the pin voltage may rise, leading to a possible wrong reading.

Description : Explain with sketch the interfacing of 4 ×4 matrix keypad with 8051 microcontroller.

Last Answer : Interfacing keypad Fig. shows how to interface the 4 X 4 matrix keypad to two ports in microcontroller. The rows are connected to an output port and the columns are connected to an input port. To ... key has been pressed, the next task is to find out which column the pressed key belongs to.

Description : Explain processes of interrupt enabling and disabling in 8051.

Last Answer : Interrupts are the events that temporarily suspend the main program, pass the control to the external sources and execute their task. It then passes the control to the main program where it had left off. ... interrupts. Its bit sequence and their meanings are shown in the following figure.

Description : Draw and explain the interfacing of DAC to 8051.

Last Answer : Diagram:  * Microcontroller generates output which is in digital form but many controlling system requires analog signal as they don't accept digital data thus making it necessary to use DAC ... current. Hence we require an I to V converter to convert this current into equivalent voltage. 

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

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

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 : 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 : 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 : Describe power down mode and ideal mode of 8051 with circuit diagram . which SFR is used to set these modes and draw the same.

Last Answer : IDLE MODE In the Idle mode, the internal clock signal is gated off to the CPU, but not to the Interrupt, Timer and Serial Port functions. The CPU status is preserved in its entirety, the Stack Pointer, ... t change on chip RAM PCON (Power Control Register) SFR is used to set these modes.

Description : Define the term BUS related to microprocessor/controller and list different buses used in microcontroller.

Last Answer : BUS: A Bus is a set of physical connections used for communication between CPU and peripherals. Different buses used in microcontroller are: 1. Address Bus 2. Data Bus 3. Control Bus

Description : Draw the format of SCON register.

Last Answer : SM0 SCON.7 Serial port mode specifier SM1 SCON.6 Serial port mode specifier SM2 SCON.5 Used for multiprocessor communication (Make it 0.) REN SCON.4 Set/ cleared by software to enable/ ... flag. Set by hardware halfway through the stop bit time in mode 1. Must be cleared by software.

Description : Find out the number of address lines required to access 4 KB of RAM

Last Answer : 12 address lines required to access 4 KB of RAM as  212 = 4KB 

Description : State any four important features of 8051 microcontroller.

Last Answer : Features of 8051 microcontroller:  1) 8- bit data bus and 8- bit ALU. 2) 16- bit address bus - can access maximum 64KB of RAM and ROM. 3) On- chip RAM -128 bytes (Data ... 0 and Timer 1, two external hardware interrupts- INT0 and INT1, Serial communication interrupt for both receive and transmit.

Description : Describe with sketches the procedure to troubleshoot the traffic light controller.

Last Answer : Considerations of Traffic Signal  1) Traffic light may have sensors integrated to provide real time traffic information  2) Based on the traffic information provided by the sensor, the duration of the ... 8) Capacity analysis of the intersection for current and future years using growth

Description : State the alternate pin functions of port 3 of 8051.

Last Answer :  the alternate pin functions of port 3 of 8051 :

Description : Draw interfacing of 16 × 2 LCD with 8051 and state the function of EN and RS of LCD

Last Answer : Diagram: RS: RS is the register select pin. We need to set it to 1, if we are sending some data to be displayed on LCD. And we will set it to 0 if we are sending some command instructions ... the LCD to latch in the data present at the data pins. This pulse must be a minimum of 450ns wide.

Description : Draw the format of TCON register of 8051 and describe the function of each bit of it.

Last Answer : TCON: TIMER/COUNTER CONTROL REGISTER.BIT ADDRESSABLE  TF1 TCON. 7 Timer 1 overflows flag. Set by hardware when the Timer/Counter 1 Overflows. Cleared by hardware as processor ... 0 type control bit. Set/cleared by software to Specify falling edge/low level triggered External Interrupt

Description : Develop Assembly Language program (ALP) to find the largest number in a block of 10 numbers stored at location 40H onwards in internal RAM.

Last Answer : ORG 0000H MOV R1, #0AH ; Initialize Byte Counter MOV R0, #40H ; Initialize source pointer R0 to 40H DEC R1 ; decrement counter by one MOV 60H, @R0 ;Read First Byte UP: INC R0 ; Increment the ... MOV A,B MOV 50H, A ; store result at memory location 50H(Assume any location) HERE: SJMP HERE

Description : Describe 8051 microcontroller as boolean processor.

Last Answer : * 8051 processor is a CPU that can perform some operation on a data and gives the output. * The 8051 processor contains a complete Boolean processor for single-bit operations. * The internal RAM contains 128 ... CLR C means clear the carry bit SETB 20h means set the memory bit with bit address 20h.

Description : List SFR in 8051.

Last Answer : ACC and B registers - 8 bit each DPTR : [DPH:DPL] - 16 bit combined PC : Program Counter - 16 bits Stack pointer SP - 8 bit PSW : Program Status Word Port Latches ... , serial control Timer Registers (TCON,TMOD,TL0/1,TH0/1) Power control Interrupt Enable, Interrupt Priority

Description : List specifications of 8051 microcontroller.

Last Answer : 1) 8- bit data bus and 8- bit ALU. 2) 16- bit address bus - can access maximum 64KB of RAM and ROM. 3) On- chip RAM -128 bytes (Data Memory) 4) On- chip ROM - 4 KB ( ... 0592 MHz 9) Has power down and idle mode in microcontroller when no operation is performed. 10) Six interrupts are available.

Description : State features of ADC 0808.

Last Answer : 1. Easy to interface with all Microprocessors or works Stand alone. 2. Eight channel 8-bit ADC module. 3. Can measure up to 8 Analog values. 4. On chip Clock not available, external Oscillator ... (Clock). 5. Digital output various from 0 to 255, operating power is 15mW, conversion time 100us.

Description : Which of the Word Processing Software we use for preparing documents: a) Word Perfect b) MS -World c) Open Office.org d) All of Above d) None of These

Last Answer : d) All of Above

Description : If the following article on "phys.org" is accurate, what new model of the formation of the universe could be considered besides the Big Bang?

Last Answer : I have always thought some version of the tired light hypothesis seemed more intuitive i.e. that there is no start or edge to the universe, but you can only see so far, and that over such extreme ... have to really get. One starting point might be the part of my link above that talks about CBR.