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
Cache components The cache sub-system may be divided into 3 functional blocks: Tag RAM, SRAM and theCache Controller. In real designs, these blocks can be implemented  by multi

1. The microwave has a clock (hh:mm:ss am/pm) and the user should be able to change the clock at any time. 2. For cooking the user should first enter the time. The user can ente


Write an assembly program that will compute and output tuition cost: a. accept keyboard input of the number of credit hours taken b. accept keyboard input of the type of classes 1

write shell to calculate basic salary from given .

Instruction set of 8086 : The 8086/8088 instructions are categorized into the following major types. This section describes the function of each of the instructions with approp

INC: Increment : - This instruction increments the contents of the particular memory or register location by the value 1. All the condition code flags are affected except the carry

Program : A program to move a string of the data words from offset 2000H to offset 3000H the length of the string is OFH. Solution : For writing this program, we will use

SEG : Segment of a Label:- The SEG operator is which is used to decide the segment address of the, variable, label or procedure and substitutes the segment base address in plac

Description: LC3 allows input from keyboard and output to display on the screen. This lab will exercise the input/output capability using LC-3 Assembly language. Procedure