Abstract: A method and apparatus for locking a memory device to prevent unauthorized data from being written to the memory device is disclosed. In a preferred embodiment an address of a memory device is selected such that when that address is selected, a "1" is written to an auxiliary memory device. This event causes the write-enable of the main memory to be disabled thereby locking the main memory device and preventing subsequent write operations thereto.