on of a software; an access permission setting register, for setting whether or not an access with respect to an address other than the address range should be permitted, that is able to be set while the flag is set, and control means for controlling an access with respect to a memory based on a result of the judging means and content set by the access permission setting register. 3.