1. A method of operating a processor comprising the steps of: mapping at least a portion of a program memory space to a data memory space; storing an entry into the program memory space that is mapped to the data memory space, the entry comprising data and a protection opcode; fetching an entry from the program memory space; attempting to execute the fetched entry; trapping the protection opcode; vectoring to a trap handler; and executing the trap handler.