System and method for enabling selective execution of computer code
First Claim
1. A computer system for enabling selective execution of sets of code in computer programs, comprising:
- memory for storing a computer program, said computer program having a set of code and a branch instruction; and
processing circuitry configured to receive run time data indicating whether said set of code is enabled and to set a value of a mode indicator based on said run time data, said processing circuitry configured to receive and execute said branch instruction during a run of said computer program, said processing circuitry configured to branch to a first address of said memory, in response to said branch instruction and based on said value of said mode indicator, when said set of code is enabled, said processing circuitry further configured to branch to a second address of said memory, in response to said branch instruction and based on said value of said mode indicator, when said set of code is disabled.
0 Assignments
0 Petitions
Accused Products
Abstract
The system of the present invention utilizes memory for storing a computer program and processing circuitry for executing instructions of the computer program. In particular, the computer program includes at least one branch instruction and a set of code that is to be selectively enabled or disabled. The branch instruction includes an address identifier identifying a memory address to which the processing circuitry may branch when executing the branch instruction. The processing circuitry, in executing the computer program, receives run time data indicative of whether the set of code is enabled or disabled, and based on the run time data, the processing circuitry sets a value of a mode indicator. While the program is running, the processing circuitry executes the branch instruction. In executing the branch instruction, the processing circuitry, depending on the value of the mode indicator, branches to the address identified by address identifier or branches to a different address. The set of code is located at one of the foregoing addresses. Thus, execution of the set of code is either enabled or disabled by controlling the value of the mode indicator.
-
Citations
22 Claims
-
1. A computer system for enabling selective execution of sets of code in computer programs, comprising:
-
memory for storing a computer program, said computer program having a set of code and a branch instruction; and
processing circuitry configured to receive run time data indicating whether said set of code is enabled and to set a value of a mode indicator based on said run time data, said processing circuitry configured to receive and execute said branch instruction during a run of said computer program, said processing circuitry configured to branch to a first address of said memory, in response to said branch instruction and based on said value of said mode indicator, when said set of code is enabled, said processing circuitry further configured to branch to a second address of said memory, in response to said branch instruction and based on said value of said mode indicator, when said set of code is disabled. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
-
-
14. A system for enabling selective execution of sets of code in computer programs, comprising:
-
means storing a computer program, said computer program having a set of code and a branch instruction, said branch instruction including an address identifier identifying a first memory address;
means for receiving, during a run of said program, run time data indicating whether said set of code is enabled;
means for setting a value of a mode indicator based on said run time data;
means for identifying a second memory address in response to said branch instruction; and
means for branching to said second address based on said value of said mode indicator and said identified memory address, said branching means including a means for executing an instruction at said second address.
-
-
15. A method for enabling selective execution of sets of code in computer programs, comprising the steps of:
-
storing a computer program in memory, said computer program having a set of code and a branch instruction, said branch instruction including an address identifier identifying a first address in said memory;
receiving, during a run of said program, run time data indicating whether said set of code is enabled;
setting a value of a mode indicator based on said run time data;
identifying a second address in said memory and in response to said branch instruction;
branching to said second address based on said value of said identifying step and said value of said mode indicator; and
executing an instruction at said second address in response to said branching step. - View Dependent Claims (16, 17, 18, 19, 20, 21, 22)
-
Specification