About me
Home
Resumé
CV
Pictures

Course Work
CSE300-FA98

Teaching
Portfolio
CSE240-SP99
CSE207-FA03

Misc
eHarmony
Documents

Tools

Labels

Sometimes we want to use portions of a variable, but we want to keep our code readable. One way of doing this is with data labels. For example,

    _DATA ...
        oldInt09h LABEL DWORD
        oldOff09h DW ?
        oldSeg09h DW ?
    _DATA ENDS

    _TEXT ...
        getInt 09h, oldOff09h, oldSeg09h
        pushf
        call oldInt09h
    _TEXT ENDS

The data sizes and their corresponding labels are as follows

     DB BYTE
     DW WORD  (2 bytes)
     DD DWORD (double word 4 bytes)
     DF FWORD (far word 6 bytes)
     DQ QWORD (quad word 8 bytes)
     DT TBYTE (ten-byte word)
Last Modified: January 26, 1999 - Barry E. Mapen