What is the difference between Times and Dup in Assembly Language?

Posted by Total Anime Immersion on Programmers See other posts from Programmers or by Total Anime Immersion
Published on 2012-09-16T07:36:56Z Indexed on 2012/09/16 9:48 UTC
Read the original article Hit count: 203

Filed under:
|
|

In a bootloader, the second last line is :

TIMES 510-($-$$) db 0

Now, will this command also do the same :

db 510-($-$$) DUP (0)

If not why?

I know what TIMES does, but its not mentioned in my x86 book by Mazidi (Pearson Publication). Any idea why?

And what is the meaning of the $ sign exactly? Different sites have different information about $.

And is the line TIMES 510-($-$$) db 0 absolutely necessary even if my bootloader code is of 512 bytes in size?

So can anyone help me with these questions?

© Programmers or respective owner

Related posts about assembly

Related posts about x86