The function of the label pseudo-directive

Source: Internet
Author: User
Labels are generally used as properties that define variables and labels, and are related to the next variable and label definition statement, which can be of type Byte, WORD, DWORD, QWORD, near, far, and so on.
to use:
buffer (variable) label     BYTE (type)

For example:
Buffer1        label       WORD
Buffer2        DB          20  DUP (?)
Typically, the next statement immediately defines a different type than the one specified by label. In fact, Buffer1 is the alias of Buffer2, which points to the same storage address in memory.
in other words, the same set of data defines two different types, and you can specify the corresponding labels when you accept access to different data types. When
accepting a Word type data access, use Buffer1; Buffer2 is used when accepting byte-type data access. Otherwise, the compiler will compile with an exception because the data type does not match.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.