A memory management system and method. The system includes a first storage
device and a processing unit. The first storage device stores an
exception code excluding operation codes (op-codes) corresponding to an
instruction set. The processing unit reads the exception code from the
first storage device and writes it to at least one unoccupied region of a
memory in an electronic device, thereby enabling the electronic device to
stop program execution when the CPU fetches the exception code from the
unoccupied region of the memory.