Assembly ideas / DW


DW means Data Word(s). Well, this keyword enables you to enumerate words.

As you can see the picture above, you can give words by numbers (binary, decimal, hexadecimal). These values are stored as words (two-bytes-long), this means if you give 65536 then DW stores 0, because of 65536 is 1|0000|0000|0000|0000 in binary and only the lower 16-bits count.

If you give an "empty"-value or values such as $1050, at the end of the 23rd line, it will be $1050,0 ...BUT... the $1050,65536 is the same, too.