Define word (dw)- assemblers directive-microprocessor, Assembly Language

DW : Define Word:-

The DW directive serves the same purposes as the DB directive, but now it makes the assembler  which reserves thenumber ofmemory words (16-bit) instead of bytes. Some instance aregiven to explain this directive.

Example :

WORDS           DW      1234H, 4567H, 78ABH, 045CH,

This  makes the assembler reserve 4 words in memory (8  bytes), and by initializing the words with the specified values in the given statements. At the time of initialisation, the lower bytes are stored at the lower memory addresses, whereas the upper bytes are stored at the higher addresses. Another option of the DW directive can be explained with the DUP operator.

WDATA            DW 5 DUP (6666H)

This statement reserves five words, for example10-bytes of memory for a word label WDATA and initialises all the word locations having 6666H.

Posted Date: 10/12/2012 5:28:43 AM | Location : United States







Related Discussions:- Define word (dw)- assemblers directive-microprocessor, Assignment Help, Ask Question on Define word (dw)- assemblers directive-microprocessor, Get Answer, Expert's Help, Define word (dw)- assemblers directive-microprocessor Discussions

Write discussion on Define word (dw)- assemblers directive-microprocessor
Your posts are moderated
Related Questions
Display control 8279  provides  a  16  byte  display  memory  and  refresh  logic.  Every address in the display memory corresponds to a display unit with address zero represen

can any one help me in my project by using assembly language

Code for Reading Flow & Generating LED Output The code starts with the scanning of the PORT 3, for reading the flow status to check for various flow conditions and compare to

Signal descriptions of 8086 : described below are common for the maximum andminimum mode bothdata lines AD15 -AD0: These are the time multiplexed andmemory I/O address. Addre

8251 Programmable/Communication Interface As an instance of a serial interface device let us suppose Intel's 8251 A programmable communication interfaces. The 8251A is diagram

Write a MC68H12 assembly language program to find the largest number in an array of ten 8-bit numbers. The array is stored in memory locations starting at address $1100. Use branch


RISC Characteristics : The  concept  of  RISC  architecture  include  an  attempt  to  reduce  execution  time  by make  simple  the instruction set of the computer. The main c


Comparison between 8086 and 8088 All the changes in 8088 above 8086 are indirectly or directly related to the 8-bit, 8085 compatible data and control bus interface. 1) The p