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
a- Trace the following program fragment and find out the content of ax after the          the execution of the program.         X db   5,7  -3,-9,4,-7,9               Mov

LIST p=18f4550 #include org 0x0000 movlw 0x00 _________ movlw 0xFF movwf PORTB end .

Write a 68hc11 assembly language program which generation of the following waveforms connected to your DAC i)   Square wave ii)  Saw tooth waveform iii) Sine wave iv) U

Develop a suitable schematic circuit diagram of your system showing the interface between the PIC16F84 and the existing mains light & switch, including 5V derivation from the 240V

8086 Minimum mode System and Timing In a minimum mode 8086 system, the microprocessor 8086 is operated in minimum mode by strapping its MN/MX pin to logic 1.All the control si

Overview of Intel Pro-Pentium : The 2 chief players in the PC CPU market are Motorola and Intel.  Intel has enjoyed incredible success with its processors since the early 1980

CMP: Compare: - This instruction compares the source operand, which can be a register or memory location an immediate data with a destination operand that might be a register or a

Memory Interface                                                                  Figure: Memory Modulation design The memory of a computer contain of number of memo

Convert 751 to hex and show what it would look like stored at TheNumber WORD ? (hint: answer in hex pairs)

hi!im looking for someone who expert in an assembly language and help me write the programmed!Thank you