What is npad?

Posted on 2004-11-17
Last Modified: 2008-01-09
Dear all,
I find the statement
"npad 5"
in the asm geberate by MSVC listing.
What does it mean?

Thank you.
Question by:hengck23
    1 Comment
    LVL 95

    Accepted Solution

    My assembly isn't that strong, so maybe this can make some sense to you (It's from a newsgroup posting - it's a question, but the asker seems to imply a usage of NPAD):

    How can I get masm to insert nops to ensure the next instruction is aligned
    on a paragraph boundary?

    According to Intel it is a good idea for jump destinations to be aligned
    like this

    I am writing 32 bit assembler.

    The align directive won't let me do anything except align 4.
    if won't accept $ in the expression
    org only allows $+const

    At the moment the only way I can find to do this is by linking the program
    to get  a map file and then using npad to insert nops to move the addresses
    up a few bytes.

    Surely there has to be a better way?

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    This paper addresses the security of Sennheiser DECT Contact Center and Office (CC&O) headsets. It describes the DECT security chain comprised of “Pairing”, “Per Call Authentication” and “Encryption”, which are all part of the standard DECT protocol.
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now