Assembly Language Help (alang.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.
Make Code Segment Read-Only
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Syntax:   OPTION READONLY
 
            OPTION NOREADONLY
 
  See also: SEGMENT, .CODE
 
  Description:
 
     The READONLY option sets the READONLY attribute for subsequent code
     segments. Enables checking for instructions that explicitly modify
     segments or groups containing code. Useful for detecting self-
     modifying code. NOREADONLY is the default.
 
     This option replaces the command-line /P option from previous
     versions of the assembler. Segments can be also be made read-
     only with the READONLY parameter of the SEGMENT directive.
                                    -♦-