LINK Help (linkx.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CODE Statement
 Example                                   Up Contents Index Back
─────CODE Statement─────────────────────────────────────────────────────────
 
     Syntax:  CODE [attribute...]
 
     This statement defines the default attributes for all code
     segments in the application or DLL. CODE takes one or more
     optional attributes. Each can appear once, in any order.
 
     Attribute           Purpose
 
     <conforming>      Sets protected-mode conformance
     <discard>         Sets whether segment is discardable
     <executeonly>     Sets execute status
     <iopl>            Sets I/O privilege level
     <load>            Sets when code segment is loaded
     <movable>         Sets whether segment is movable
     <shared>          Sets whether segment is shareable
 
     The SEGMENTS statement can override the defaults set by CODE.
     See: SEGMENTS Statement
                                    -♦-