Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
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.
                                    -♦-