Patent ID: 8225293

Claim:
A method for controlling the value of a read only memory (ROM) parameter inside an executable software program, comprising: presenting a software program in executable form and having a plurality of machine instructions of a finite quantity of fixed lengths; selecting a parameter of interest used by the software program, wherein the parameter of interest is stored in read only memory (ROM); identifying a machine instruction that loads the parameter of interest into a machine register; evaluating each machine instruction in the executable form of the software program nested under the identified machine instruction to further identify machine instructions that use the machine register; replacing an identified machine instruction in the executable form of the software program with a branch instruction that references an address outside an address space of the software program; defining a set of relocated instructions at the address referenced by the branch instruction, wherein the set of relocated instructions reads a desired value for the parameter of interest and stores the desired value in a machine register where the parameter of interest is read into; and executing the executable form of the software program having the branch instruction.