Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Assembly Language - <b>assume associate segment with segment register masm directive</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ASSUME           Associate Segment with Segment Register       MASM Directive

    ASSUME  segmentRegister:segmentName,,,
 or
    ASSUME  NOTHING

    Specifies the segment register (segmentRegister) that will be used to
    calculate the effective addresses for all labels and variables defined
    under a given segment or group name (segmentName).

       Notes:     The segmentRegister argument must be CS, DS, ES, or SS.

                  The segmentName argument must be a segment name
                  previously defined with the SEGMENT directive, a group
                  name defined with the GROUP directive, or the keyword
                  NOTHING.  If the keyword NOTHING is used, the previous
                  segment selection is canceled.

                  ASSUME NOTHING cancels the segment selections for all
                  four segment registers.

                  Usage of the segment-override operator (:) will override
                  the segment register specified in the ASSUME directive.

See Also: : SEGMENT ASSUME GROUP

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson