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
INTO : Interrupt on Overflow:- It is executed, when the overflow flag OF is set. The new contents of IP and CS register are taken from the address 0000:0000 as described in INT

#I submitted my assignment this morning and it is still processing. How long does it take?

CISC Characteristics : The design of an instruction  set for a computer  might take into consideration  not only machine language constraints,  but  also  the  requirements  i

init_lcd                        ;(this initialises a 2 row lcd)     bcf     TRISA,0             ;PORTA bit 0 as an output (lcd RS pin)     bcf     TRISA,1             ;PORTA bit 1

Machine Coding the Programs So far we have describe five programs which were  written  for hand coding  by a programmer. In this, we will now have a deep look at how these prog

This is a short program to practice assembly language loops and if/else statements. You will use various jump commands and the cmp instruction. The program will generate a random

which uses BIOS interrupt INT 21 to read current system time and displays it on the top-left corner of screen.

describes vertical and horizontal web services protocols. Next, identify the similarities and differences between vertical and horizontal web services protocols. Finally, explain w

Using the AddSub program from Ch3 under c:\Masm615\examples as a reference, write a program that subtracts three 16-bit integers using only registers. Insert a call DumpRegs statem

Internal Architecture of Microprocessor : The architecture of 8086 provides a number of improvements over 8085 architecture. It supports a, a set of 16-bit registers ,16-bit AL